summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexDecl.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/IndexDecl.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/IndexDecl.cpp')
-rw-r--r--clang/lib/Index/IndexDecl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Index/IndexDecl.cpp b/clang/lib/Index/IndexDecl.cpp
index 0f6d6212a24..36f93106ffd 100644
--- a/clang/lib/Index/IndexDecl.cpp
+++ b/clang/lib/Index/IndexDecl.cpp
@@ -580,9 +580,10 @@ public:
}
bool VisitUsingDecl(const UsingDecl *D) {
+ IndexCtx.handleDecl(D);
+
const DeclContext *DC = D->getDeclContext()->getRedeclContext();
const NamedDecl *Parent = dyn_cast<NamedDecl>(DC);
-
IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent,
D->getLexicalDeclContext());
for (const auto *I : D->shadows())
OpenPOWER on IntegriCloud