[Bug other/116164] New: SARIF output doesn't yet capture fix-it hints on notes
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 31 20:52:44 GMT 2024
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"]
More information about the Gcc-bugs
mailing list