From d5358b6ebd5aaafac03e24b7a63e4e98235e3bb4 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 19 May 2014 22:34:38 +0000 Subject: [PATCH] [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 --- unittests/Tooling/RecursiveASTVisitorTest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.50.1