diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-29 23:39:52 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-29 23:39:52 +0000 |
commit | 52f1d4793588af6c5c09ab096818ff942bae3af6 (patch) | |
tree | 6b96038d9e89db1e8c40afb752aea9f16a4b430c /include/clang/Index | |
parent | e380c51d6f56a2cc32fa0f5723584224214c5b9f (diff) |
Modify the Indexer class so that it can return the TranslationUnit that internal
decls originated from.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Index')
-rw-r--r-- | include/clang/Index/Indexer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Index/Indexer.h b/include/clang/Index/Indexer.h index 3597dbff73..4fa3616064 100644 --- a/include/clang/Index/Indexer.h +++ b/include/clang/Index/Indexer.h @@ -16,9 +16,11 @@ #include "clang/Index/IndexProvider.h" #include "llvm/ADT/SmallPtrSet.h" +#include "llvm/ADT/DenseMap.h" #include <map> namespace clang { + class ASTContext; namespace idx { class Program; @@ -28,6 +30,7 @@ namespace idx { class Indexer : public IndexProvider { public: typedef llvm::SmallPtrSet<TranslationUnit *, 4> TUSetTy; + typedef llvm::DenseMap<ASTContext *, TranslationUnit *> CtxTUMapTy; typedef std::map<Entity, TUSetTy> MapTy; explicit Indexer(Program &prog) : Prog(prog) { } |