summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/diagnostics/report-issues-within-main-file.cpp
diff options
context:
space:
mode:
authorHubert Tong <hubert.reinterpretcast@gmail.com>2019-06-10 22:37:31 +0000
committerHubert Tong <hubert.reinterpretcast@gmail.com>2019-06-10 22:37:31 +0000
commit65db5d4cb510d93a9ba1e55b4dbd1325eb41ee74 (patch)
tree31814de21816b8073c87f9401206c52df0110c0f /clang/test/Analysis/diagnostics/report-issues-within-main-file.cpp
parente44fa83c374463ff824bd1fe5e4ac5935463c7a3 (diff)
downloadbcm5719-llvm-65db5d4cb510d93a9ba1e55b4dbd1325eb41ee74.tar.gz
bcm5719-llvm-65db5d4cb510d93a9ba1e55b4dbd1325eb41ee74.zip
[analyzer][tests] Use normalize_plist in place of diff_plist (`cat` cases)
Summary: The `%diff_plist` 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. This patch applies the change (adjusted for review comments) described in http://lists.llvm.org/pipermail/cfe-dev/2019-April/061904.html mechanically to the cases where the output file is piped to `%diff_plist` via `cat`. The changes were applied via a script, except that `clang/test/Analysis/NewDelete-path-notes.cpp` and `clang/test/Analysis/plist-macros-with-expansion.cpp` were each adjusted for the line-continuation on the relevant `RUN` step. Reviewers: NoQ, sfertile, xingxue, jasonliu, daltenty 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/D62950 llvm-svn: 362996
Diffstat (limited to 'clang/test/Analysis/diagnostics/report-issues-within-main-file.cpp')
-rw-r--r--clang/test/Analysis/diagnostics/report-issues-within-main-file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/diagnostics/report-issues-within-main-file.cpp b/clang/test/Analysis/diagnostics/report-issues-within-main-file.cpp
index f166e311c53..ad50ab72fe4 100644
--- a/clang/test/Analysis/diagnostics/report-issues-within-main-file.cpp
+++ b/clang/test/Analysis/diagnostics/report-issues-within-main-file.cpp
@@ -1,5 +1,5 @@
// RUN: %clang_analyze_cc1 -analyzer-checker=core,unix -analyzer-output=plist-multi-file -analyzer-config report-in-main-source-file=true %s -o %t.plist
-// RUN: cat %t.plist | %diff_plist %S/Inputs/expected-plists/report-issues-within-main-file.cpp.plist -
+// RUN: %normalize_plist <%t.plist | diff -u %S/Inputs/expected-plists/report-issues-within-main-file.cpp.plist -
#include "Inputs/include/report-issues-within-main-file.h"
void mainPlusHeader() {
OpenPOWER on IntegriCloud