[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Tooling / clang-diff-html.test
blob00d9e07d2fcf4ba5a6af5704f31e5d799eef1f12
1 RUN: clang-diff -html %S/Inputs/clang-diff-basic-src.cpp %S/clang-diff-basic.cpp -- | FileCheck %s
3 CHECK: <pre><div id='L' class='code'><span id='L0' tid='R0' title='TranslationUnitDecl
4 CHECK-NEXT: 0 -> 0'>
6 match, update
7 CHECK: <span id='L[[L:[0-9]+]]' tid='R[[R:[0-9]+]]' title='NamespaceDecl
8 CHECK-NEXT: [[L]] -> [[R]]
9 CHECK-NEXT: src;' class='u'>namespace src {
11 match, move
12 CHECK: <span id='L[[L:[0-9]+]]' tid='R[[R:[0-9]+]]' title='FunctionDecl
13 CHECK-NEXT: [[L]] -> [[R]]
14 CHECK-NEXT: :foo(void ())' class='m'>void foo()
16 match
17 CHECK: <span id='L[[L:[0-9]+]]' tid='R[[R:[0-9]+]]' title='FunctionDecl
18 CHECK-NEXT: [[L]] -> [[R]]
19 CHECK-NEXT: :main(void ())'>void main()
21 deletion
22 CHECK: <span id='L[[L:[0-9]+]]' tid='R-1' title='IntegerLiteral
23 CHECK-NEXT: [[L]] -> -1
24 CHECK-NEXT: 4' class='d'>4</span>
26 update + move
27 CHECK: 2' class='u m'>2</span>
29 insertion
30 CHECK: <span id='R[[R:[0-9]+]]' tid='L-1' title='StringLiteral
31 CHECK-NEXT: -1 -> [[R]]
32 CHECK-NEXT: Bar' class='i'>&quot;Bar&quot;</span>
34 comments
35 CHECK: // CHECK: Insert IfStmt{{.*}} into IfStmt
36 CHECK: // CHECK: Delete AccessSpecDecl: public