[PATCH] D20059: clang-rename tests: move the run lines to the top of the test files
Miklos Vajna via cfe-commits
cfe-commits at lists.llvm.org
Mon May 9 01:53:18 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL268897: clang-rename tests: move the run lines to the top of the test files (authored by vmiklos).
Changed prior to commit:
http://reviews.llvm.org/D20059?vs=56537&id=56538#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20059
Files:
clang-tools-extra/trunk/test/clang-rename/ClassTest.cpp
clang-tools-extra/trunk/test/clang-rename/FieldTest.cpp
clang-tools-extra/trunk/test/clang-rename/VarTest.cpp
Index: clang-tools-extra/trunk/test/clang-rename/VarTest.cpp
===================================================================
--- clang-tools-extra/trunk/test/clang-rename/VarTest.cpp
+++ clang-tools-extra/trunk/test/clang-rename/VarTest.cpp
@@ -1,8 +1,8 @@
-namespace A { int foo; // CHECK: int hector;
-}
// RUN: cat %s > %t.cpp
-// RUN: clang-rename -offset=18 -new-name=hector %t.cpp -i --
+// RUN: clang-rename -offset=150 -new-name=hector %t.cpp -i --
// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
+namespace A { int foo; // CHECK: int hector;
+}
int foo; // CHECK: int foo;
int bar = foo; // CHECK: bar = foo;
int baz = A::foo; // CHECK: baz = A::hector;
Index: clang-tools-extra/trunk/test/clang-rename/ClassTest.cpp
===================================================================
--- clang-tools-extra/trunk/test/clang-rename/ClassTest.cpp
+++ clang-tools-extra/trunk/test/clang-rename/ClassTest.cpp
@@ -1,9 +1,9 @@
+// RUN: cat %s > %t.cpp
+// RUN: clang-rename -offset=138 -new-name=Hector %t.cpp -i --
+// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
class Cla // CHECK: class Hector
{
};
-// RUN: cat %s > %t.cpp
-// RUN: clang-rename -offset=6 -new-name=Hector %t.cpp -i --
-// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
int main()
{
Index: clang-tools-extra/trunk/test/clang-rename/FieldTest.cpp
===================================================================
--- clang-tools-extra/trunk/test/clang-rename/FieldTest.cpp
+++ clang-tools-extra/trunk/test/clang-rename/FieldTest.cpp
@@ -1,12 +1,12 @@
+// RUN: cat %s > %t.cpp
+// RUN: clang-rename -offset=150 -new-name=hector %t.cpp -i --
+// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
class Cla
{
int foo; // CHECK: hector;
public:
Cla();
};
-// RUN: cat %s > %t.cpp
-// RUN: clang-rename -offset=18 -new-name=hector %t.cpp -i --
-// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
Cla::Cla()
: foo(0) // CHECK: hector(0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20059.56538.patch
Type: text/x-patch
Size: 1917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160509/13745b4d/attachment.bin>
More information about the cfe-commits
mailing list