[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Tooling / clang-diff-args.test
bloba4ce1ea92508f44d67cb89e15e7e7fb7c670780c
1 RUN: echo a > %t.cpp
3 CHECK: unknown type name 'X'
5 check adding compiler cflags
6 RUN: clang-diff -ast-dump -extra-arg=-Da=X        %t.cpp -- 2>&1 | FileCheck %s
7 RUN: clang-diff -ast-dump -extra-arg-before=-Da=X %t.cpp -- 2>&1 | FileCheck %s
8 RUN: clang-diff -ast-dump %t.cpp -- 2>&1 -Da=X | FileCheck %s
10 NOMATCH-CHECK-NOT: {{.}}
11 RUN: clang-diff %S/clang-diff-ast.cpp %S/clang-diff-ast.cpp -- 2>&1 -std=c++11 \
12 RUN: | FileCheck -check-prefix=NOMATCH-CHECK -allow-empty %s