зеркало из https://github.com/microsoft/clang-1.git
[libclang] Put the RecursiveASTVisitor in libclang in a cxindex namespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156331 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
e377d71d81
Коммит
98180d49bd
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче