mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Fix assertion error in model builder
This commit is contained in:
parent
66d496359f
commit
2e34f26a07
1 changed files with 4 additions and 1 deletions
|
@ -534,8 +534,11 @@ public class CModelBuilder2 implements IContributedModelBuilder {
|
|||
setBodyPosition((SourceManipulation)element, templateDeclaration);
|
||||
}
|
||||
}
|
||||
} else if (declaration instanceof ICPPASTTemplateDeclaration) {
|
||||
// strange: template decl inside template decl
|
||||
createTemplateDeclaration(parent, (ICPPASTTemplateDeclaration)declaration);
|
||||
} else if (declaration instanceof IASTProblemDeclaration) {
|
||||
// ignore problem declarations
|
||||
// ignore problem declarations (or create special elements for debugging?)
|
||||
} else {
|
||||
assert false : "TODO: " + declaration.getClass().getName(); //$NON-NLS-1$
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue