summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-05-07 22:22:58 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-05-07 22:22:58 +0000
commit0c7708b57169625475c94cc7f0783c8fc5ecdb13 (patch)
treed86e6547c125a7016a443062a82345f0e02caf47 /clang/tools
parent93e1d1c9e0d7de0af6c796ecb486970165a21cb5 (diff)
downloadbcm5719-llvm-0c7708b57169625475c94cc7f0783c8fc5ecdb13.tar.gz
bcm5719-llvm-0c7708b57169625475c94cc7f0783c8fc5ecdb13.zip
[libclang] Put the RecursiveASTVisitor in libclang in a cxindex namespace.
llvm-svn: 156331
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/libclang/IndexBody.cpp2
-rw-r--r--clang/tools/libclang/IndexTypeSourceInfo.cpp2
-rw-r--r--clang/tools/libclang/RecursiveASTVisitor.h2
3 files changed, 4 insertions, 2 deletions
diff --git a/clang/tools/libclang/IndexBody.cpp b/clang/tools/libclang/IndexBody.cpp
index e1b9f2a91d7..9a829f8580c 100644
--- a/clang/tools/libclang/IndexBody.cpp
+++ b/clang/tools/libclang/IndexBody.cpp
@@ -16,7 +16,7 @@ using namespace cxindex;
namespace {
-class BodyIndexer : public RecursiveASTVisitor<BodyIndexer> {
+class BodyIndexer : public cxindex::RecursiveASTVisitor<BodyIndexer> {
IndexingContext &IndexCtx;
const NamedDecl *Parent;
const DeclContext *ParentDC;
diff --git a/clang/tools/libclang/IndexTypeSourceInfo.cpp b/clang/tools/libclang/IndexTypeSourceInfo.cpp
index 13b2efdb368..67a06f24988 100644
--- a/clang/tools/libclang/IndexTypeSourceInfo.cpp
+++ b/clang/tools/libclang/IndexTypeSourceInfo.cpp
@@ -16,7 +16,7 @@ using namespace cxindex;
namespace {
-class TypeIndexer : public RecursiveASTVisitor<TypeIndexer> {
+class TypeIndexer : public cxindex::RecursiveASTVisitor<TypeIndexer> {
IndexingContext &IndexCtx;
const NamedDecl *Parent;
const DeclContext *ParentDC;
diff --git a/clang/tools/libclang/RecursiveASTVisitor.h b/clang/tools/libclang/RecursiveASTVisitor.h
index e4cf489c239..8f244f1c986 100644
--- a/clang/tools/libclang/RecursiveASTVisitor.h
+++ b/clang/tools/libclang/RecursiveASTVisitor.h
@@ -65,6 +65,7 @@
OPERATOR(Shl) OPERATOR(Shr) OPERATOR(And) OPERATOR(Or) OPERATOR(Xor)
namespace clang {
+namespace cxindex {
// A helper macro to implement short-circuiting when recursing. It
// invokes CALL_EXPR, which must be a method call, on the derived
@@ -2238,6 +2239,7 @@ DEF_TRAVERSE_STMT(AsTypeExpr, { })
#undef TRY_TO
+} // end namespace cxindex
} // end namespace clang
#endif // LLVM_CLANG_LIBCLANG_RECURSIVEASTVISITOR_H
OpenPOWER on IntegriCloud