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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits