https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116253
David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |dmalcolm at gcc dot gnu.org Last reconfirmed| |2024-08-06 Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Created attachment 58851 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58851&action=edit Messy prototype of P3358R0 Here's the messy prototype of P3358R0 I implemented; see the screenshot in https://github.com/oasis-tcs/sarif-spec/issues/572#issuecomment-2243386699 Adds: * a simple way to nest diagnostics within GCC's internals (although the nesting level doesn't exactly match the existing -fconcepts-diagnostics-depth=; each depth of -fconcepts-diagnostics-depth= could correspond to several levels of nested messages). * support for this in SARIF output using the property bag property nestingLevel as per P3358R0 (though see my concerns about this in that sarif-spec issue) * a hacked-up way to visualize nesting levels in GCC's textual output Caveats: lots of FIXMEs, and the textual output is obviously excessively verbose, for clarity during debugging.