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

            Bug ID: 116253
           Summary: RFE: support for nested diagnostics
           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: ---

There's an interesting proposal from Sy Brand here:
  P3358R0: SARIF for Structured Diagnostics
  https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3358r0.html
(and https://github.com/oasis-tcs/sarif-spec/issues/572) for better supporting
C++ template diagnostics by introducing a hierarchical/nested structure.

I have a prototype of this for GCC working, though I have some concerns about
the proposal as it stands - I think it has a bad interaction with how SARIF
expresses header inclusion chains - which I've mentioned in
https://github.com/oasis-tcs/sarif-spec/issues/572#issuecomment-2243386699

Aspects of this:
  * extend g++ to add hierarchical structure to the messages
  * extend GCC's text-based diagnostic output to emit that structure, somehow
  * work with Sy, WG15 and the SARIF TC to improve the way it's expressed in
SARIF
  * extend GCC's SARIF output to support the structure

Reply via email to