summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexSymbol.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-02-29 07:56:07 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-02-29 07:56:07 +0000
commit113387e08e55e28d0614373e168b5202bc83339a (patch)
tree490ad63b80f576122a754da65bca0b7ea3909fdd /clang/lib/Index/IndexSymbol.cpp
parenta8b51c1e200a8f7f8cb274b5d8d744d94e0fdb59 (diff)
downloadbcm5719-llvm-113387e08e55e28d0614373e168b5202bc83339a.tar.gz
bcm5719-llvm-113387e08e55e28d0614373e168b5202bc83339a.zip
[index] Print and test module import references.
llvm-svn: 262208
Diffstat (limited to 'clang/lib/Index/IndexSymbol.cpp')
-rw-r--r--clang/lib/Index/IndexSymbol.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Index/IndexSymbol.cpp b/clang/lib/Index/IndexSymbol.cpp
index 39812c4fe4f..62e2facde19 100644
--- a/clang/lib/Index/IndexSymbol.cpp
+++ b/clang/lib/Index/IndexSymbol.cpp
@@ -53,6 +53,9 @@ SymbolInfo index::getSymbolInfo(const Decl *D) {
} else {
switch (D->getKind()) {
+ case Decl::Import:
+ Info.Kind = SymbolKind::Module;
+ break;
case Decl::Typedef:
Info.Kind = SymbolKind::Typedef; break;
case Decl::Function:
OpenPOWER on IntegriCloud