Package org.eclipse.cdt.core.dom.ast.cpp

Examples of org.eclipse.cdt.core.dom.ast.cpp.ICPPASTTemplateId


  }

  private ICPPASTDeclSpecifier convertWildcardType(final WildcardType wildcardType) {
    // TODO: Determine SFINAE based on wildcard ... Let's do that later
    name = f.newName("T".toCharArray());
    final ICPPASTTemplateId templateId = f.newTemplateId(name);
    return f.newTypedefNameSpecifier(templateId);
  }
View Full Code Here


      compilationUnitInfo.cppStdIncludes.add("map");
      stl = true;
      parameterizedTypeName = "std::map";
    }
    name = f.newName(parameterizedTypeName.toCharArray());
    final ICPPASTTemplateId templateId = f.newTemplateId(name);
    for (final Object parameterTypeObject : parameterizedType.typeArguments()) {
      final TypeInfo parameterTypeInfo = new TypeInfo((Type) parameterTypeObject, compilationUnitInfo);
      final ICPPASTDeclarator parameterDeclarator = f.newDeclarator(f.newName());
      if (parameterTypeInfo.isSimple()) {
        parameterDeclarator.addPointerOperator(f.newPointer());
      }
      final IASTTypeId typeId = f.newTypeId(parameterTypeInfo.getDeclSpecifier(), parameterDeclarator);
      templateId.addTemplateArgument(typeId);
    }
    return f.newTypedefNameSpecifier(templateId);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.core.dom.ast.cpp.ICPPASTTemplateId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.