diff options
Diffstat (limited to 'clang/unittests/Tooling/RecursiveASTVisitorTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/RecursiveASTVisitorTest.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp b/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp index a2aedb64859..7e08f9619c1 100644 --- a/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp +++ b/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp @@ -133,25 +133,6 @@ TEST(RecursiveASTVisitor, AttributesAreVisited) { "};\n")); } -// Check to ensure that VarDecls are visited. -class VarDeclVisitor : public ExpectedLocationVisitor<VarDeclVisitor> { -public: - bool VisitVarDecl(VarDecl *VD) { - Match(VD->getNameAsString(), VD->getLocStart()); - return true; - } -}; - -TEST(RecursiveASTVisitor, ArrayInitializersAreVisited) { - VarDeclVisitor Visitor; - Visitor.ExpectMatch("__i0", 1, 8); - EXPECT_TRUE( - Visitor.runOver("struct MyClass {\n" - " int c[1];\n" - " static MyClass Create() { return MyClass(); }\n" - "};\n")); -} - // Check to ensure that implicit default argument expressions are visited. class IntegerLiteralVisitor : public ExpectedLocationVisitor<IntegerLiteralVisitor> { |