diff options
author | Kirill Bobyrev <omtcyfz@gmail.com> | 2016-08-01 16:48:33 +0000 |
---|---|---|
committer | Kirill Bobyrev <omtcyfz@gmail.com> | 2016-08-01 16:48:33 +0000 |
commit | 08c47b37d35c071890a04aae6870711a3831511d (patch) | |
tree | 44cdf53b36a21f7f9de0d4b150e0edd78c15f3f0 /clang-tools-extra/test/clang-rename/FunctionMacro.cpp | |
parent | 6ac7dd19f7c3b2deb0450a349152bf75a92e987a (diff) | |
download | bcm5719-llvm-08c47b37d35c071890a04aae6870711a3831511d.tar.gz bcm5719-llvm-08c47b37d35c071890a04aae6870711a3831511d.zip |
[clang-rename] revert r276836
Revert r276836, which resulted in tests passing regardless of the actual tool
replacements.
llvm-svn: 277354
Diffstat (limited to 'clang-tools-extra/test/clang-rename/FunctionMacro.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-rename/FunctionMacro.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang-tools-extra/test/clang-rename/FunctionMacro.cpp b/clang-tools-extra/test/clang-rename/FunctionMacro.cpp index 78b93e5ea3b..1cdac27ab3b 100644 --- a/clang-tools-extra/test/clang-rename/FunctionMacro.cpp +++ b/clang-tools-extra/test/clang-rename/FunctionMacro.cpp @@ -1,4 +1,6 @@ -// RUN: clang-rename -offset=138 -new-name=macro_function %s -- | FileCheck %s +// RUN: cat %s > %t.cpp +// RUN: clang-rename -offset=199 -new-name=macro_function %t.cpp -i -- +// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s #define moo foo // CHECK: #define moo macro_function @@ -15,5 +17,5 @@ void qoo() { boo(moo()); } -// Use grep -FUbo 'foo' <file> to get the correct offset of foo when changing +// Use grep -FUbo 'foo;' <file> to get the correct offset of foo when changing // this file. |