[clang-tools-extra] r245688 - Make test EOL tolerant by moving the symbol ot the first line

Yaron Keren via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 03:46:47 PDT 2015


Author: yrnkrn
Date: Fri Aug 21 05:46:46 2015
New Revision: 245688

URL: http://llvm.org/viewvc/llvm-project?rev=245688&view=rev
Log:
Make test EOL tolerant by moving the symbol ot the first line
before any EOL changes the byte offset count and enable it on Windows.


Modified:
    clang-tools-extra/trunk/test/clang-rename/VarTest.cpp

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=245688&r1=245687&r2=245688&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-rename/VarTest.cpp (original)
+++ clang-tools-extra/trunk/test/clang-rename/VarTest.cpp Fri Aug 21 05:46:46 2015
@@ -1,10 +1,8 @@
+namespace A { int foo;  // CHECK: int hector;
+}
 // RUN: cat %s > %t.cpp
-// RUN: clang-rename -offset=170 -new-name=hector %t.cpp -i --
+// RUN: clang-rename -offset=18 -new-name=hector %t.cpp -i --
 // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
-// REQUIRES: shell
-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