Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2018-06-22 01:34:39 +0000
committerNathan Ridge2018-08-26 03:12:36 +0000
commitfae039b6297133b90867f1472fb8e91018d3435b (patch)
tree68c0aa6ceb3ff199602bfce309860a7b187094e7
parente0e6a54caf02aaabecf2fcb13c98e799b6223122 (diff)
downloadorg.eclipse.cdt-fae039b6297133b90867f1472fb8e91018d3435b.tar.gz
org.eclipse.cdt-fae039b6297133b90867f1472fb8e91018d3435b.tar.xz
org.eclipse.cdt-fae039b6297133b90867f1472fb8e91018d3435b.zip
Bug 535559 - Index search for entity inside toplevel anonymous namespace
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java
index 9c2519c8dca..4f78b9f7a7d 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java
@@ -954,7 +954,8 @@ public class PDOM extends PlatformObject implements IPDOM {
}
}
}
- return cand == null;
+ // Toplevel anonymous namespaces are not part of the qualified name either.
+ return cand == null || (cand instanceof ICPPNamespace && cand.getNameCharArray().length == 0);
}
private long getFirstLinkageRecord() throws CoreException {

Back to the top