diff options
Diffstat (limited to 'clang-tools-extra/test/clang-rename/CtorFindByDefinition.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-rename/CtorFindByDefinition.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang-tools-extra/test/clang-rename/CtorFindByDefinition.cpp b/clang-tools-extra/test/clang-rename/CtorFindByDefinition.cpp index 646d69894bb..2f7e65c190d 100644 --- a/clang-tools-extra/test/clang-rename/CtorFindByDefinition.cpp +++ b/clang-tools-extra/test/clang-rename/CtorFindByDefinition.cpp @@ -1,4 +1,6 @@ -// RUN: clang-rename -offset=151 -new-name=Bar %s -- | FileCheck %s +// RUN: cat %s > %t.cpp +// RUN: clang-rename -offset=212 -new-name=Bar %t.cpp -i -- +// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s class Foo { // CHECK: class Bar public: @@ -7,5 +9,5 @@ public: Foo::Foo() {} // CHECK: Bar::Bar() -// Use grep -FUbo 'Foo' <file> to get the correct offset of Foo when changing +// Use grep -FUbo 'C' <file> to get the correct offset of foo when changing // this file. |