Home
last modified time | relevance | path

Searched refs:DeclSpec (Results 1 – 25 of 28) sorted by relevance

12

/external/clang/lib/Sema/
DDeclSpec.cpp180 assert(!(TypeQuals & DeclSpec::TQ_atomic) && in getFunction()
339 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
350 bool DeclSpec::hasTagDefinition() const { in hasTagDefinition()
359 unsigned DeclSpec::getParsedSpecifiers() const { in getParsedSpecifiers()
381 PrevSpec = DeclSpec::getSpecifierName(TPrev); in BadSpecifier()
390 const char *DeclSpec::getSpecifierName(DeclSpec::SCS S) { in getSpecifierName()
392 case DeclSpec::SCS_unspecified: return "unspecified"; in getSpecifierName()
393 case DeclSpec::SCS_typedef: return "typedef"; in getSpecifierName()
394 case DeclSpec::SCS_extern: return "extern"; in getSpecifierName()
395 case DeclSpec::SCS_static: return "static"; in getSpecifierName()
[all …]
DSemaType.cpp196 DeclSpec &spec = getMutableDeclSpec(); in saveDeclSpecAttrs()
224 DeclSpec &getMutableDeclSpec() const { in getMutableDeclSpec()
225 return const_cast<DeclSpec&>(declarator.getDeclSpec()); in getMutableDeclSpec()
716 static void diagnoseAndRemoveTypeQualifiers(Sema &S, const DeclSpec &DS, in diagnoseAndRemoveTypeQualifiers()
723 typedef std::pair<DeclSpec::TQ, SourceLocation> QualLoc; in diagnoseAndRemoveTypeQualifiers()
724 for (QualLoc Qual : {QualLoc(DeclSpec::TQ_const, DS.getConstSpecLoc()), in diagnoseAndRemoveTypeQualifiers()
725 QualLoc(DeclSpec::TQ_volatile, DS.getVolatileSpecLoc()), in diagnoseAndRemoveTypeQualifiers()
726 QualLoc(DeclSpec::TQ_atomic, DS.getAtomicSpecLoc())}) { in diagnoseAndRemoveTypeQualifiers()
733 << DeclSpec::getSpecifierName(Qual.first) << TypeSoFar in diagnoseAndRemoveTypeQualifiers()
1181 const DeclSpec &DS = declarator.getDeclSpec(); in ConvertDeclSpecToType()
[all …]
DSemaDecl.cpp506 DeclSpec::TST Sema::isTagName(IdentifierInfo &II, Scope *S) { in isTagName()
514 case TTK_Struct: return DeclSpec::TST_struct; in isTagName()
515 case TTK_Interface: return DeclSpec::TST_interface; in isTagName()
516 case TTK_Union: return DeclSpec::TST_union; in isTagName()
517 case TTK_Class: return DeclSpec::TST_class; in isTagName()
518 case TTK_Enum: return DeclSpec::TST_enum; in isTagName()
522 return DeclSpec::TST_unspecified; in isTagName()
3601 DeclSpec &DS) { in ParsedFreeStandingDeclSpec()
3688 static unsigned GetDiagnosticTypeSpecifierID(DeclSpec::TST T) { in GetDiagnosticTypeSpecifierID()
3690 case DeclSpec::TST_class: in GetDiagnosticTypeSpecifierID()
[all …]
DCMakeLists.txt9 DeclSpec.cpp
DAndroid.mk29 DeclSpec.cpp \
DSemaCXXScopeSpec.cpp815 const DeclSpec &DS, in ActOnCXXNestedNameSpecifierDecltype()
817 if (SS.isInvalid() || DS.getTypeSpecType() == DeclSpec::TST_error) in ActOnCXXNestedNameSpecifierDecltype()
820 assert(DS.getTypeSpecType() == DeclSpec::TST_decltype); in ActOnCXXNestedNameSpecifierDecltype()
DSemaCodeComplete.cpp3411 void Sema::CodeCompleteDeclSpec(Scope *S, DeclSpec &DS, in CodeCompleteDeclSpec()
3450 DS.getParsedSpecifiers() == DeclSpec::PQ_TypeSpecifier && in CodeCompleteDeclSpec()
3451 DS.getTypeSpecType() == DeclSpec::TST_typename && in CodeCompleteDeclSpec()
3452 DS.getTypeSpecComplex() == DeclSpec::TSC_unspecified && in CodeCompleteDeclSpec()
3453 DS.getTypeSpecSign() == DeclSpec::TSS_unspecified && in CodeCompleteDeclSpec()
3762 switch ((DeclSpec::TST)TagSpec) { in CodeCompleteTag()
3763 case DeclSpec::TST_enum: in CodeCompleteTag()
3768 case DeclSpec::TST_union: in CodeCompleteTag()
3773 case DeclSpec::TST_struct: in CodeCompleteTag()
3774 case DeclSpec::TST_class: in CodeCompleteTag()
[all …]
DSemaDeclObjC.cpp1468 DeclSpec DS(attrFactory); in actOnObjCTypeArgsOrProtocolQualifiers()
1478 DS.SetTypeSpecType(DeclSpec::TST_typename, loc, prevSpec, diagID, in actOnObjCTypeArgsOrProtocolQualifiers()
4216 CvtQTToAstBitMask(ArgInfo[i].DeclSpec.getObjCDeclQualifier())); in ActOnMethodDeclaration()
4455 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl()
4459 if (DS.getStorageClassSpec() == DeclSpec::SCS_register) { in ActOnObjCExceptionDecl()
4462 } else if (DeclSpec::SCS SCS = DS.getStorageClassSpec()) { in ActOnObjCExceptionDecl()
4464 << DeclSpec::getSpecifierName(SCS); in ActOnObjCExceptionDecl()
4466 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnObjCExceptionDecl()
4469 << DeclSpec::getSpecifierName(TSCS); in ActOnObjCExceptionDecl()
DSemaDeclCXX.cpp2006 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator()
2029 InvalidDecl = (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) ? 0 : 1; in ActOnCXXMemberDeclarator()
2032 else if (DS.getStorageClassSpec() == DeclSpec::SCS_static) in ActOnCXXMemberDeclarator()
2072 case DeclSpec::SCS_unspecified: in ActOnCXXMemberDeclarator()
2073 case DeclSpec::SCS_typedef: in ActOnCXXMemberDeclarator()
2074 case DeclSpec::SCS_static: in ActOnCXXMemberDeclarator()
2076 case DeclSpec::SCS_mutable: in ActOnCXXMemberDeclarator()
2092 bool isInstField = ((DS.getStorageClassSpec() == DeclSpec::SCS_unspecified || in ActOnCXXMemberDeclarator()
2093 DS.getStorageClassSpec() == DeclSpec::SCS_mutable) && in ActOnCXXMemberDeclarator()
2102 if (D.getDeclSpec().getTypeQualifiers() & DeclSpec::TQ_const) in ActOnCXXMemberDeclarator()
[all …]
DSemaLambda.cpp836 EPI.TypeQuals |= DeclSpec::TQ_const; in ActOnStartOfLambdaDefinition()
862 FTI.TypeQuals |= DeclSpec::TQ_const; in ActOnStartOfLambdaDefinition()
DSemaTemplateVariadic.cpp700 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
DSemaExprCXX.cpp326 ParsedType Sema::getDestructorType(const DeclSpec& DS, ParsedType ObjectType) { in getDestructorType()
327 if (DS.getTypeSpecType() == DeclSpec::TST_error || !ObjectType) in getDestructorType()
329 assert(DS.getTypeSpecType() == DeclSpec::TST_decltype in getDestructorType()
6052 const DeclSpec& DS) { in ActOnPseudoDestructorExpr()
/external/clang/include/clang/Sema/
DDeclSpec.h228 class DeclSpec {
402 DeclSpec(const DeclSpec &) = delete;
403 void operator=(const DeclSpec &) = delete;
411 DeclSpec(AttributeFactory &attrFactory) in DeclSpec() function
453 StorageClassSpec = DeclSpec::SCS_unspecified; in ClearStorageClassSpecs()
454 ThreadStorageClassSpec = DeclSpec::TSCS_unspecified; in ClearStorageClassSpecs()
461 TypeSpecType = DeclSpec::TST_unspecified; in ClearTypeSpecType()
518 static const char *getSpecifierName(DeclSpec::TST T,
520 static const char *getSpecifierName(DeclSpec::TQ Q);
521 static const char *getSpecifierName(DeclSpec::TSS S);
[all …]
DSema.h1218 const DeclSpec *DS = nullptr);
1220 const DeclSpec *DS = nullptr);
1649 void DiagnoseFunctionSpecifiers(const DeclSpec &DS);
1692 void CheckMain(FunctionDecl *FD, const DeclSpec &D);
1725 DeclGroupPtrTy FinalizeDeclaratorGroup(Scope *S, const DeclSpec &DS,
1864 DeclSpec &DS);
1866 DeclSpec &DS,
1870 Decl *BuildAnonymousStructOrUnion(Scope *S, DeclSpec &DS,
1875 Decl *BuildMicrosoftCAnonymousStruct(Scope *S, DeclSpec &DS,
4500 ParsedType getDestructorType(const DeclSpec& DS, ParsedType ObjectType);
[all …]
/external/clang/lib/Parse/
DParseDecl.cpp53 DeclSpec DS(AttrFactory); in ParseTypeName()
1394 DeclSpec &DS, in handleDeclspecAlignBeforeClassKey()
1747 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) { in ParseDeclGroup()
2131 void Parser::ParseSpecifierQualifierList(DeclSpec &DS, AccessSpecifier AS, in ParseSpecifierQualifierList()
2143 } else if (Specs == DeclSpec::PQ_None && !DS.hasAttributes()) { in ParseSpecifierQualifierList()
2150 if (Specs & DeclSpec::PQ_StorageClassSpecifier) { in ParseSpecifierQualifierList()
2160 if (Specs & DeclSpec::PQ_FunctionSpecifier) { in ParseSpecifierQualifierList()
2210 bool Parser::ParseImplicitInt(DeclSpec &DS, CXXScopeSpec *SS, in ParseImplicitInt()
2245 DS.getStorageClassSpec() == DeclSpec::SCS_auto) { in ParseImplicitInt()
2265 case DeclSpec::TST_enum: in ParseImplicitInt()
[all …]
DParseDeclCXX.cpp763 SourceLocation Parser::ParseDecltypeSpecifier(DeclSpec &DS) { in ParseDecltypeSpecifier()
858 ? DS.SetTypeSpecType(DeclSpec::TST_decltype, StartLoc, PrevSpec, in ParseDecltypeSpecifier()
860 : DS.SetTypeSpecType(DeclSpec::TST_decltype_auto, StartLoc, PrevSpec, in ParseDecltypeSpecifier()
868 void Parser::AnnotateExistingDecltypeSpecifier(const DeclSpec& DS, in AnnotateExistingDecltypeSpecifier()
887 void Parser::ParseUnderlyingTypeSpecifier(DeclSpec &DS) { in ParseUnderlyingTypeSpecifier()
911 if (DS.SetTypeSpecType(DeclSpec::TST_underlyingType, StartLoc, PrevSpec, in ParseUnderlyingTypeSpecifier()
959 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier()
1054 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier()
1199 SourceLocation StartLoc, DeclSpec &DS, in ParseClassSpecifier()
1204 DeclSpec::TST TagType; in ParseClassSpecifier()
[all …]
DParseExprCXX.cpp258 DeclSpec DS(AttrFactory); in ParseOptionalCXXScopeSpecifier()
1061 DeclSpec DS(AttrFactory); in ParseLambdaExpressionAfterIntroducer()
1294 DeclSpec DS(AttrFactory); in ParseCXXCasts()
1493 DeclSpec DS(AttrFactory); in ParseCXXPseudoDestructor()
1602 Parser::ParseCXXTypeConstructExpression(const DeclSpec &DS) { in ParseCXXTypeConstructExpression()
1704 DeclSpec DS(AttrFactory); in ParseCXXCondition()
1799 void Parser::ParseCXXSimpleTypeSpecifier(DeclSpec &DS) { in ParseCXXSimpleTypeSpecifier()
1817 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, in ParseCXXSimpleTypeSpecifier()
1831 DS.SetTypeSpecWidth(DeclSpec::TSW_short, Loc, PrevSpec, DiagID, Policy); in ParseCXXSimpleTypeSpecifier()
1834 DS.SetTypeSpecWidth(DeclSpec::TSW_long, Loc, PrevSpec, DiagID, Policy); in ParseCXXSimpleTypeSpecifier()
[all …]
DRAIIObjectsForParser.h175 class ParsingDeclSpec : public DeclSpec {
180 : DeclSpec(P.getAttrFactory()), in ParsingDeclSpec()
183 : DeclSpec(P.getAttrFactory()), in ParsingDeclSpec()
DParseStmtAsm.cpp641 DeclSpec DS(AttrFactory); in ParseAsmStatement()
646 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in ParseAsmStatement()
648 if (DS.getTypeQualifiers() & DeclSpec::TQ_restrict) in ParseAsmStatement()
651 if (DS.getTypeQualifiers() & DeclSpec::TQ_atomic) in ParseAsmStatement()
655 bool isVolatile = DS.getTypeQualifiers() & DeclSpec::TQ_volatile; in ParseAsmStatement()
DParser.cpp227 << Kind << DeclSpec::getSpecifierName((DeclSpec::TST)TST, in ConsumeExtraSemi()
906 if (DS.SetTypeSpecType(DeclSpec::TST_unspecified, AtLoc, PrevSpec, DiagID, in ParseDeclOrFunctionDefInternal()
921 DS.getStorageClassSpec() == DeclSpec::SCS_extern && in ParseDeclOrFunctionDefInternal()
922 DS.getParsedSpecifiers() == DeclSpec::PQ_StorageClassSpecifier) { in ParseDeclOrFunctionDefInternal()
975 D.getMutableDeclSpec().SetTypeSpecType(DeclSpec::TST_int, in ParseFunctionDefinition()
1188 DeclSpec DS(AttrFactory); in ParseKNRParamDeclarations()
1203 if (DS.getStorageClassSpec() != DeclSpec::SCS_unspecified && in ParseKNRParamDeclarations()
1204 DS.getStorageClassSpec() != DeclSpec::SCS_register) { in ParseKNRParamDeclarations()
1209 if (DS.getThreadStorageClassSpec() != DeclSpec::TSCS_unspecified) { in ParseKNRParamDeclarations()
DParseExpr.cpp917 DeclSpec DS(AttrFactory); in ParseCastExpression()
1113 DeclSpec DS(AttrFactory); in ParseCastExpression()
1175 DeclSpec DS(AttrFactory); in ParseCastExpression()
1705 DeclSpec DS(AttrFactory); in ParseExprAfterUnaryExprOrTypeTrait()
2260 DeclSpec DS(AttrFactory); in ParseParenExpression()
2692 DeclSpec DS(AttrFactory); in ParseBlockId()
2733 DeclSpec DS(AttrFactory); in ParseBlockLiteralExpression()
DParseTemplate.cpp256 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) { in ParseSingleDeclarationAfterTemplate()
670 DeclSpec DS(AttrFactory); in ParseNonTypeTemplateParameter()
676 if (DS.getTypeSpecType() == DeclSpec::TST_unspecified) { in ParseNonTypeTemplateParameter()
DParseObjc.cpp1285 DeclSpec declSpec(AttrFactory); in ParseObjCTypeName()
1438 ArgInfo.Type = ParseObjCTypeName(ArgInfo.DeclSpec, in ParseObjCMethodDecl()
1517 DeclSpec DS(AttrFactory); in ParseObjCMethodDecl()
1718 DeclSpec DS(AttrFactory); in parseObjCTypeArgsOrProtocolQualifiers()
2512 DeclSpec DS(AttrFactory); in ParseObjCTryStmt()
2870 DeclSpec DS(AttrFactory); in ParseObjCXXMessageReceiver()
DParseStmt.cpp949 DeclSpec DS(AttrFactory); in ParseCompoundStatementBody()
2108 DeclSpec DS(AttrFactory); in ParseCXXCatchBlock()
/external/clang/include/clang/Parse/
DParser.h607 bool TryAltiVecToken(DeclSpec &DS, SourceLocation Loc, in TryAltiVecToken()
631 bool TryAltiVecTokenOutOfLine(DeclSpec &DS, SourceLocation Loc,
1559 ExprResult ParseCXXTypeConstructExpression(const DeclSpec &DS);
1564 void ParseCXXSimpleTypeSpecifier(DeclSpec &DS);
1566 bool ParseCXXTypeSpecifierSeq(DeclSpec &DS);
1716 void ParseMicrosoftIfExistsClassDeclaration(DeclSpec::TST TagType,
1823 bool ParseImplicitInt(DeclSpec &DS, CXXScopeSpec *SS,
1828 void ParseDeclarationSpecifiers(DeclSpec &DS,
1833 bool DiagnoseMissingSemiAfterTagDefinition(DeclSpec &DS, AccessSpecifier AS,
1837 void ParseSpecifierQualifierList(DeclSpec &DS, AccessSpecifier AS = AS_none,
[all …]

12