summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-05-19 22:34:38 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-05-19 22:34:38 +0000
commitd5358b6ebd5aaafac03e24b7a63e4e98235e3bb4 (patch)
tree7b3cc8040c0e7aabc22aafe32e7da3cf7f019c3c
parent33b7885c8287317c464729e9f05e836a23830b7b (diff)
downloadclang-d5358b6ebd5aaafac03e24b7a63e4e98235e3bb4.tar.gz
clang-d5358b6ebd5aaafac03e24b7a63e4e98235e3bb4.tar.bz2
clang-d5358b6ebd5aaafac03e24b7a63e4e98235e3bb4.tar.xz
[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
-rw-r--r--unittests/Tooling/RecursiveASTVisitorTest.cpp7
1 files 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 <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