Commit Graph

4 Commits

Author SHA1 Message Date
Nico Weber e877b42e2c [clang] Better warning-fix follow-up to D131632
Not all host compilers understand gnu:: attributes. Just remove the
variable until it's used.
2022-08-26 18:29:20 -04:00
Abraham Corea Diaz 0e5813b88e [clang][NFC] silences warnings
* removes unused data member `OS` from `SARIFDiagnostic`
* flags `Filename` variable as currently unused

This is a follow-up to D131632.
2022-08-26 21:09:39 +00:00
Sterling Augustine 5eab94f7eb Eliminate unused-variable warning. 2022-08-26 12:40:55 -07:00
Abraham Corea Diaz 82e893c47c [clang] Enable output of SARIF diagnostics
Enables Clang to emit diagnostics in SARIF format when
`-fdiagnostics-format=sarif`. Adds a new DiagnosticConsumer named
SARIFDiagnosticPrinter and a new DiagnosticRenderer named SARIFDiagnostic
to constuct and emit a SARIF object containing the run's basic diagnostic info.

Reviewed By: cjdb, denik, aaron.ballman

Differential Revision: https://reviews.llvm.org/D131632
2022-08-26 18:49:29 +00:00