From 08c47b37d35c071890a04aae6870711a3831511d Mon Sep 17 00:00:00 2001 From: Kirill Bobyrev Date: Mon, 1 Aug 2016 16:48:33 +0000 Subject: [clang-rename] revert r276836 Revert r276836, which resulted in tests passing regardless of the actual tool replacements. llvm-svn: 277354 --- clang-tools-extra/test/clang-rename/ClassSimpleRenaming.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'clang-tools-extra/test/clang-rename/ClassSimpleRenaming.cpp') diff --git a/clang-tools-extra/test/clang-rename/ClassSimpleRenaming.cpp b/clang-tools-extra/test/clang-rename/ClassSimpleRenaming.cpp index 94c5243f0aa..72710d05de4 100644 --- a/clang-tools-extra/test/clang-rename/ClassSimpleRenaming.cpp +++ b/clang-tools-extra/test/clang-rename/ClassSimpleRenaming.cpp @@ -1,4 +1,6 @@ -// RUN: clang-rename -offset=74 -new-name=Bar %s -- | FileCheck %s +// RUN: cat %s > %t.cpp +// RUN: clang-rename -offset=136 -new-name=Bar %t.cpp -i -- +// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s class Foo {}; // CHECK: class Bar @@ -7,5 +9,5 @@ int main() { return 0; } -// Use grep -FUbo 'Foo' to get the correct offset of Foo when changing +// Use grep -FUbo 'Foo' to get the correct offset of Cla when changing // this file. -- cgit v1.2.3