if (type.isArrayType()) {
final ICPPASTArrayDeclarator arrayDeclarator = f.newArrayDeclarator(new NameInfo(variableDeclaration.getName()).getName());
arrayDeclarator.addPointerOperator(f.newPointer());
if (variableDeclaration.getInitializer() != null) {
final ArrayCreation arrayCreation = (ArrayCreation) variableDeclaration.getInitializer();
for (final Object dimensionObject : arrayCreation.dimensions()) {
final ExpressionInfo dimension = new ExpressionInfo((Expression) dimensionObject, null, compilationUnitInfo);
arrayDeclarator.addArrayModifier(f.newArrayModifier(dimension.getExpression()));
}
} else {
final ArrayType arrayType = (ArrayType) type;