]> granicus.if.org Git - clang/commitdiff
[modules] Fix ODR violation: there's another clang::TypeLocVisitor elsewhere.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 19 May 2014 22:34:38 +0000 (22:34 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 19 May 2014 22:34:38 +0000 (22:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209169 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Tooling/RecursiveASTVisitorTest.cpp

index a5f85ffa9235000c666f626ffc48292668d09359..837a15fa8879b6de9b48536f16aded72b45f1a40 100644 (file)
@@ -10,7 +10,9 @@
 #include "TestVisitor.h"
 #include <stack>
 
-namespace clang {
+using namespace clang;
+
+namespace {
 
 class TypeLocVisitor : public ExpectedLocationVisitor<TypeLocVisitor> {
 public:
@@ -614,5 +616,4 @@ TEST(RecursiveASTVisitor, AttributesAreVisited) {
     "};\n"));
 }
 
-
-} // end namespace clang
+} // end anonymous namespace