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 | dc78f3e7a9584c0d2d1b813e056ad35159005844 (patch) | |
| tree | 1efc612930388b0b48de61ceae789c422857cba3 /clang/tools/libclang/IndexingContext.cpp | |
| parent | 2b9b5bb697d40fe6a348464a6da66e74c81fdbd4 (diff) | |
| download | bcm5719-llvm-dc78f3e7a9584c0d2d1b813e056ad35159005844.tar.gz bcm5719-llvm-dc78f3e7a9584c0d2d1b813e056ad35159005844.zip | |
[libclang] Now that we have a CXModule object, pass it to the
importedASTFile indexing callback.
llvm-svn: 165281
Diffstat (limited to 'clang/tools/libclang/IndexingContext.cpp')
| -rw-r--r-- | clang/tools/libclang/IndexingContext.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/tools/libclang/IndexingContext.cpp b/clang/tools/libclang/IndexingContext.cpp index 1186191cc37..74b3cf362b1 100644 --- a/clang/tools/libclang/IndexingContext.cpp +++ b/clang/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; |

