[clang-tools-extra] r268897 - 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:47:19 PDT 2016


Author: vmiklos
Date: Mon May  9 03:47:18 2016
New Revision: 268897

URL: http://llvm.org/viewvc/llvm-project?rev=268897&view=rev
Log:
clang-rename tests: move the run lines to the top of the test files

Summary: To be consistent with the other tests.

Reviewers: cfe-commits, klimek

Differential Revision: http://reviews.llvm.org/D20059

Modified:
    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

Modified: clang-tools-extra/trunk/test/clang-rename/ClassTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-rename/ClassTest.cpp?rev=268897&r1=268896&r2=268897&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-rename/ClassTest.cpp (original)
+++ clang-tools-extra/trunk/test/clang-rename/ClassTest.cpp Mon May  9 03:47:18 2016
@@ -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()
 {

Modified: clang-tools-extra/trunk/test/clang-rename/FieldTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-rename/FieldTest.cpp?rev=268897&r1=268896&r2=268897&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-rename/FieldTest.cpp (original)
+++ clang-tools-extra/trunk/test/clang-rename/FieldTest.cpp Mon May  9 03:47:18 2016
@@ -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)

Modified: clang-tools-extra/trunk/test/clang-rename/VarTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-rename/VarTest.cpp?rev=268897&r1=268896&r2=268897&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-rename/VarTest.cpp (original)
+++ clang-tools-extra/trunk/test/clang-rename/VarTest.cpp Mon May  9 03:47:18 2016
@@ -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;




More information about the cfe-commits mailing list