r209169 - [modules] Fix ODR violation: there's another clang::TypeLocVisitor elsewhere.

Richard Smith richard-llvm at metafoo.co.uk
Mon May 19 15:34:38 PDT 2014


Author: rsmith
Date: Mon May 19 17:34:38 2014
New Revision: 209169

URL: http://llvm.org/viewvc/llvm-project?rev=209169&view=rev
Log:
[modules] Fix ODR violation: there's another clang::TypeLocVisitor elsewhere.

Modified:
    cfe/trunk/unittests/Tooling/RecursiveASTVisitorTest.cpp

Modified: cfe/trunk/unittests/Tooling/RecursiveASTVisitorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/RecursiveASTVisitorTest.cpp?rev=209169&r1=209168&r2=209169&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/RecursiveASTVisitorTest.cpp (original)
+++ cfe/trunk/unittests/Tooling/RecursiveASTVisitorTest.cpp Mon May 19 17:34:38 2014
@@ -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, AttributesAreV
     "};\n"));
 }
 
-
-} // end namespace clang
+} // end anonymous namespace





More information about the cfe-commits mailing list