diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-05 00:22:40 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-05 00:22:40 +0000 |
commit | 134d1e8a0b463d929ffeac5eefeae761707bf5d3 (patch) | |
tree | 88af0ee0a90b4ab6548ac1802046b91a99bd9d06 /tools/libclang/IndexingContext.cpp | |
parent | 5d04b1af7b76ed536557d4bba24005ad0d2fd608 (diff) |
[libclang] Now that we have a CXModule object, pass it to the
importedASTFile indexing callback.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/IndexingContext.cpp')
-rw-r--r-- | tools/libclang/IndexingContext.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/libclang/IndexingContext.cpp b/tools/libclang/IndexingContext.cpp index 1186191cc3..74b3cf362b 100644 --- a/tools/libclang/IndexingContext.cpp +++ b/tools/libclang/IndexingContext.cpp @@ -264,10 +264,9 @@ void IndexingContext::importedModule(const ImportDecl *ImportD) { CXIdxImportedASTFileInfo Info = { (CXFile)Mod->getASTFile(), + Mod, getIndexLoc(ImportD->getLocation()), - /*isModule=*/true, - ImportD->isImplicit(), - ModuleName.c_str(), + ImportD->isImplicit() }; CXIdxClientASTFile astFile = CB.importedASTFile(ClientData, &Info); (void)astFile; @@ -279,10 +278,9 @@ void IndexingContext::importedPCH(const FileEntry *File) { CXIdxImportedASTFileInfo Info = { (CXFile)File, + /*module=*/NULL, getIndexLoc(SourceLocation()), - /*isModule=*/false, - /*isImplicit=*/false, - /*moduleName=*/NULL + /*isImplicit=*/false }; CXIdxClientASTFile astFile = CB.importedASTFile(ClientData, &Info); (void)astFile; |