vmiklos created this revision.
vmiklos added reviewers: cfe-commits, klimek.
To be consistent with the other tests.
http://reviews.llvm.org/D20059
Files:
test/clang-rename/ClassTest.cpp
test/clang-rename/FieldTest.cpp
test/clang-rename/VarTest.cpp
Index: test/clang-rename/VarTest.cpp
===================================================================
--- test/clang-rename/VarTest.cpp
+++ 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: test/clang-rename/FieldTest.cpp
===================================================================
--- test/clang-rename/FieldTest.cpp
+++ 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)
Index: test/clang-rename/ClassTest.cpp
===================================================================
--- test/clang-rename/ClassTest.cpp
+++ 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: test/clang-rename/VarTest.cpp
===================================================================
--- test/clang-rename/VarTest.cpp
+++ 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: test/clang-rename/FieldTest.cpp
===================================================================
--- test/clang-rename/FieldTest.cpp
+++ 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)
Index: test/clang-rename/ClassTest.cpp
===================================================================
--- test/clang-rename/ClassTest.cpp
+++ 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()
{
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits