llvm-project/clang/test/Analysis/diagnostics
Hubert Tong 64b60df99f [analyzer] SARIF: Add EOF newline; replace diff_sarif
Summary:
This patch applies a change similar to rC363069, but for SARIF files.

The `%diff_sarif` lit substitution invokes `diff` with a non-portable
`-I` option. The intended effect can be achieved by normalizing the
inputs to `diff` beforehand. Such normalization can be done with
`grep -Ev`, which is also used by other tests.

Additionally, this patch updates the SARIF output to have a newline at
the end of the file. This makes it so that the SARIF file qualifies as a
POSIX text file, which increases the consumability of the generated file
in relation to various tools.

Reviewers: NoQ, sfertile, xingxue, jasonliu, daltenty, aaron.ballman

Reviewed By: aaron.ballman

Subscribers: xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, Charusso, jsji, cfe-commits

Tags: #clang

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

llvm-svn: 363822
2019-06-19 15:27:35 +00:00
..
Inputs [analyzer] SARIF: Add EOF newline; replace diff_sarif 2019-06-19 15:27:35 +00:00
deref-track-symbolic-region.c Reapply r362994 & co "[analyzer][tests] Add normalize_plist to replace diff_plist" 2019-06-11 14:21:32 +00:00
deref-track-symbolic-region.cpp
dtors.cpp [analyzer] ConditionBRVisitor: MemberExpr support 2019-05-29 20:29:02 +00:00
explicit-suppression.cpp [analyzer] MoveChecker Pt.6: Suppress the warning for the move-safe STL classes. 2018-12-14 20:52:57 +00:00
false-positive-suppression.c
find_last_store.c [analyzer] Prevent crashes in FindLastStoreBRVisitor 2018-09-24 21:20:30 +00:00
implicit-cxx-std-suppression.cpp [analyzer] NFC: Run many existing C++ tests with a custom operator new(). 2018-01-24 21:24:10 +00:00
initializer.cpp [analyzer] Add a prunable note for skipping vbase inits in subclasses. 2019-05-24 23:37:11 +00:00
invalid-srcloc-fix.cpp [analyzer] Fix an assertation failure for invalid sourcelocation, add a new debug checker 2019-03-14 16:10:29 +00:00
macro-null-return-suppression.cpp [analyzer] Bugfix for an overly eager suppression for null pointer return from macros. 2018-07-16 20:33:25 +00:00
macros.cpp [analyzer] Fix macro names in diagnostics within bigger macros. 2019-04-23 21:30:30 +00:00
macros.m
no-prune-paths.c
no-store-func-path-notes.c [analyzer] ConditionBRVisitor: Enhance to write out more information 2019-05-29 20:06:09 +00:00
no-store-func-path-notes.cpp [analyzer] ConditionBRVisitor: Boolean support 2019-05-29 20:34:29 +00:00
no-store-func-path-notes.m [analyzer] ConditionBRVisitor: Enhance to write out more information 2019-05-29 20:06:09 +00:00
plist-diagnostics-include-check.cpp Reapply r362994 & co "[analyzer][tests] Add normalize_plist to replace diff_plist" 2019-06-11 14:21:32 +00:00
plist-multi-file.c Reapply r362994 & co "[analyzer][tests] Add normalize_plist to replace diff_plist" 2019-06-11 14:21:32 +00:00
plist-multi-file.h [analyzer] Make plist-html diagnostic consumer produce multi-file reports. 2018-05-16 00:11:24 +00:00
report-issues-within-main-file.cpp Reapply r362994 & co "[analyzer][tests] Add normalize_plist to replace diff_plist" 2019-06-11 14:21:32 +00:00
sarif-diagnostics-taint-test.c [analyzer] SARIF: Add EOF newline; replace diff_sarif 2019-06-19 15:27:35 +00:00
sarif-multi-diagnostic-test.c [analyzer] SARIF: Add EOF newline; replace diff_sarif 2019-06-19 15:27:35 +00:00
shortest-path-suppression.c
text-diagnostics.c
track_subexpressions.cpp [analyzer] Push correct version of 'Track indices of arrays' 2019-06-16 15:41:25 +00:00
undef-value-callee.h
undef-value-caller.c Reapply r362994 & co "[analyzer][tests] Add normalize_plist to replace diff_plist" 2019-06-11 14:21:32 +00:00
undef-value-param.c Reapply r362994 & co "[analyzer][tests] Add normalize_plist to replace diff_plist" 2019-06-11 14:21:32 +00:00
undef-value-param.m Reapply r362994 & co "[analyzer][tests] Add normalize_plist to replace diff_plist" 2019-06-11 14:21:32 +00:00