llvm-project/clang/test/Analysis/diagnostics
Vaibhav Yenamandra 7b6fe711b2 Refactor StaticAnalyzer to use `clang::SarifDocumentWriter`
Refactor StaticAnalyzer to use clang::SarifDocumentWriter for
serializing sarif diagnostics.

Uses clang::SarifDocumentWriter to generate SARIF output in the
StaticAnalyzer.

Various bugfixes are also made to clang::SarifDocumentWriter.

Summary of changes:

clang/lib/Basic/Sarif.cpp:
  * Fix bug in adjustColumnPos introduced from prev move, it now uses
    FullSourceLoc::getDecomposedExpansionLoc which provides the correct
    location (in the presence of macros) instead of
    FullSourceLoc::getDecomposedLoc.
  * Fix createTextRegion so that it handles caret ranges correctly,
    this should bring it to parity with the previous implementation.

clang/test/Analysis/diagnostics/Inputs/expected-sarif:
  * Update the schema URL to the offical website
  * Add the emitted defaultConfiguration sections to all rules
  * Annotate results with the "level" property

clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp:
  * Update SarifDiagnostics class to hold a clang::SarifDocumentWriter
    that it uses to convert diagnostics to SARIF.
2022-11-17 14:47:02 -05:00
..
Inputs Refactor StaticAnalyzer to use `clang::SarifDocumentWriter` 2022-11-17 14:47:02 -05:00
deref-track-symbolic-region.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
deref-track-symbolic-region.cpp
dtors.cpp
explicit-suppression.cpp
false-positive-suppression.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
find_last_store.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
implicit-cxx-std-suppression.cpp
initializer.cpp
invalid-srcloc-fix.cpp
macro-null-return-suppression.cpp Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
macros.cpp
macros.m
no-prune-paths.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
no-store-func-path-notes.c [C11/C2x] Change the behavior of the implicit function declaration warning 2022-04-20 11:30:12 -04:00
no-store-func-path-notes.cpp
no-store-func-path-notes.m Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
plist-diagnostics-include-check.cpp
plist-multi-file.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
plist-multi-file.h
report-issues-within-main-file.cpp
sarif-diagnostics-taint-test.c
sarif-multi-diagnostic-test.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
shortest-path-suppression.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
text-diagnostics.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
track_subexpressions.cpp
undef-value-callee.h Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
undef-value-caller.c
undef-value-param.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
undef-value-param.m