From: Richard Smith Date: Mon, 19 May 2014 22:34:38 +0000 (+0000) Subject: [modules] Fix ODR violation: there's another clang::TypeLocVisitor elsewhere. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5358b6ebd5aaafac03e24b7a63e4e98235e3bb4;p=clang [modules] Fix ODR violation: there's another clang::TypeLocVisitor elsewhere. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209169 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Tooling/RecursiveASTVisitorTest.cpp b/unittests/Tooling/RecursiveASTVisitorTest.cpp index a5f85ffa92..837a15fa88 100644 --- a/unittests/Tooling/RecursiveASTVisitorTest.cpp +++ b/unittests/Tooling/RecursiveASTVisitorTest.cpp @@ -10,7 +10,9 @@ #include "TestVisitor.h" #include -namespace clang { +using namespace clang; + +namespace { class TypeLocVisitor : public ExpectedLocationVisitor { public: @@ -614,5 +616,4 @@ TEST(RecursiveASTVisitor, AttributesAreVisited) { "};\n")); } - -} // end namespace clang +} // end anonymous namespace