summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp
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
commit1be902c02f1d98e89bb173447d4ee5faf04433e1 (patch)
treeccf73c1a1389f351acf3254e90c207e3bbcd3e99 /clang/unittests/Tooling/RecursiveASTVisitorTest.cpp
parentff6c0c18a819fc4211e2f00f05be28f76109ae49 (diff)
downloadbcm5719-llvm-1be902c02f1d98e89bb173447d4ee5faf04433e1.tar.gz
bcm5719-llvm-1be902c02f1d98e89bb173447d4ee5faf04433e1.zip
[modules] Fix ODR violation: there's another clang::TypeLocVisitor elsewhere.
llvm-svn: 209169
Diffstat (limited to 'clang/unittests/Tooling/RecursiveASTVisitorTest.cpp')
-rw-r--r--clang/unittests/Tooling/RecursiveASTVisitorTest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp b/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp
index a5f85ffa923..837a15fa887 100644
--- a/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud