summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-rename/ClassNameInFunctionDefenition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/test/clang-rename/ClassNameInFunctionDefenition.cpp')
-rw-r--r--clang-tools-extra/test/clang-rename/ClassNameInFunctionDefenition.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/clang-tools-extra/test/clang-rename/ClassNameInFunctionDefenition.cpp b/clang-tools-extra/test/clang-rename/ClassNameInFunctionDefenition.cpp
index c0e5f073170..1b2d59e1862 100644
--- a/clang-tools-extra/test/clang-rename/ClassNameInFunctionDefenition.cpp
+++ b/clang-tools-extra/test/clang-rename/ClassNameInFunctionDefenition.cpp
@@ -1,17 +1,10 @@
-// Currently unsupported test.
// RUN: cat %s > %t.cpp
-// FIXME: clang-rename doesn't recognize symbol in class function definition.
+// RUN: clang-rename -offset=136 -new-name=Bar %t.cpp -i --
+// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
-class Foo {
+class Foo { // CHECK: class Bar {
public:
void foo(int x);
};
-void Foo::foo(int x) {}
-// ^ this one
-
-int main() {
- Foo obj;
- obj.foo(0);
- return 0;
-}
+void Foo::foo(int x) {} // CHECK: void Bar::foo(int x) {}
OpenPOWER on IntegriCloud