1
0
Fork 0
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:
Anton Leherbauer 2007-01-26 09:41:19 +00:00
parent 66d496359f
commit 2e34f26a07

View file

@ -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$
}