diff options
Diffstat (limited to 'clang-tools-extra/test')
-rw-r--r-- | clang-tools-extra/test/CMakeLists.txt | 1 | ||||
-rw-r--r-- | clang-tools-extra/test/clang-rename/VarTest.cpp | 24 |
2 files changed, 0 insertions, 25 deletions
diff --git a/clang-tools-extra/test/CMakeLists.txt b/clang-tools-extra/test/CMakeLists.txt index 253f302b907..6a98cdd0504 100644 --- a/clang-tools-extra/test/CMakeLists.txt +++ b/clang-tools-extra/test/CMakeLists.txt @@ -37,7 +37,6 @@ set(CLANG_TOOLS_TEST_DEPS # Individual tools we test. clang-apply-replacements clang-modernize - clang-rename clang-query clang-tidy modularize diff --git a/clang-tools-extra/test/clang-rename/VarTest.cpp b/clang-tools-extra/test/clang-rename/VarTest.cpp deleted file mode 100644 index ecf2df4b023..00000000000 --- a/clang-tools-extra/test/clang-rename/VarTest.cpp +++ /dev/null @@ -1,24 +0,0 @@ -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; -void fun1() { - struct { - int foo; // CHECK: int foo; - } b = { 100 }; - int foo = 100; // CHECK: int foo - baz = foo; // CHECK: baz = foo; - { - extern int foo; // CHECK: int foo; - baz = foo; // CHECK: baz = foo; - foo = A::foo + baz; // CHECK: foo = A::hector + baz; - A::foo = b.foo; // CHECK: A::hector = b.foo; - } - foo = b.foo; // CHECK: foo = b.foo; -} -// REQUIRES: shell -// RUN: cat %s > %t.cpp -// RUN: clang-rename -offset=$(grep -FUbo 'foo;' %t.cpp | head -1 | cut -d: -f1) -new-name=hector %t.cpp -i -- -// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s |