/external/llvm-project/clang/lib/Sema/ |
D | DeclSpec.cpp | 186 DeclSpec *MethodQualifiers) { in getFunction() 187 assert(!(MethodQualifiers && MethodQualifiers->getTypeQualifiers() & DeclSpec::TQ_atomic) && in getFunction() 222 I.Fun.MethodQualifiers = new DeclSpec(attrs.getPool().getFactory()); in getFunction() 224 [&](DeclSpec::TQ TypeQual, StringRef PrintName, SourceLocation SL) { in getFunction() 412 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember() 423 void DeclSpec::forEachCVRUQualifier( in forEachCVRUQualifier() 435 void DeclSpec::forEachQualifier( in forEachQualifier() 441 bool DeclSpec::hasTagDefinition() const { in hasTagDefinition() 450 unsigned DeclSpec::getParsedSpecifiers() const { in getParsedSpecifiers() 472 PrevSpec = DeclSpec::getSpecifierName(TPrev); in BadSpecifier() [all …]
|
D | SemaType.cpp | 236 DeclSpec &spec = getMutableDeclSpec(); in saveDeclSpecAttrs() 331 DeclSpec &getMutableDeclSpec() const { in getMutableDeclSpec() 332 return const_cast<DeclSpec&>(declarator.getDeclSpec()); in getMutableDeclSpec() 779 static void diagnoseAndRemoveTypeQualifiers(Sema &S, const DeclSpec &DS, in diagnoseAndRemoveTypeQualifiers() 786 typedef std::pair<DeclSpec::TQ, SourceLocation> QualLoc; in diagnoseAndRemoveTypeQualifiers() 787 for (QualLoc Qual : {QualLoc(DeclSpec::TQ_const, DS.getConstSpecLoc()), in diagnoseAndRemoveTypeQualifiers() 788 QualLoc(DeclSpec::TQ_restrict, DS.getRestrictSpecLoc()), in diagnoseAndRemoveTypeQualifiers() 789 QualLoc(DeclSpec::TQ_volatile, DS.getVolatileSpecLoc()), in diagnoseAndRemoveTypeQualifiers() 790 QualLoc(DeclSpec::TQ_atomic, DS.getAtomicSpecLoc())}) { in diagnoseAndRemoveTypeQualifiers() 797 << DeclSpec::getSpecifierName(Qual.first) << TypeSoFar in diagnoseAndRemoveTypeQualifiers() [all …]
|
D | SemaDecl.cpp | 611 DeclSpec::TST Sema::isTagName(IdentifierInfo &II, Scope *S) { in isTagName() 619 case TTK_Struct: return DeclSpec::TST_struct; in isTagName() 620 case TTK_Interface: return DeclSpec::TST_interface; in isTagName() 621 case TTK_Union: return DeclSpec::TST_union; in isTagName() 622 case TTK_Class: return DeclSpec::TST_class; in isTagName() 623 case TTK_Enum: return DeclSpec::TST_enum; in isTagName() 627 return DeclSpec::TST_unspecified; in isTagName() 4332 Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS, DeclSpec &DS, in ParsedFreeStandingDeclSpec() 4528 static unsigned GetDiagnosticTypeSpecifierID(DeclSpec::TST T) { in GetDiagnosticTypeSpecifierID() 4530 case DeclSpec::TST_class: in GetDiagnosticTypeSpecifierID() [all …]
|
D | CMakeLists.txt | 14 DeclSpec.cpp
|
/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
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | FixItHintUtils.cpp | 74 static std::string buildQualifier(DeclSpec::TQ Qualifier, in buildQualifier() 77 return (llvm::Twine(' ') + DeclSpec::getSpecifierName(Qualifier)).str(); in buildQualifier() 78 return (llvm::Twine(DeclSpec::getSpecifierName(Qualifier)) + " ").str(); in buildQualifier() 82 DeclSpec::TQ Qualifier, in changeValue() 102 DeclSpec::TQ Qualifier, in changePointerItself() 115 changePointer(const VarDecl &Var, DeclSpec::TQ Qualifier, const Type *Pointee, in changePointer() 166 changeReferencee(const VarDecl &Var, DeclSpec::TQ Qualifier, QualType Pointee, in changeReferencee() 186 DeclSpec::TQ Qualifier, in addQualifierToVarDecl()
|
D | FixItHintUtils.h | 46 DeclSpec::TQ Qualifier,
|
/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 | 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 | 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()
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseDecl.cpp | 53 DeclSpec DS(AttrFactory); in ParseTypeName() 1614 DeclSpec &DS, in stripTypeAttributesOffDeclSpec() 1969 if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) { in ParseDeclGroup() 2421 void Parser::ParseSpecifierQualifierList(DeclSpec &DS, AccessSpecifier AS, in ParseSpecifierQualifierList() 2433 } else if (Specs == DeclSpec::PQ_None && !DS.hasAttributes()) { in ParseSpecifierQualifierList() 2440 if (Specs & DeclSpec::PQ_StorageClassSpecifier) { in ParseSpecifierQualifierList() 2450 if (Specs & DeclSpec::PQ_FunctionSpecifier) { in ParseSpecifierQualifierList() 2501 bool Parser::ParseImplicitInt(DeclSpec &DS, CXXScopeSpec *SS, in ParseImplicitInt() 2541 DS.getStorageClassSpec() == DeclSpec::SCS_auto) { in ParseImplicitInt() 2559 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt() [all …]
|
D | ParseDeclCXX.cpp | 938 SourceLocation Parser::ParseDecltypeSpecifier(DeclSpec &DS) { in ParseDecltypeSpecifier() 1034 ? DS.SetTypeSpecType(DeclSpec::TST_decltype, StartLoc, PrevSpec, in ParseDecltypeSpecifier() 1036 : DS.SetTypeSpecType(DeclSpec::TST_decltype_auto, StartLoc, PrevSpec, in ParseDecltypeSpecifier() 1044 void Parser::AnnotateExistingDecltypeSpecifier(const DeclSpec& DS, in AnnotateExistingDecltypeSpecifier() 1071 void Parser::ParseUnderlyingTypeSpecifier(DeclSpec &DS) { in ParseUnderlyingTypeSpecifier() 1095 if (DS.SetTypeSpecType(DeclSpec::TST_underlyingType, StartLoc, PrevSpec, in ParseUnderlyingTypeSpecifier() 1146 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier() 1232 DeclSpec DS(AttrFactory); in ParseBaseTypeSpecifier() 1398 SourceLocation StartLoc, DeclSpec &DS, in ParseClassSpecifier() 1403 DeclSpec::TST TagType; in ParseClassSpecifier() [all …]
|
D | ParseExprCXX.cpp | 214 DeclSpec DS(AttrFactory); in ParseOptionalCXXScopeSpecifier() 221 if (DS.getTypeSpecType() == DeclSpec::TST_decltype_auto || in ParseOptionalCXXScopeSpecifier() 1202 DeclSpec &DS) { in addConstexprToLambdaDeclSpecifier() 1218 DeclSpec &DS) { in addConstevalToLambdaDeclSpecifier() 1246 DeclSpec DS(AttrFactory); in ParseLambdaExpressionAfterIntroducer() 1566 DeclSpec DS(AttrFactory); in ParseCXXCasts() 1779 DeclSpec DS(AttrFactory); in ParseCXXPseudoDestructor() 1895 Parser::ParseCXXTypeConstructExpression(const DeclSpec &DS) { in ParseCXXTypeConstructExpression() 2065 DeclSpec DS(AttrFactory); in ParseCXXCondition() 2156 void Parser::ParseCXXSimpleTypeSpecifier(DeclSpec &DS) { in ParseCXXSimpleTypeSpecifier() [all …]
|
D | Parser.cpp | 178 void Parser::ConsumeExtraSemi(ExtraSemiKind Kind, DeclSpec::TST TST) { in ConsumeExtraSemi() 206 << Kind << DeclSpec::getSpecifierName(TST, in ConsumeExtraSemi() 1052 auto LengthOfTSTToken = [](DeclSpec::TST TKind) { in ParseDeclOrFunctionDefInternal() 1053 assert(DeclSpec::isDeclRep(TKind)); in ParseDeclOrFunctionDefInternal() 1055 case DeclSpec::TST_class: in ParseDeclOrFunctionDefInternal() 1057 case DeclSpec::TST_struct: in ParseDeclOrFunctionDefInternal() 1059 case DeclSpec::TST_union: in ParseDeclOrFunctionDefInternal() 1061 case DeclSpec::TST_enum: in ParseDeclOrFunctionDefInternal() 1063 case DeclSpec::TST_interface: in ParseDeclOrFunctionDefInternal() 1072 DeclSpec::isDeclRep(DS.getTypeSpecType()) in ParseDeclOrFunctionDefInternal() [all …]
|
/external/llvm-project/clang/include/clang/Sema/ |
D | DeclSpec.h | 229 class DeclSpec { 412 DeclSpec(const DeclSpec &) = delete; 413 void operator=(const DeclSpec &) = delete; 421 DeclSpec(AttributeFactory &attrFactory) in DeclSpec() function 455 StorageClassSpec = DeclSpec::SCS_unspecified; in ClearStorageClassSpecs() 456 ThreadStorageClassSpec = DeclSpec::TSCS_unspecified; in ClearStorageClassSpecs() 463 TypeSpecType = DeclSpec::TST_unspecified; in ClearTypeSpecType() 534 static const char *getSpecifierName(DeclSpec::TST T, 536 static const char *getSpecifierName(DeclSpec::TQ Q); 538 static const char *getSpecifierName(DeclSpec::TSC C); [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 …]
|
/external/llvm-project/clang/include/clang/Parse/ |
D | Parser.h | 874 bool TryAltiVecToken(DeclSpec &DS, SourceLocation Loc, in TryAltiVecToken() 898 bool TryAltiVecTokenOutOfLine(DeclSpec &DS, SourceLocation Loc, 1038 void ConsumeExtraSemi(ExtraSemiKind Kind, DeclSpec::TST T = TST_unspecified); 1970 ExprResult ParseCXXTypeConstructExpression(const DeclSpec &DS); 1975 void ParseCXXSimpleTypeSpecifier(DeclSpec &DS); 1977 bool ParseCXXTypeSpecifierSeq(DeclSpec &DS); 2144 void ParseMicrosoftIfExistsClassDeclaration(DeclSpec::TST TagType, 2343 bool ParseImplicitInt(DeclSpec &DS, CXXScopeSpec *SS, 2350 DeclSpec &DS, 2356 DeclSpec &DS, AccessSpecifier AS, DeclSpecContext DSContext, [all …]
|
D | RAIIObjectsForParser.h | 175 class ParsingDeclSpec : public DeclSpec { 180 : DeclSpec(P.getAttrFactory()), in ParsingDeclSpec() 183 : DeclSpec(P.getAttrFactory()), in ParsingDeclSpec()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | ForRangeCopyCheck.cpp | 91 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 122 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleCopyIsOnlyConstReferenced()
|