| /freebsd-src/contrib/llvm-project/clang/lib/Sema/ |
| H A D | ParsedAttr.cpp | 1 //======- ParsedAttr.cpp --------------------------------------------------===// 9 // This file defines the ParsedAttr class implementation 13 #include "clang/Sema/ParsedAttr.h" 36 size_t ParsedAttr::allocated_size() const { in allocated_size() 58 assert(size >= sizeof(ParsedAttr)); in getFreeListIndexForSize() 60 return ((size - sizeof(ParsedAttr)) / sizeof(void *)); in getFreeListIndexForSize() 67 ParsedAttr *attr = FreeLists[index].back(); in allocate() 76 void AttributeFactory::deallocate(ParsedAttr *Attr) { in deallocate() 94 for (ParsedAttr *AL : cur.Attrs) in reclaimPool() 105 llvm::for_each(List.AttrList, [&Pool](ParsedAttr * [all...] |
| H A D | SemaDeclAttr.cpp | 41 #include "clang/Sema/ParsedAttr.h" 85 static unsigned getNumAttributeArgs(const ParsedAttr &AL) { in hasDeclarator() 90 SourceLocation Sema::getAttrLoc(const ParsedAttr &AL) { return AL.getLoc(); } 131 bool Sema::checkStringLiteralArgumentAttr(const ParsedAttr &AL, unsigned ArgNum, in getFunctionOrMethodParamRange() 208 const ParsedAttr &AL) { in getAttrLoc() 329 const ParsedAttr &AL, in checkFunctionOrMethodParameterIndex() 425 static void handlePtGuardedVarAttr(Sema &S, Decl *D, const ParsedAttr &AL) { in handleSimpleAttributeOrDiagnose() 432 static bool checkGuardedByAttrCommon(Sema &S, Decl *D, const ParsedAttr &AL, in handleSimpleAttributeOrDiagnose() 446 static void handleGuardedByAttr(Sema &S, Decl *D, const ParsedAttr &AL) { in threadSafetyCheckIsSmartPointer() 454 static void handlePtGuardedByAttr(Sema &S, Decl *D, const ParsedAttr in threadSafetyCheckIsSmartPointer() [all...] |
| H A D | SemaStmtAttr.cpp | 19 #include "clang/Sema/ParsedAttr.h" 28 static Attr *handleFallThroughAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleFallThroughAttr() 55 static Attr *handleSuppressAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleSuppressAttr() 78 static Attr *handleLoopHintAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleLoopHintAttr() 219 static Attr *handleNoMergeAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleNoMergeAttr() 286 static Attr *handleNoInlineAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleNoInlineAttr() 301 static Attr *handleAlwaysInlineAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleAlwaysInlineAttr() 316 static Attr *handleCXXAssumeAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleLikely() 325 static Attr *handleMustTailAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleUnlikely() 331 static Attr *handleLikely(Sema &S, Stmt *St, const ParsedAttr in BuildCodeAlignAttr() [all...] |
| H A D | SemaType.cpp | 34 #include "clang/Sema/ParsedAttr.h" 81 static void diagnoseBadTypeAttribute(Sema &S, const ParsedAttr &attr, in diagnoseBadTypeAttribute() 86 case ParsedAttr::AT_ObjCGC: in diagnoseBadTypeAttribute() 89 case ParsedAttr::AT_ObjCOwnership: in diagnoseBadTypeAttribute() 122 case ParsedAttr::AT_ObjCGC: \ 123 case ParsedAttr::AT_ObjCOwnership 127 case ParsedAttr::AT_CDecl: \ 128 case ParsedAttr::AT_FastCall: \ 129 case ParsedAttr::AT_StdCall: \ 130 case ParsedAttr [all...] |
| H A D | SemaCUDA.cpp | 76 for (const ParsedAttr &AL : Attrs) { in IdentifyCUDATarget() 78 case ParsedAttr::AT_CUDAGlobal: in IdentifyCUDATarget() 81 case ParsedAttr::AT_CUDAHost: in IdentifyCUDATarget() 84 case ParsedAttr::AT_CUDADevice: in IdentifyCUDATarget() 87 case ParsedAttr::AT_CUDAInvalidTarget: in IdentifyCUDATarget()
|
| H A D | SemaAttr.cpp | 920 ParsedAttr &Attribute, SourceLocation PragmaLoc, 1099 ParsedAttr *Attribute = Entry.Attribute; in AddPragmaAttributes() 1408 const ParsedAttr &A, in PopPragmaVisibility() 1415 if (A.getKind() == ParsedAttr::UnknownAttribute) in checkCommonAttributeFeatures() 1454 bool Sema::checkCommonAttributeFeatures(const Decl *D, const ParsedAttr &A, in checkCommonAttributeFeatures() 1458 bool Sema::checkCommonAttributeFeatures(const Stmt *S, const ParsedAttr &A, in checkCommonAttributeFeatures()
|
| H A D | SemaTemplate.cpp | 9451 for (const ParsedAttr &AL : Attr) { in CheckSpecializationInstantiationRedecl() 9452 if (AL.getKind() == ParsedAttr::AT_DLLExport) { in CheckSpecializationInstantiationRedecl() 9475 for (const ParsedAttr &AL : Attr) { in CheckSpecializationInstantiationRedecl() 9476 if (AL.getKind() == ParsedAttr::AT_DLLImport) in CheckSpecializationInstantiationRedecl() 9478 if (AL.getKind() == ParsedAttr::AT_DLLExport) { in CheckSpecializationInstantiationRedecl() 9515 for (const ParsedAttr &AL : Attr) { in CheckSpecializationInstantiationRedecl() 9516 if (AL.getKind() == ParsedAttr::AT_DLLExport) { in CheckSpecializationInstantiationRedecl()
|
| H A D | DeclSpec.cpp | 1145 writtenBS.ModeAttr = getAttributes().hasAttribute(ParsedAttr::AT_Mode); in Finish()
|
| /freebsd-src/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | ParsedAttr.h | 1 //======- ParsedAttr.h - Parsed attribute sets ------------------*- C++ -*-===// 9 // This file defines the ParsedAttr class, which is used to collect 67 /// Describes the trailing object for Availability attribute in ParsedAttr. 112 /// ParsedAttr as an argument. 116 /// ParsedAttr - Represents a syntactic attribute. 125 class ParsedAttr final 128 ParsedAttr, ArgsUnion, detail::AvailabilityData, in numTrailingObjects() 219 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, 234 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr() 255 ParsedAttr(IdentifierInf in ParsedAttr() 206 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, ParsedAttr() function 221 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, ParsedAttr() function 241 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, ParsedAttr() function 257 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, ParsedAttr() function 275 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, ParsedAttr() function 288 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, ParsedAttr() function [all...] |
| H A D | Sema.h | 95 class ParsedAttr; 1774 ParsedAttr *Attribute; 1948 void ActOnPragmaAttributeAttribute(ParsedAttr &Attribute, 2057 bool checkCommonAttributeFeatures(const Decl *D, const ParsedAttr &A, 2059 bool checkCommonAttributeFeatures(const Stmt *S, const ParsedAttr &A, 4406 /// AND the ParsedAttr. 4412 SourceLocation getAttrLoc(const ParsedAttr &AL); 4482 bool checkStringLiteralArgumentAttr(const ParsedAttr &Attr, unsigned ArgNum, 4502 bool CheckAttrTarget(const ParsedAttr &CurrAttr); 4503 bool CheckAttrNoArgs(const ParsedAttr 91 class ParsedAttr; global() variable [all...] |
| H A D | DeclSpec.h | 34 #include "clang/Sema/ParsedAttr.h" 2035 [](const ParsedAttr &AL) { in SetRangeEnd()
|
| /freebsd-src/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | ParsedAttrInfo.h | 29 class ParsedAttr; variable 107 virtual bool diagAppertainsToDecl(Sema &S, const ParsedAttr &Attr, in diagAppertainsToDecl() 112 virtual bool diagAppertainsToStmt(Sema &S, const ParsedAttr &Attr, in diagAppertainsToStmt() 118 virtual bool diagMutualExclusion(Sema &S, const ParsedAttr &A, in diagMutualExclusion() 137 spellingIndexToSemanticSpelling(const ParsedAttr &Attr) const { in spellingIndexToSemanticSpelling() 154 const ParsedAttr &Attr) const { in handleDeclAttribute()
|
| /freebsd-src/contrib/llvm-project/clang/lib/Parse/ |
| H A D | ParseHLSL.cpp | 147 ParsedAttr::Kind AttrKind = in ParseHLSLSemantics() 148 ParsedAttr::getParsedKind(II, nullptr, ParsedAttr::AS_HLSLAnnotation); in ParseHLSLSemantics() 152 case ParsedAttr::AT_HLSLResourceBinding: { in ParseHLSLSemantics() 192 case ParsedAttr::AT_HLSLPackOffset: { in ParseHLSLSemantics() 280 case ParsedAttr::UnknownAttribute: 283 case ParsedAttr::AT_HLSLSV_GroupIndex: 284 case ParsedAttr::AT_HLSLSV_DispatchThreadID: 292 ArgExprs.size(), ParsedAttr::Form::HLSLAnnotation());
|
| H A D | ParseDeclCXX.cpp | 2740 for (const ParsedAttr &AL : DeclaratorInfo.getAttributes()) in ParseCXXClassMemberDeclaration() 3236 for (const ParsedAttr &AL : DeclaratorInfo.getAttributes()) 4471 getLangOpts().CPlusPlus ? ParsedAttr::AS_CXX11 : ParsedAttr::AS_C23, in ParseCXX11AttributeArgs() 4589 ParsedAttr::getParsedKind(AttrName, ScopeName, ParsedAttr::AS_CXX11)) { in ParseCXX11AttributeSpecifierInternal() 4590 case ParsedAttr::AT_CarriesDependency: in ParseCXX11AttributeSpecifierInternal() 4591 case ParsedAttr::AT_Deprecated: in ParseCXX11AttributeSpecifierInternal() 4592 case ParsedAttr::AT_FallThrough: in ParseCXX11AttributeSpecifierInternal() 4593 case ParsedAttr in ParseCXX11AttributeSpecifierInternal() [all...] |
| H A D | ParseDecl.cpp | 67 llvm::SmallVector<ParsedAttr *, 1> ToBeMoved; in ParseTypeName() 68 for (ParsedAttr &AL : DS.getAttributes()) { in ParseTypeName() 73 for (ParsedAttr *AL : ToBeMoved) in ParseTypeName() 234 ParsedAttr::Form::GNU()); in ParseGNUAttributes() 259 SourceLocation(), ParsedAttr::Form::GNU(), D); in ParseGNUAttributes() 416 ParsedAttr::Form Form) { in ParseAttributeArgumentList() 522 SourceLocation ScopeLoc, ParsedAttr::Form Form) { in ParseAttributeArgsCommon() 540 ParsedAttr::Kind AttrKind = in ParseAttributeArgsCommon() 541 ParsedAttr::getParsedKind(AttrName, ScopeName, Form.getSyntax()); in ParseAttributeArgsCommon() 545 if (AttrKind == ParsedAttr in ParseAttributeArgsCommon() [all...] |
| H A D | ParsePragma.cpp | 1834 for (const ParsedAttr &Attribute : Attrs) { in createExpectedAttributeSubjectRulesTokenDiagnostic() 1946 ParsedAttr::Form::GNU()); in HandlePragmaAttribute() 1951 ParsedAttr::Form::GNU(), in HandlePragmaAttribute() 1966 if (ParsedAttr::getParsedKind( in HandlePragmaAttribute() 1968 ParsedAttr::AS_GNU) != ParsedAttr::UnknownAttribute) { in HandlePragmaAttribute() 1991 for (const ParsedAttr &Attribute : Attrs) { in HandlePragmaAttribute() 2059 for (ParsedAttr &Attribute : Attrs) { in HandlePragma()
|
| H A D | ParseCXXInlineMethods.cpp | 817 nullptr, SourceLocation(), ParsedAttr::Form::GNU(), 826 nullptr, SourceLocation(), ParsedAttr::Form::GNU(), in ConsumeAndStoreUntil()
|
| H A D | ParseStmt.cpp | 242 auto IsStmtAttr = [](ParsedAttr &Attr) { return Attr.isStmtAttr(); }; in ParseStatementOrDeclarationAfterAttributes() 350 for (const ParsedAttr &AL : CXX11Attrs) in ParseStatementOrDeclarationAfterAttributes() 2493 ParsedAttr::Form::Pragma()); in ParsePragmaLoopHint()
|
| H A D | ParseExprCXX.cpp | 1596 for (const ParsedAttr &A : Attributes) in ParseCXXCasts() 1597 if (A.getKind() == ParsedAttr::AT_CUDADevice || in ParseCXXCasts() 1598 A.getKind() == ParsedAttr::AT_CUDAHost || in ParseCXXCasts() 1599 A.getKind() == ParsedAttr::AT_CUDAGlobal) in ParseCXXCasts()
|
| H A D | ParseOpenMP.cpp | 3641 for (const ParsedAttr &PA : ParsedAttrs) { in ParseOMPInteropInfo() 3643 case ParsedAttr::AT_AMDGPUFlatWorkGroupSize: in ParseOMPInteropInfo() 3650 case ParsedAttr::AT_AMDGPUWavesPerEU: 3659 case ParsedAttr::AT_CUDALaunchBounds:
|
| H A D | ParseObjc.cpp | 416 auto getNullabilityAttr = [&](AttributePool &Pool) -> ParsedAttr * { in addContextSensitiveTypeNullability() 419 nullptr, 0, ParsedAttr::Form::ContextSensitiveKeyword()); in addContextSensitiveTypeNullability()
|
| /freebsd-src/contrib/llvm-project/clang/include/clang/Parse/ |
| H A D | Parser.h | 314 /// Factory object for creating ParsedAttr objects. in MaybeDestroyTemplateIds() 2891 ParsedAttr::Form Form); 2952 ParsedAttr::Form Form, Declarator *D); 2959 ParsedAttr::Form Form); 3015 ParsedAttr::Form Form); 3088 ParsedAttr::Form Form); 3099 ParsedAttr::Form Form); in EnterDeclaratorScope() 3107 ParsedAttr::Form Form); in ~DeclaratorScopeObj() 3115 ParsedAttr::Form Form); 3123 ParsedAttr [all...] |
| /freebsd-src/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 2648 ParsedTargetAttr ParsedAttr = in GetCPUAndFeaturesAttributes() 2650 if (!ParsedAttr.CPU.empty() && in GetCPUAndFeaturesAttributes() 2651 getTarget().isValidCPUName(ParsedAttr.CPU)) { in GetCPUAndFeaturesAttributes() 2652 TargetCPU = ParsedAttr.CPU; in GetCPUAndFeaturesAttributes() 2655 if (!ParsedAttr.Tune.empty() && in GetCPUAndFeaturesAttributes() 2656 getTarget().isValidCPUName(ParsedAttr.Tune)) 2657 TuneCPU = ParsedAttr.Tune; in setNonAliasAttributes() 2614 ParsedTargetAttr ParsedAttr = GetCPUAndFeaturesAttributes() local
|
| H A D | CodeGenFunction.cpp | 2749 ParsedTargetAttr ParsedAttr = in CreateMultiVersionResolverReturn() 2756 for (const auto &F : ParsedAttr.Features) { in CreateMultiVersionResolverReturn() 2650 ParsedTargetAttr ParsedAttr = checkTargetFeatures() local
|
| /freebsd-src/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTContext.cpp | 14055 ParsedTargetAttr ParsedAttr = Target->parseTargetAttr(TD->getFeaturesStr()); 14057 llvm::erase_if(ParsedAttr.Features, [&](const std::string &Feat) { 14060 return ParsedAttr; 14080 ParsedTargetAttr ParsedAttr = filterFunctionTargetAttrs(TD); 14086 ParsedAttr.Features.insert( 14087 ParsedAttr.Features.begin(), 14091 if (ParsedAttr.CPU != "" && Target->isValidCPUName(ParsedAttr.CPU)) 14092 TargetCPU = ParsedAttr.CPU; 14099 ParsedAttr 13480 ParsedTargetAttr ParsedAttr = Target->parseTargetAttr(TD->getFeaturesStr()); filterFunctionTargetAttrs() local 13505 ParsedTargetAttr ParsedAttr = filterFunctionTargetAttrs(TD); getFunctionFeatureMap() local [all...] |