/external/clang/lib/Sema/ |
D | DeclSpec.cpp | 180 assert(!(TypeQuals & DeclSpec::TQ_atomic) && in getFunction() 343 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember() 354 bool DeclSpec::hasTagDefinition() const { in hasTagDefinition() 363 unsigned DeclSpec::getParsedSpecifiers() const { in getParsedSpecifiers() 385 PrevSpec = DeclSpec::getSpecifierName(TPrev); in BadSpecifier() 394 const char *DeclSpec::getSpecifierName(DeclSpec::SCS S) { in getSpecifierName() 396 case DeclSpec::SCS_unspecified: return "unspecified"; in getSpecifierName() 397 case DeclSpec::SCS_typedef: return "typedef"; in getSpecifierName() 398 case DeclSpec::SCS_extern: return "extern"; in getSpecifierName() 399 case DeclSpec::SCS_static: return "static"; in getSpecifierName() [all …]
|
D | SemaType.cpp | 203 DeclSpec &spec = getMutableDeclSpec(); in saveDeclSpecAttrs() 231 DeclSpec &getMutableDeclSpec() const { in getMutableDeclSpec() 232 return const_cast<DeclSpec&>(declarator.getDeclSpec()); in getMutableDeclSpec() 728 static void diagnoseAndRemoveTypeQualifiers(Sema &S, const DeclSpec &DS, in diagnoseAndRemoveTypeQualifiers() 735 typedef std::pair<DeclSpec::TQ, SourceLocation> QualLoc; in diagnoseAndRemoveTypeQualifiers() 736 for (QualLoc Qual : {QualLoc(DeclSpec::TQ_const, DS.getConstSpecLoc()), in diagnoseAndRemoveTypeQualifiers() 737 QualLoc(DeclSpec::TQ_restrict, DS.getRestrictSpecLoc()), in diagnoseAndRemoveTypeQualifiers() 738 QualLoc(DeclSpec::TQ_volatile, DS.getVolatileSpecLoc()), in diagnoseAndRemoveTypeQualifiers() 739 QualLoc(DeclSpec::TQ_atomic, DS.getAtomicSpecLoc())}) { in diagnoseAndRemoveTypeQualifiers() 746 << DeclSpec::getSpecifierName(Qual.first) << TypeSoFar in diagnoseAndRemoveTypeQualifiers() [all …]
|
D | SemaDecl.cpp | 550 DeclSpec::TST Sema::isTagName(IdentifierInfo &II, Scope *S) { in isTagName() 558 case TTK_Struct: return DeclSpec::TST_struct; in isTagName() 559 case TTK_Interface: return DeclSpec::TST_interface; in isTagName() 560 case TTK_Union: return DeclSpec::TST_union; in isTagName() 561 case TTK_Class: return DeclSpec::TST_class; in isTagName() 562 case TTK_Enum: return DeclSpec::TST_enum; in isTagName() 566 return DeclSpec::TST_unspecified; in isTagName() 3714 Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS, DeclSpec &DS, in ParsedFreeStandingDeclSpec() 3803 static unsigned GetDiagnosticTypeSpecifierID(DeclSpec::TST T) { in GetDiagnosticTypeSpecifierID() 3805 case DeclSpec::TST_class: in GetDiagnosticTypeSpecifierID() [all …]
|
D | CMakeLists.txt | 13 DeclSpec.cpp
|
D | SemaCXXScopeSpec.cpp | 845 const DeclSpec &DS, in ActOnCXXNestedNameSpecifierDecltype() 847 if (SS.isInvalid() || DS.getTypeSpecType() == DeclSpec::TST_error) in ActOnCXXNestedNameSpecifierDecltype() 850 assert(DS.getTypeSpecType() == DeclSpec::TST_decltype); in ActOnCXXNestedNameSpecifierDecltype()
|
D | SemaCodeComplete.cpp | 3424 void Sema::CodeCompleteDeclSpec(Scope *S, DeclSpec &DS, in CodeCompleteDeclSpec() 3463 DS.getParsedSpecifiers() == DeclSpec::PQ_TypeSpecifier && in CodeCompleteDeclSpec() 3464 DS.getTypeSpecType() == DeclSpec::TST_typename && in CodeCompleteDeclSpec() 3465 DS.getTypeSpecComplex() == DeclSpec::TSC_unspecified && in CodeCompleteDeclSpec() 3466 DS.getTypeSpecSign() == DeclSpec::TSS_unspecified && in CodeCompleteDeclSpec() 3775 switch ((DeclSpec::TST)TagSpec) { in CodeCompleteTag() 3776 case DeclSpec::TST_enum: in CodeCompleteTag() 3781 case DeclSpec::TST_union: in CodeCompleteTag() 3786 case DeclSpec::TST_struct: in CodeCompleteTag() 3787 case DeclSpec::TST_class: in CodeCompleteTag() [all …]
|
D | SemaDeclObjC.cpp | 1477 DeclSpec DS(attrFactory); in actOnObjCTypeArgsOrProtocolQualifiers() 1487 DS.SetTypeSpecType(DeclSpec::TST_typename, loc, prevSpec, diagID, in actOnObjCTypeArgsOrProtocolQualifiers() 4365 CvtQTToAstBitMask(ArgInfo[i].DeclSpec.getObjCDeclQualifier())); in ActOnMethodDeclaration() 4604 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl() 4608 if (DS.getStorageClassSpec() == DeclSpec::SCS_register) { in ActOnObjCExceptionDecl() 4611 } else if (DeclSpec::SCS SCS = DS.getStorageClassSpec()) { in ActOnObjCExceptionDecl() 4613 << DeclSpec::getSpecifierName(SCS); in ActOnObjCExceptionDecl() 4618 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnObjCExceptionDecl() 4621 << DeclSpec::getSpecifierName(TSCS); in ActOnObjCExceptionDecl()
|
D | SemaDeclCXX.cpp | 2009 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator() 2032 InvalidDecl = (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) ? 0 : 1; in ActOnCXXMemberDeclarator() 2035 else if (DS.getStorageClassSpec() == DeclSpec::SCS_static) in ActOnCXXMemberDeclarator() 2075 case DeclSpec::SCS_unspecified: in ActOnCXXMemberDeclarator() 2076 case DeclSpec::SCS_typedef: in ActOnCXXMemberDeclarator() 2077 case DeclSpec::SCS_static: in ActOnCXXMemberDeclarator() 2079 case DeclSpec::SCS_mutable: in ActOnCXXMemberDeclarator() 2095 bool isInstField = ((DS.getStorageClassSpec() == DeclSpec::SCS_unspecified || in ActOnCXXMemberDeclarator() 2096 DS.getStorageClassSpec() == DeclSpec::SCS_mutable) && in ActOnCXXMemberDeclarator() 2105 if (D.getDeclSpec().getTypeQualifiers() & DeclSpec::TQ_const) in ActOnCXXMemberDeclarator() [all …]
|
D | SemaLambda.cpp | 833 EPI.TypeQuals |= DeclSpec::TQ_const; in ActOnStartOfLambdaDefinition() 859 FTI.TypeQuals |= DeclSpec::TQ_const; in ActOnStartOfLambdaDefinition()
|
D | SemaTemplateVariadic.cpp | 700 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
|
D | SemaExprCXX.cpp | 326 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() 6328 const DeclSpec& DS) { in ActOnPseudoDestructorExpr()
|
/external/clang/lib/Parse/ |
D | ParseDecl.cpp | 54 DeclSpec DS(AttrFactory); in ParseTypeName() 1425 DeclSpec &DS, in handleDeclspecAlignBeforeClassKey() 1783 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) { in ParseDeclGroup() 2168 void Parser::ParseSpecifierQualifierList(DeclSpec &DS, AccessSpecifier AS, in ParseSpecifierQualifierList() 2180 } else if (Specs == DeclSpec::PQ_None && !DS.hasAttributes()) { in ParseSpecifierQualifierList() 2187 if (Specs & DeclSpec::PQ_StorageClassSpecifier) { in ParseSpecifierQualifierList() 2197 if (Specs & DeclSpec::PQ_FunctionSpecifier) { in ParseSpecifierQualifierList() 2247 bool Parser::ParseImplicitInt(DeclSpec &DS, CXXScopeSpec *SS, in ParseImplicitInt() 2282 DS.getStorageClassSpec() == DeclSpec::SCS_auto) { in ParseImplicitInt() 2300 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt() [all …]
|
D | ParseDeclCXX.cpp | 763 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() 1053 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier() 1214 SourceLocation StartLoc, DeclSpec &DS, in ParseClassSpecifier() 1219 DeclSpec::TST TagType; in ParseClassSpecifier() [all …]
|
D | ParseExprCXX.cpp | 258 DeclSpec DS(AttrFactory); in ParseOptionalCXXScopeSpecifier() 1095 DeclSpec &DS) { in addConstexprToLambdaDeclSpecifier() 1124 DeclSpec DS(AttrFactory); in ParseLambdaExpressionAfterIntroducer() 1362 DeclSpec DS(AttrFactory); in ParseCXXCasts() 1561 DeclSpec DS(AttrFactory); in ParseCXXPseudoDestructor() 1670 Parser::ParseCXXTypeConstructExpression(const DeclSpec &DS) { in ParseCXXTypeConstructExpression() 1784 DeclSpec DS(AttrFactory); in ParseCXXCondition() 1875 void Parser::ParseCXXSimpleTypeSpecifier(DeclSpec &DS) { in ParseCXXSimpleTypeSpecifier() 1893 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, in ParseCXXSimpleTypeSpecifier() 1907 DS.SetTypeSpecWidth(DeclSpec::TSW_short, Loc, PrevSpec, DiagID, Policy); in ParseCXXSimpleTypeSpecifier() [all …]
|
D | RAIIObjectsForParser.h | 175 class ParsingDeclSpec : public DeclSpec { 180 : DeclSpec(P.getAttrFactory()), in ParsingDeclSpec() 183 : DeclSpec(P.getAttrFactory()), in ParsingDeclSpec()
|
D | Parser.cpp | 227 << Kind << DeclSpec::getSpecifierName((DeclSpec::TST)TST, in ConsumeExtraSemi() 919 if (DS.SetTypeSpecType(DeclSpec::TST_unspecified, AtLoc, PrevSpec, DiagID, in ParseDeclOrFunctionDefInternal() 934 DS.getStorageClassSpec() == DeclSpec::SCS_extern && in ParseDeclOrFunctionDefInternal() 935 DS.getParsedSpecifiers() == DeclSpec::PQ_StorageClassSpecifier) { in ParseDeclOrFunctionDefInternal() 988 D.getMutableDeclSpec().SetTypeSpecType(DeclSpec::TST_int, in ParseFunctionDefinition() 1214 DeclSpec DS(AttrFactory); in ParseKNRParamDeclarations() 1229 if (DS.getStorageClassSpec() != DeclSpec::SCS_unspecified && in ParseKNRParamDeclarations() 1230 DS.getStorageClassSpec() != DeclSpec::SCS_register) { in ParseKNRParamDeclarations() 1235 if (DS.getThreadStorageClassSpec() != DeclSpec::TSCS_unspecified) { in ParseKNRParamDeclarations()
|
D | ParseStmtAsm.cpp | 678 DeclSpec DS(AttrFactory); in ParseAsmStatement() 683 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in ParseAsmStatement() 685 if (DS.getTypeQualifiers() & DeclSpec::TQ_restrict) in ParseAsmStatement() 688 if (DS.getTypeQualifiers() & DeclSpec::TQ_atomic) in ParseAsmStatement() 692 bool isVolatile = DS.getTypeQualifiers() & DeclSpec::TQ_volatile; in ParseAsmStatement()
|
D | ParseExpr.cpp | 931 DeclSpec DS(AttrFactory); in ParseCastExpression() 1136 DeclSpec DS(AttrFactory); in ParseCastExpression() 1202 DeclSpec DS(AttrFactory); in ParseCastExpression() 1753 DeclSpec DS(AttrFactory); in ParseExprAfterUnaryExprOrTypeTrait() 2308 DeclSpec DS(AttrFactory); in ParseParenExpression() 2740 DeclSpec DS(AttrFactory); in ParseBlockId() 2781 DeclSpec DS(AttrFactory); in ParseBlockLiteralExpression()
|
D | ParseTemplate.cpp | 261 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) { in ParseSingleDeclarationAfterTemplate() 674 DeclSpec DS(AttrFactory); in ParseNonTypeTemplateParameter() 680 if (DS.getTypeSpecType() == DeclSpec::TST_unspecified) { in ParseNonTypeTemplateParameter()
|
D | ParseObjc.cpp | 1274 DeclSpec declSpec(AttrFactory); in ParseObjCTypeName() 1426 ArgInfo.Type = ParseObjCTypeName(ArgInfo.DeclSpec, in ParseObjCMethodDecl() 1505 DeclSpec DS(AttrFactory); in ParseObjCMethodDecl() 1711 DeclSpec DS(AttrFactory); in parseObjCTypeArgsOrProtocolQualifiers() 2566 DeclSpec DS(AttrFactory); in ParseObjCTryStmt() 2930 DeclSpec DS(AttrFactory); in ParseObjCXXMessageReceiver()
|
D | ParseOpenMP.cpp | 548 DeclSpec::TST TagType, Decl *Tag) { in ParseOpenMPDeclarativeDirectiveWithExtDecl() 610 assert(TagType == DeclSpec::TST_unspecified); in ParseOpenMPDeclarativeDirectiveWithExtDecl()
|
D | ParseStmt.cpp | 968 DeclSpec DS(AttrFactory); in ParseCompoundStatementBody() 2156 DeclSpec DS(AttrFactory); in ParseCXXCatchBlock()
|
/external/clang/include/clang/Sema/ |
D | DeclSpec.h | 228 class DeclSpec { 410 DeclSpec(const DeclSpec &) = delete; 411 void operator=(const DeclSpec &) = delete; 419 DeclSpec(AttributeFactory &attrFactory) in DeclSpec() function 462 StorageClassSpec = DeclSpec::SCS_unspecified; in ClearStorageClassSpecs() 463 ThreadStorageClassSpec = DeclSpec::TSCS_unspecified; in ClearStorageClassSpecs() 470 TypeSpecType = DeclSpec::TST_unspecified; in ClearTypeSpecType() 528 static const char *getSpecifierName(DeclSpec::TST T, 530 static const char *getSpecifierName(DeclSpec::TQ Q); 531 static const char *getSpecifierName(DeclSpec::TSS S); [all …]
|
D | Sema.h | 1238 const DeclSpec *DS = nullptr); 1240 const DeclSpec *DS = nullptr); 1687 void DiagnoseFunctionSpecifiers(const DeclSpec &DS); 1741 void CheckMain(FunctionDecl *FD, const DeclSpec &D); 1774 DeclGroupPtrTy FinalizeDeclaratorGroup(Scope *S, const DeclSpec &DS, 1923 Decl *ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS, DeclSpec &DS, 1925 Decl *ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS, DeclSpec &DS, 1930 Decl *BuildAnonymousStructOrUnion(Scope *S, DeclSpec &DS, 1935 Decl *BuildMicrosoftCAnonymousStruct(Scope *S, DeclSpec &DS, 4614 ParsedType getDestructorType(const DeclSpec& DS, ParsedType ObjectType); [all …]
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 617 bool TryAltiVecToken(DeclSpec &DS, SourceLocation Loc, in TryAltiVecToken() 641 bool TryAltiVecTokenOutOfLine(DeclSpec &DS, SourceLocation Loc, 1581 ExprResult ParseCXXTypeConstructExpression(const DeclSpec &DS); 1586 void ParseCXXSimpleTypeSpecifier(DeclSpec &DS); 1588 bool ParseCXXTypeSpecifierSeq(DeclSpec &DS); 1749 void ParseMicrosoftIfExistsClassDeclaration(DeclSpec::TST TagType, 1856 bool ParseImplicitInt(DeclSpec &DS, CXXScopeSpec *SS, 1861 void ParseDeclarationSpecifiers(DeclSpec &DS, 1866 bool DiagnoseMissingSemiAfterTagDefinition(DeclSpec &DS, AccessSpecifier AS, 1870 void ParseSpecifierQualifierList(DeclSpec &DS, AccessSpecifier AS = AS_none, [all …]
|