diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-29 23:41:08 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-29 23:41:08 +0000 |
commit | f7f56741e074bc96f167d339a377fe01d1c5e0f5 (patch) | |
tree | bb74efcca2b29b01369952263be72e6ce52eb227 /clang/tools/index-test/index-test.cpp | |
parent | b8470e4f7591a255a801c66d10bbedcf0bdc855f (diff) | |
download | bcm5719-llvm-f7f56741e074bc96f167d339a377fe01d1c5e0f5.tar.gz bcm5719-llvm-f7f56741e074bc96f167d339a377fe01d1c5e0f5.zip |
Add TranslationUnit::getSelectorMap().
llvm-svn: 77542
Diffstat (limited to 'clang/tools/index-test/index-test.cpp')
-rw-r--r-- | clang/tools/index-test/index-test.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/tools/index-test/index-test.cpp b/clang/tools/index-test/index-test.cpp index a0d60f7b492..037221fcef5 100644 --- a/clang/tools/index-test/index-test.cpp +++ b/clang/tools/index-test/index-test.cpp @@ -38,6 +38,7 @@ #include "clang/Index/TranslationUnit.h" #include "clang/Index/ASTLocation.h" #include "clang/Index/DeclReferenceMap.h" +#include "clang/Index/SelectorMap.h" #include "clang/Index/Handlers.h" #include "clang/Index/Analyzer.h" #include "clang/Index/Utils.h" @@ -58,14 +59,18 @@ using namespace idx; class TUnit : public TranslationUnit { public: TUnit(ASTUnit *ast, const std::string &filename) - : AST(ast), Filename(filename), DeclRefMap(ast->getASTContext()) { } + : AST(ast), Filename(filename), + DeclRefMap(ast->getASTContext()), + SelMap(ast->getASTContext()) { } virtual ASTContext &getASTContext() { return AST->getASTContext(); } virtual DeclReferenceMap &getDeclReferenceMap() { return DeclRefMap; } + virtual SelectorMap &getSelectorMap() { return SelMap; } llvm::OwningPtr<ASTUnit> AST; std::string Filename; DeclReferenceMap DeclRefMap; + SelectorMap SelMap; }; static llvm::cl::list<ParsedSourceLocation> |