summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/test/clang-rename/ClassTest.cpp6
-rw-r--r--clang-tools-extra/test/clang-rename/FieldTest.cpp6
-rw-r--r--clang-tools-extra/test/clang-rename/VarTest.cpp6
3 files changed, 9 insertions, 9 deletions
diff --git a/clang-tools-extra/test/clang-rename/ClassTest.cpp b/clang-tools-extra/test/clang-rename/ClassTest.cpp
index dc12f178257..a2b8f0cf529 100644
--- a/clang-tools-extra/test/clang-rename/ClassTest.cpp
+++ b/clang-tools-extra/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()
{
diff --git a/clang-tools-extra/test/clang-rename/FieldTest.cpp b/clang-tools-extra/test/clang-rename/FieldTest.cpp
index 6077841ba04..89c34d190f2 100644
--- a/clang-tools-extra/test/clang-rename/FieldTest.cpp
+++ b/clang-tools-extra/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)
diff --git a/clang-tools-extra/test/clang-rename/VarTest.cpp b/clang-tools-extra/test/clang-rename/VarTest.cpp
index 37b08132c64..91c2f0e614f 100644
--- a/clang-tools-extra/test/clang-rename/VarTest.cpp
+++ b/clang-tools-extra/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;
OpenPOWER on IntegriCloud