aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/IndexDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-10-03 21:05:44 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-10-03 21:05:44 +0000
commit37f2f52fbc16b0d426d4d86c7e1662e5c6b9e3b8 (patch)
tree4d78aa3746e9c258418fe5e241f183181920c90a /tools/libclang/IndexDecl.cpp
parent1a71112c56a7b5efe15a88971b9c0c93d92d29f4 (diff)
[libclang] Simplify indexing of module imports by handling implicit
imports via ImportDecls. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/IndexDecl.cpp')
-rw-r--r--tools/libclang/IndexDecl.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/libclang/IndexDecl.cpp b/tools/libclang/IndexDecl.cpp
index 65b0b16a37..513038119d 100644
--- a/tools/libclang/IndexDecl.cpp
+++ b/tools/libclang/IndexDecl.cpp
@@ -10,7 +10,6 @@
#include "IndexingContext.h"
#include "clang/AST/DeclVisitor.h"
-#include "clang/Basic/Module.h"
using namespace clang;
using namespace cxindex;
@@ -308,10 +307,7 @@ public:
}
bool VisitImportDecl(ImportDecl *D) {
- Module *Imported = D->getImportedModule();
- if (Imported)
- IndexCtx.importedModule(D->getLocation(), Imported->getFullModuleName(),
- /*isIncludeDirective=*/false, Imported);
+ IndexCtx.importedModule(D);
return true;
}
};