1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 11:25:35 +02:00

add check for ProblemBindings when adding types

This commit is contained in:
Andrew Ferguson 2007-02-05 16:36:59 +00:00
parent 1f365b4237
commit 0abbd14d54

View file

@ -239,11 +239,15 @@ class PDOMCLinkage extends PDOMLinkage {
}
public PDOMNode addType(PDOMNode parent, IType type) throws CoreException {
if(type instanceof IProblemBinding)
return null;
if (type instanceof ICBasicType) {
return new PDOMCBasicType(pdom, parent, (ICBasicType)type);
} else if (type instanceof IBinding) {
return addBinding((IBinding)type);
}
return super.addType(parent, type);
}