aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/IndexingContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libclang/IndexingContext.cpp')
-rw-r--r--tools/libclang/IndexingContext.cpp10
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;