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:
parent
1f365b4237
commit
0abbd14d54
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue