/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | Attributes.cpp | 22 static int hasAttributeImpl(AttributeCommonInfo::Syntax Syntax, StringRef Name, in hasAttributeImpl() 31 int clang::hasAttribute(AttributeCommonInfo::Syntax Syntax, in hasAttribute() 81 AttributeCommonInfo::Syntax SyntaxUsed) { in normalizeAttrScopeName() 88 if (SyntaxUsed == AttributeCommonInfo::AS_CXX11 || in normalizeAttrScopeName() 89 SyntaxUsed == AttributeCommonInfo::AS_C23) { in normalizeAttrScopeName() 100 AttributeCommonInfo::Syntax SyntaxUsed) { in normalizeAttrName() 104 SyntaxUsed == AttributeCommonInfo::AS_GNU || in normalizeAttrName() 105 ((SyntaxUsed == AttributeCommonInfo::AS_CXX11 || in normalizeAttrName() 106 SyntaxUsed == AttributeCommonInfo::AS_C23) && in normalizeAttrName() 117 bool AttributeCommonInfo::isGNUScope() const { in isGNUScope() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | AttributeCommonInfo.h | 25 class AttributeCommonInfo { 140 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() function 153 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() function 156 : AttributeCommonInfo( in AttributeCommonInfo() 161 AttributeCommonInfo(const IdentifierInfo *AttrName, SourceRange AttrRange, in AttributeCommonInfo() function 163 : AttributeCommonInfo(AttrName, nullptr, AttrRange, SourceLocation(), in AttributeCommonInfo() 166 AttributeCommonInfo(SourceRange AttrRange, Kind K, Form FormUsed) in AttributeCommonInfo() function 167 : AttributeCommonInfo(nullptr, nullptr, AttrRange, SourceLocation(), K, in AttributeCommonInfo() 170 AttributeCommonInfo(AttributeCommonInfo &&) = default; 171 AttributeCommonInfo(const AttributeCommonInfo &) = default;
|
H A D | Attr.td | 938 const AttributeCommonInfo &CommonInfo) { 942 const AttributeCommonInfo &CommonInfo) {
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | SemaAMDGPU.h | 32 CreateAMDGPUFlatWorkGroupSizeAttr(const AttributeCommonInfo &CI, Expr *Min, 37 void addAMDGPUFlatWorkGroupSizeAttr(Decl *D, const AttributeCommonInfo &CI, 42 CreateAMDGPUWavesPerEUAttr(const AttributeCommonInfo &CI, Expr *Min, 47 void addAMDGPUWavesPerEUAttr(Decl *D, const AttributeCommonInfo &CI, 52 CreateAMDGPUMaxNumWorkGroupsAttr(const AttributeCommonInfo &CI, Expr *XExpr, 57 void addAMDGPUMaxNumWorkGroupsAttr(Decl *D, const AttributeCommonInfo &CI,
|
H A D | SemaHLSL.h | 39 const AttributeCommonInfo &AL, int X, 41 HLSLShaderAttr *mergeShaderAttr(Decl *D, const AttributeCommonInfo &AL, 44 mergeParamModifierAttr(Decl *D, const AttributeCommonInfo &AL,
|
H A D | SemaSwift.h | 23 class AttributeCommonInfo; variable 53 void AddParameterABIAttr(Decl *D, const AttributeCommonInfo &CI,
|
H A D | ParsedAttr.h | 126 : public AttributeCommonInfo, 223 : AttributeCommonInfo(attrName, scopeName, attrRange, scopeLoc, formUsed), in ParsedAttr() 241 : AttributeCommonInfo(attrName, scopeName, attrRange, scopeLoc, formUsed), in ParsedAttr() 259 : AttributeCommonInfo(attrName, scopeName, attrRange, scopeLoc, formUsed), in ParsedAttr() 275 : AttributeCommonInfo(attrName, scopeName, attrRange, scopeLoc, formUsed), in ParsedAttr() 292 : AttributeCommonInfo(attrName, scopeName, attrRange, scopeLoc, formUsed), in ParsedAttr() 305 : AttributeCommonInfo(attrName, scopeName, attrRange, scopeLoc, formUsed), in ParsedAttr() 627 AttributeCommonInfo::Kind getKind() const { in getKind() 628 return AttributeCommonInfo::Kind(Info.AttrKind); in getKind() 1127 std::enable_if_t<std::is_same<ACI, AttributeCommonInfo>::value, int> = 0> [all …]
|
H A D | Attr.h | 170 const AttributeCommonInfo &CI) { in handleSimpleAttribute() 180 const AttributeCommonInfo &CI, in handleSimpleAttributeOrDiagnose()
|
H A D | Sema.h | 1863 bool ConstantFoldAttrArgs(const AttributeCommonInfo &CI, 4474 bool checkStringLiteralArgumentAttr(const AttributeCommonInfo &CI, 4494 void AddAssumeAlignedAttr(Decl *D, const AttributeCommonInfo &CI, Expr *E, 4499 void AddAllocAlignAttr(Decl *D, const AttributeCommonInfo &CI, 4506 NamedDecl *D, const AttributeCommonInfo &CI, IdentifierInfo *Platform, 4513 mergeTypeVisibilityAttr(Decl *D, const AttributeCommonInfo &CI, 4515 VisibilityAttr *mergeVisibilityAttr(Decl *D, const AttributeCommonInfo &CI, 4517 SectionAttr *mergeSectionAttr(Decl *D, const AttributeCommonInfo &CI, 4531 CodeSegAttr *mergeCodeSegAttr(Decl *D, const AttributeCommonInfo &CI, 4545 ErrorAttr *mergeErrorAttr(Decl *D, const AttributeCommonInfo &CI, [all …]
|
H A D | SemaCodeCompletion.h | 123 AttributeCommonInfo::Syntax Syntax,
|
H A D | SemaObjC.h | 1069 void AddXConsumedAttr(Decl *D, const AttributeCommonInfo &CI,
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | ParsedAttr.cpp | 115 const ParsedAttrInfo &ParsedAttrInfo::get(const AttributeCommonInfo &A) { in get() 122 AttributeCommonInfo::IgnoredAttribute); in get() 123 if (A.getParsedKind() == AttributeCommonInfo::IgnoredAttribute) in get() 130 AttributeCommonInfo::Syntax SyntaxUsed = A.getSyntax(); in get() 131 if (SyntaxUsed == AttributeCommonInfo::AS_ContextSensitiveKeyword) in get() 132 SyntaxUsed = AttributeCommonInfo::AS_Keyword; in get() 140 AttributeCommonInfo::UnknownAttribute); in get()
|
H A D | SemaAMDGPU.cpp | 142 SemaAMDGPU::CreateAMDGPUFlatWorkGroupSizeAttr(const AttributeCommonInfo &CI, in CreateAMDGPUFlatWorkGroupSizeAttr() 154 const AttributeCommonInfo &CI, in addAMDGPUFlatWorkGroupSizeAttr() 203 SemaAMDGPU::CreateAMDGPUWavesPerEUAttr(const AttributeCommonInfo &CI, in CreateAMDGPUWavesPerEUAttr() 214 void SemaAMDGPU::addAMDGPUWavesPerEUAttr(Decl *D, const AttributeCommonInfo &CI, in addAMDGPUWavesPerEUAttr() 284 const AttributeCommonInfo &CI, Expr *XExpr, Expr *YExpr, Expr *ZExpr) { in CreateAMDGPUMaxNumWorkGroupsAttr() 297 const AttributeCommonInfo &CI, in addAMDGPUMaxNumWorkGroupsAttr()
|
H A D | SemaAPINotes.cpp | 119 static AttributeCommonInfo getPlaceholderAttrInfo() { in getPlaceholderAttrInfo() 120 return AttributeCommonInfo(SourceRange(), in getPlaceholderAttrInfo() 121 AttributeCommonInfo::UnknownAttribute, in getPlaceholderAttrInfo() 122 {AttributeCommonInfo::AS_GNU, in getPlaceholderAttrInfo() 668 AttributeCommonInfo SyntaxInfo{ in ProcessAPINotes() 670 AttributeCommonInfo::AT_SwiftNewType, in ProcessAPINotes() 671 {AttributeCommonInfo::AS_GNU, SwiftNewTypeAttr::GNU_swift_wrapper, in ProcessAPINotes()
|
H A D | SemaStmtAttr.cpp | 236 const AttributeCommonInfo &A) { in CheckStmtInlineAttr() 277 const AttributeCommonInfo &A) { in CheckNoInlineAttr() 282 const AttributeCommonInfo &A) { in CheckAlwaysInlineAttr() 349 CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, in BuildCodeAlignAttr() 723 A.getSyntax() == AttributeCommonInfo::AS_CXX11) in ActOnCXXAssumeAttr()
|
H A D | SemaDeclAttr.cpp | 114 bool Sema::checkStringLiteralArgumentAttr(const AttributeCommonInfo &CI, in checkStringLiteralArgumentAttr() 1356 void Sema::AddAssumeAlignedAttr(Decl *D, const AttributeCommonInfo &CI, Expr *E, in AddAssumeAlignedAttr() 1405 void Sema::AddAllocAlignAttr(Decl *D, const AttributeCommonInfo &CI, in AddAllocAlignAttr() 2075 NamedDecl *D, const AttributeCommonInfo &CI, IdentifierInfo *Platform, in mergeAvailabilityAttr() 2529 static T *mergeVisibilityAttr(Sema &S, Decl *D, const AttributeCommonInfo &CI, in mergeVisibilityAttr() 2544 const AttributeCommonInfo &CI, in mergeVisibilityAttr() 2550 Sema::mergeTypeVisibilityAttr(Decl *D, const AttributeCommonInfo &CI, in mergeTypeVisibilityAttr() 2819 SectionAttr *Sema::mergeSectionAttr(Decl *D, const AttributeCommonInfo &CI, in mergeSectionAttr() 2911 CodeSegAttr *Sema::mergeCodeSegAttr(Decl *D, const AttributeCommonInfo &CI, in mergeCodeSegAttr() 3449 ErrorAttr *Sema::mergeErrorAttr(Decl *D, const AttributeCommonInfo &CI, in mergeErrorAttr() [all …]
|
H A D | SemaHLSL.cpp | 134 const AttributeCommonInfo &AL, in mergeNumThreadsAttr() 148 SemaHLSL::mergeShaderAttr(Decl *D, const AttributeCommonInfo &AL, in mergeShaderAttr() 161 SemaHLSL::mergeParamModifierAttr(Decl *D, const AttributeCommonInfo &AL, in mergeParamModifierAttr()
|
H A D | SemaObjC.cpp | 1459 AttributeCommonInfo Info(Ident, SourceRange(Loc), in AddCFAuditedAttribute() 1460 AttributeCommonInfo::Form::Pragma()); in AddCFAuditedAttribute() 1739 void SemaObjC::AddXConsumedAttr(Decl *D, const AttributeCommonInfo &CI, in AddXConsumedAttr()
|
H A D | SemaSwift.cpp | 710 void SemaSwift::AddParameterABIAttr(Decl *D, const AttributeCommonInfo &CI, in AddParameterABIAttr()
|
H A D | SemaAttr.cpp | 401 bool Sema::ConstantFoldAttrArgs(const AttributeCommonInfo &CI, in ConstantFoldAttrArgs()
|
H A D | SemaCodeComplete.cpp | 4600 AttributeCommonInfo::Syntax Syntax, AttributeCompletion Completion, in CodeCompleteAttribute() 4627 bool SyntaxSupportsGuards = Syntax == AttributeCommonInfo::AS_GNU || in CodeCompleteAttribute() 4628 Syntax == AttributeCommonInfo::AS_CXX11 || in CodeCompleteAttribute() 4629 Syntax == AttributeCommonInfo::AS_C23; in CodeCompleteAttribute() 4643 if ((Syntax == AttributeCommonInfo::AS_CXX11 || in CodeCompleteAttribute() 4644 Syntax == AttributeCommonInfo::AS_C23)) { in CodeCompleteAttribute()
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPMacroExpansion.cpp | 1873 return II ? hasAttribute(AttributeCommonInfo::Syntax::AS_GNU, nullptr, in ExpandBuiltinMacro() 1885 hasAttribute(AttributeCommonInfo::Syntax::AS_Declspec, nullptr, in ExpandBuiltinMacro() 1915 AttributeCommonInfo::Syntax Syntax = in ExpandBuiltinMacro() 1916 IsCXX ? AttributeCommonInfo::Syntax::AS_CXX11 in ExpandBuiltinMacro() 1917 : AttributeCommonInfo::Syntax::AS_C23; in ExpandBuiltinMacro()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderDecl.cpp | 3141 bool IsAlignas = (ParsedKind == AttributeCommonInfo::AT_Aligned && in readAttr() 3142 Syntax == AttributeCommonInfo::AS_Keyword && in readAttr() 3146 AttributeCommonInfo Info(AttrName, ScopeName, AttrRange, ScopeLoc, in readAttr() 3147 AttributeCommonInfo::Kind(ParsedKind), in readAttr() 3148 {AttributeCommonInfo::Syntax(Syntax), SpellingIndex, in readAttr()
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseDeclCXX.cpp | 4689 if (hasAttribute(AttributeCommonInfo::Syntax::AS_Microsoft, ScopeName, in ParseCXX11AttributeArgs() 4697 !hasAttribute(LO.CPlusPlus ? AttributeCommonInfo::Syntax::AS_CXX11 in ParseCXX11AttributeArgs() 4698 : AttributeCommonInfo::Syntax::AS_C23, in ParseCXX11AttributeArgs() 5123 AttributeCommonInfo::AS_Microsoft, in ParseMicrosoftAttributes()
|
H A D | ParseDecl.cpp | 223 AttributeCommonInfo::Syntax::AS_GNU); in ParseGNUAttributes() 782 if (!hasAttribute(AttributeCommonInfo::Syntax::AS_Declspec, nullptr, AttrName, in ParseMicrosoftDeclSpecArgs() 949 AttributeCommonInfo::AS_Declspec); in ParseMicrosoftDeclSpecs()
|