2017-08-19 23:40:45 +08:00
|
|
|
// RUN: clang-diff -html %S/Inputs/clang-diff-basic-src.cpp %S/clang-diff-basic.cpp -- | FileCheck %s
|
|
|
|
|
|
|
|
// CHECK: <pre><div id='L' class='code'><span id='L0' tid='R0' title='TranslationUnitDecl
|
|
|
|
// CHECK-NEXT: 0 -> 0'>
|
|
|
|
|
|
|
|
// match, update
|
|
|
|
// CHECK: <span id='L[[L:[0-9]+]]' tid='R[[R:[0-9]+]]' title='NamespaceDecl
|
|
|
|
// CHECK-NEXT: [[L]] -> [[R]]
|
|
|
|
// CHECK-NEXT: src;' class='u'>namespace src {
|
|
|
|
|
|
|
|
// match, move
|
|
|
|
// CHECK: <span id='L[[L:[0-9]+]]' tid='R[[R:[0-9]+]]' title='FunctionDecl
|
|
|
|
// CHECK-NEXT: [[L]] -> [[R]]
|
2017-08-21 00:18:43 +08:00
|
|
|
// CHECK-NEXT: src::foo(void ())' class='u m'>void foo()
|
2017-08-19 23:40:45 +08:00
|
|
|
|
|
|
|
// match
|
|
|
|
// CHECK: <span id='L[[L:[0-9]+]]' tid='R[[R:[0-9]+]]' title='FunctionDecl
|
|
|
|
// CHECK-NEXT: [[L]] -> [[R]]
|
2017-08-21 00:18:43 +08:00
|
|
|
// CHECK-NEXT: src::main(void ())' class='u'>void main()
|
2017-08-19 23:40:45 +08:00
|
|
|
|
|
|
|
// deletion
|
|
|
|
// CHECK: <span id='L[[L:[0-9]+]]' tid='R-1' title='IntegerLiteral
|
|
|
|
// CHECK-NEXT: [[L]] -> -1
|
|
|
|
// CHECK-NEXT: 4' class='d'>4</span>
|
|
|
|
|
|
|
|
// update + move
|
|
|
|
// CHECK: 2' class='u m'>2</span>
|
|
|
|
|
|
|
|
// insertion
|
|
|
|
// CHECK: <span id='R[[R:[0-9]+]]' tid='L-1' title='StringLiteral
|
|
|
|
// CHECK-NEXT: -1 -> [[R]]
|
|
|
|
// CHECK-NEXT: Bar' class='i'>"Bar"</span>
|
|
|
|
|
|
|
|
// comments
|
|
|
|
// CHECK: // CHECK: Insert IfStmt{{.*}} into IfStmt
|
|
|
|
// CHECK: // CHECK: Delete AccessSpecDecl: public
|