https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116164

            Bug ID: 116164
           Summary: SARIF output doesn't yet capture fix-it hints on notes
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: SARIF
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

Currently our SARIF output only captures fix-it hints on the top-level
diagnostic in a group.  Followup notes within a group are added as
relatedLocations to the result, but we fail to capture any fix-it hints.

I haven't yet found an existing reproducer for this in our testsuite, but
there's a case of it in my forthcoming https://gcc.gnu.org/wiki/libdiagnostics
testsuite (test-note-with-fix-it-hint.c)

Presumably we should add fix-it hints for notes into the result["fixes"]

Reply via email to