1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

CModel bug fix

This commit is contained in:
Hoda Amer 2004-04-26 19:51:32 +00:00
parent e9fb20d44d
commit 369547850f

View file

@ -48,6 +48,7 @@ import org.eclipse.cdt.core.parser.ast.IASTExpression;
import org.eclipse.cdt.core.parser.ast.IASTField;
import org.eclipse.cdt.core.parser.ast.IASTFunction;
import org.eclipse.cdt.core.parser.ast.IASTInclusion;
import org.eclipse.cdt.core.parser.ast.IASTLinkageSpecification;
import org.eclipse.cdt.core.parser.ast.IASTMacro;
import org.eclipse.cdt.core.parser.ast.IASTMethod;
import org.eclipse.cdt.core.parser.ast.IASTNamespaceDefinition;
@ -219,6 +220,9 @@ public class CModelBuilder {
generateModelElements(parent, (IASTTypedefDeclaration) declaration);
}
if(declaration instanceof IASTLinkageSpecification) {
generateModelElements(parent, (IASTLinkageSpecification)declaration);
}
createSimpleElement(parent, declaration, false);
}
@ -231,6 +235,15 @@ public class CModelBuilder {
generateModelElements((Parent)namespace, subNsDeclaration);
}
}
private void generateModelElements (Parent parent, IASTLinkageSpecification declaration) throws CModelException, ASTNotImplementedException{
// IASTLinkageSpecification
Iterator nsDecls = declaration.getDeclarations();
while (nsDecls.hasNext()){
IASTDeclaration subNsDeclaration = (IASTDeclaration) nsDecls.next();
generateModelElements(parent, subNsDeclaration);
}
}
private void generateModelElements (Parent parent, IASTAbstractTypeSpecifierDeclaration abstractDeclaration) throws CModelException, ASTNotImplementedException
{