diff options
author | George Karpenkov <ekarpenkov@apple.com> | 2019-01-10 18:15:44 +0000 |
---|---|---|
committer | George Karpenkov <ekarpenkov@apple.com> | 2019-01-10 18:15:44 +0000 |
commit | 363dd8e4b86cab350999afbbaf23c5f8fa472b47 (patch) | |
tree | dd810851f8f23424010ff85a20031c1aed869442 /clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp | |
parent | 7bac331b7e94735566c9b001adf7f1898c573a38 (diff) | |
download | bcm5719-llvm-363dd8e4b86cab350999afbbaf23c5f8fa472b47.tar.gz bcm5719-llvm-363dd8e4b86cab350999afbbaf23c5f8fa472b47.zip |
[analyzer] [NFC] Reverse the argument order for "diff" in tests
The current argument order has "expected" and "actual" the wrong way around,
so that the diff shows the change from expected to actual, not from actual to expected.
Namely, if the expected diagnostics contains the string "foo", but the analyzer emits "bar",
we really want to see:
```
- foo
+ bar
```
not
```
- bar
+ foo
```
since adapting to most changes would require applying that diff to the expected output.
Differential Revision: https://reviews.llvm.org/D56340
llvm-svn: 350866
Diffstat (limited to 'clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp')
-rw-r--r-- | clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp b/clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp index dedc3b5b21d..7cbda91b657 100644 --- a/clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp +++ b/clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp @@ -1,6 +1,6 @@ // RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output=text -analyzer-config graph-trim-interval=5 -analyzer-config suppress-null-return-paths=false -verify %s // RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output=plist-multi-file -analyzer-config graph-trim-interval=5 -analyzer-config suppress-null-return-paths=false %s -o %t.plist -// RUN: cat %t.plist | %diff_plist %S/Inputs/expected-plists/eager-reclamation-path-notes.cpp.plist +// RUN: cat %t.plist | %diff_plist %S/Inputs/expected-plists/eager-reclamation-path-notes.cpp.plist - typedef struct { int getValue(); |