[all-commits] [llvm/llvm-project] 119d22: [clang] Add -fdiagnostics-format=sarif option for ...

Christopher Di Bella via All-commits all-commits at lists.llvm.org
Thu Jul 21 09:52:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 119d22310bd622d4b39e9760667b6fa58d15a8c5
      https://github.com/llvm/llvm-project/commit/119d22310bd622d4b39e9760667b6fa58d15a8c5
  Author: Abraham Corea Diaz <abrahamcd at google.com>
  Date:   2022-07-21 (Thu, 21 Jul 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/include/clang/Basic/DiagnosticOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/TextDiagnostic.cpp
    A clang/test/Driver/fdiagnostics-format-sarif.cpp

  Log Message:
  -----------
  [clang] Add -fdiagnostics-format=sarif option for future SARIF output

Adds `sarif` option to the existing `-fdiagnostics-format` flag
for intended future work with SARIF diagnostics. Currently issues a warning
against the use of diagnostics in SARIF mode, then defaults to clang style for
diagnostics.

Reviewed By: cjdb, denik, aaron.ballman

Differential Revision: https://reviews.llvm.org/D129886




More information about the All-commits mailing list