summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexingContext.cpp
diff options
context:
space:
mode:
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