summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexSymbol.cpp
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2019-02-26 14:23:12 +0000
committerKadir Cetinkaya <kadircet@google.com>2019-02-26 14:23:12 +0000
commita87ada0dad8084ef83001cd8bab1a44da0ba8af9 (patch)
tree7b8f12c7a488ad911a43e5eb8bba8dda485e533c /clang/lib/Index/IndexSymbol.cpp
parentc032e2ab7cda80a2b68345801162746eb48770c0 (diff)
downloadbcm5719-llvm-a87ada0dad8084ef83001cd8bab1a44da0ba8af9.tar.gz
bcm5719-llvm-a87ada0dad8084ef83001cd8bab1a44da0ba8af9.zip
[clang][Index] Visit UsingDecls and generate USRs for them
Summary: Add indexing of UsingDecl itself. Also enable generation of USRs for UsingDecls, using the qualified name of the decl. Reviewers: ilya-biryukov, akyrtzi Subscribers: arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D58340 llvm-svn: 354878
Diffstat (limited to 'clang/lib/Index/IndexSymbol.cpp')
-rw-r--r--clang/lib/Index/IndexSymbol.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Index/IndexSymbol.cpp b/clang/lib/Index/IndexSymbol.cpp
index d21c673dee4..915f8e9a9df 100644
--- a/clang/lib/Index/IndexSymbol.cpp
+++ b/clang/lib/Index/IndexSymbol.cpp
@@ -316,6 +316,10 @@ SymbolInfo index::getSymbolInfo(const Decl *D) {
Info.Lang = SymbolLanguage::CXX;
Info.Properties |= (SymbolPropertySet)SymbolProperty::Generic;
break;
+ case Decl::Using:
+ Info.Kind = SymbolKind::Using;
+ Info.Lang = SymbolLanguage::CXX;
+ break;
case Decl::Binding:
Info.Kind = SymbolKind::Variable;
Info.Lang = SymbolLanguage::CXX;
OpenPOWER on IntegriCloud