As discussed in the call about P2429, some of us are going to look into SARIF as a common target for C++ compiler error messages.
I’m going to ask the folks we have looking at SARIF to give their thoughts, please do send your own if you have experience with the format, or invite relevant colleagues with relevant expertise.
+/* Handle secondary diagnostics that occur within a diagnostic group. + The closest SARIF seems to have to nested diagnostics is the + "relatedLocations" property of result objects (SARIF v2.1.0 section 3.27.22), + so we lazily set this property and populate the array if and when + secondary diagnostics occur (such as notes to a warning). */ +