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:
parent
e9fb20d44d
commit
369547850f
1 changed files with 13 additions and 0 deletions
|
@ -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.IASTField;
|
||||||
import org.eclipse.cdt.core.parser.ast.IASTFunction;
|
import org.eclipse.cdt.core.parser.ast.IASTFunction;
|
||||||
import org.eclipse.cdt.core.parser.ast.IASTInclusion;
|
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.IASTMacro;
|
||||||
import org.eclipse.cdt.core.parser.ast.IASTMethod;
|
import org.eclipse.cdt.core.parser.ast.IASTMethod;
|
||||||
import org.eclipse.cdt.core.parser.ast.IASTNamespaceDefinition;
|
import org.eclipse.cdt.core.parser.ast.IASTNamespaceDefinition;
|
||||||
|
@ -219,6 +220,9 @@ public class CModelBuilder {
|
||||||
generateModelElements(parent, (IASTTypedefDeclaration) declaration);
|
generateModelElements(parent, (IASTTypedefDeclaration) declaration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(declaration instanceof IASTLinkageSpecification) {
|
||||||
|
generateModelElements(parent, (IASTLinkageSpecification)declaration);
|
||||||
|
}
|
||||||
createSimpleElement(parent, declaration, false);
|
createSimpleElement(parent, declaration, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,6 +236,15 @@ public class CModelBuilder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
private void generateModelElements (Parent parent, IASTAbstractTypeSpecifierDeclaration abstractDeclaration) throws CModelException, ASTNotImplementedException
|
||||||
{
|
{
|
||||||
// IASTAbstractTypeSpecifierDeclaration
|
// IASTAbstractTypeSpecifierDeclaration
|
||||||
|
|
Loading…
Add table
Reference in a new issue