• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: clang-diff -html %S/Inputs/clang-diff-basic-src.cpp %S/clang-diff-basic.cpp -- | FileCheck %s
2
3CHECK: <pre><div id='L' class='code'><span id='L0' tid='R0' title='TranslationUnitDecl
4CHECK-NEXT: 0 -> 0'>
5
6match, update
7CHECK: <span id='L[[L:[0-9]+]]' tid='R[[R:[0-9]+]]' title='NamespaceDecl
8CHECK-NEXT: [[L]] -> [[R]]
9CHECK-NEXT: src;' class='u'>namespace src {
10
11match, move
12CHECK: <span id='L[[L:[0-9]+]]' tid='R[[R:[0-9]+]]' title='FunctionDecl
13CHECK-NEXT: [[L]] -> [[R]]
14CHECK-NEXT: :foo(void ())' class='m'>void foo()
15
16match
17CHECK: <span id='L[[L:[0-9]+]]' tid='R[[R:[0-9]+]]' title='FunctionDecl
18CHECK-NEXT: [[L]] -> [[R]]
19CHECK-NEXT: :main(void ())'>void main()
20
21deletion
22CHECK: <span id='L[[L:[0-9]+]]' tid='R-1' title='IntegerLiteral
23CHECK-NEXT: [[L]] -> -1
24CHECK-NEXT: 4' class='d'>4</span>
25
26update + move
27CHECK: 2' class='u m'>2</span>
28
29insertion
30CHECK: <span id='R[[R:[0-9]+]]' tid='L-1' title='StringLiteral
31CHECK-NEXT: -1 -> [[R]]
32CHECK-NEXT: Bar' class='i'>&quot;Bar&quot;</span>
33
34comments
35CHECK: // CHECK: Insert IfStmt{{.*}} into IfStmt
36CHECK: // CHECK: Delete AccessSpecDecl: public
37