1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 02:36:01 +02:00

Bug 535559 - Index search for entity inside toplevel anonymous namespace

Change-Id: I9fdc268819b2298d0b3aeb9db9c29f1a0158d2bb
This commit is contained in:
Nathan Ridge 2018-06-21 21:34:39 -04:00
parent e0e6a54caf
commit fae039b629

View file

@ -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 { private long getFirstLinkageRecord() throws CoreException {