diff options
author | Johannes Altmanninger <aclopte@gmail.com> | 2017-08-19 12:04:04 +0000 |
---|---|---|
committer | Johannes Altmanninger <aclopte@gmail.com> | 2017-08-19 12:04:04 +0000 |
commit | 710ea0b071ca5dcf2504a2e49eee1a5b315f3215 (patch) | |
tree | 0146b9d5b73baf16ba71bc7744dd126b2ec67524 /test/Tooling | |
parent | 7e86b10209db22f6da6da396be760b2e10de24bb (diff) |
[clang-diff] Make printing of matches optional
Reviewers: arphaman
Subscribers: klimek
Differential Revision: https://reviews.llvm.org/D36181
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Tooling')
-rw-r--r-- | test/Tooling/clang-diff-args.test | 4 | ||||
-rw-r--r-- | test/Tooling/clang-diff-basic.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/test/Tooling/clang-diff-args.test b/test/Tooling/clang-diff-args.test index a051c3ba79..a4ce1ea925 100644 --- a/test/Tooling/clang-diff-args.test +++ b/test/Tooling/clang-diff-args.test @@ -6,3 +6,7 @@ check adding compiler cflags RUN: clang-diff -ast-dump -extra-arg=-Da=X %t.cpp -- 2>&1 | FileCheck %s RUN: clang-diff -ast-dump -extra-arg-before=-Da=X %t.cpp -- 2>&1 | FileCheck %s RUN: clang-diff -ast-dump %t.cpp -- 2>&1 -Da=X | FileCheck %s + +NOMATCH-CHECK-NOT: {{.}} +RUN: clang-diff %S/clang-diff-ast.cpp %S/clang-diff-ast.cpp -- 2>&1 -std=c++11 \ +RUN: | FileCheck -check-prefix=NOMATCH-CHECK -allow-empty %s diff --git a/test/Tooling/clang-diff-basic.cpp b/test/Tooling/clang-diff-basic.cpp index e70171509d..23534749e1 100644 --- a/test/Tooling/clang-diff-basic.cpp +++ b/test/Tooling/clang-diff-basic.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -E %s > %t.src.cpp // RUN: %clang_cc1 -E %s > %t.dst.cpp -DDEST -// RUN: clang-diff %t.src.cpp %t.dst.cpp -- | FileCheck %s +// RUN: clang-diff -dump-matches %t.src.cpp %t.dst.cpp -- | FileCheck %s #ifndef DEST namespace src { |