[all-commits] [llvm/llvm-project] 82e893: [clang] Enable output of SARIF diagnostics

Christopher Di Bella via All-commits all-commits at lists.llvm.org
Fri Aug 26 11:50:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82e893c47c77430ca59f92d7a814a336e3873a35
      https://github.com/llvm/llvm-project/commit/82e893c47c77430ca59f92d7a814a336e3873a35
  Author: Abraham Corea Diaz <abrahamcd at google.com>
  Date:   2022-08-26 (Fri, 26 Aug 2022)

  Changed paths:
    A clang/include/clang/Frontend/SARIFDiagnostic.h
    A clang/include/clang/Frontend/SARIFDiagnosticPrinter.h
    M clang/lib/Frontend/CMakeLists.txt
    M clang/lib/Frontend/CompilerInstance.cpp
    M clang/lib/Frontend/FrontendAction.cpp
    A clang/lib/Frontend/SARIFDiagnostic.cpp
    A clang/lib/Frontend/SARIFDiagnosticPrinter.cpp
    A clang/test/Frontend/sarif-diagnostics.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list