]> granicus.if.org Git - clang/commitdiff
[libclang] Put the RecursiveASTVisitor in libclang in a cxindex namespace.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 7 May 2012 22:22:58 +0000 (22:22 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 7 May 2012 22:22:58 +0000 (22:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156331 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/IndexBody.cpp
tools/libclang/IndexTypeSourceInfo.cpp
tools/libclang/RecursiveASTVisitor.h

index e1b9f2a91d7be726d5b54441c46d8e26cad0c7b3..9a829f8580c6b514576c824c460e89491076b6ea 100644 (file)
@@ -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;
index 13b2efdb3684c6c6e755dafc32d00b81d7c803d4..67a06f249889793656f9829f81227f971ac8cec8 100644 (file)
@@ -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;
index e4cf489c2393f1554c234958a824a7799121f2d5..8f244f1c9865f4512aa1e1d71ddd780ab968bfa4 100644 (file)
@@ -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