summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexingContext.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-03-04 07:17:53 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-03-04 07:17:53 +0000
commit7332106499eb8ef7cb98fe100df486b3ac2be073 (patch)
treede3a6d819ee443335e949c3dd2dc9a28474ae4e7 /clang/lib/Index/IndexingContext.cpp
parent2682f9e5de2d14d64972ba25c9fc769c93b53c1d (diff)
downloadbcm5719-llvm-7332106499eb8ef7cb98fe100df486b3ac2be073.tar.gz
bcm5719-llvm-7332106499eb8ef7cb98fe100df486b3ac2be073.zip
[index] Distinguish USRs of anonymous enums by using their first enumerator.
rdar://24609949. llvm-svn: 262695
Diffstat (limited to 'clang/lib/Index/IndexingContext.cpp')
-rw-r--r--clang/lib/Index/IndexingContext.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp
index 87bedd778ae..204e4300f87 100644
--- a/clang/lib/Index/IndexingContext.cpp
+++ b/clang/lib/Index/IndexingContext.cpp
@@ -206,10 +206,6 @@ static const Decl *adjustParent(const Decl *Parent) {
if (auto NS = dyn_cast<NamespaceDecl>(Parent)) {
if (NS->isAnonymousNamespace())
continue;
- } else if (auto EnumD = dyn_cast<EnumDecl>(Parent)) {
- // Move enumerators under anonymous enum to the enclosing parent.
- if (EnumD->getDeclName().isEmpty())
- continue;
} else if (auto RD = dyn_cast<RecordDecl>(Parent)) {
if (RD->isAnonymousStructOrUnion())
continue;
OpenPOWER on IntegriCloud