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-22 16:56:26 +08:00
|
|
|
// CHECK-NEXT: :foo(void ())' class='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-22 16:56:26 +08:00
|
|
|
// CHECK-NEXT: :main(void ())'>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
|