Home
last modified time | relevance | path

Searched refs:AttributeCommonInfo (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DAttributes.cpp22 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 DAttributeCommonInfo.h25 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 DAttr.td938 const AttributeCommonInfo &CommonInfo) {
942 const AttributeCommonInfo &CommonInfo) {
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaAMDGPU.h32 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 DSemaHLSL.h39 const AttributeCommonInfo &AL, int X,
41 HLSLShaderAttr *mergeShaderAttr(Decl *D, const AttributeCommonInfo &AL,
44 mergeParamModifierAttr(Decl *D, const AttributeCommonInfo &AL,
H A DSemaSwift.h23 class AttributeCommonInfo; variable
53 void AddParameterABIAttr(Decl *D, const AttributeCommonInfo &CI,
H A DParsedAttr.h126 : 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 DAttr.h170 const AttributeCommonInfo &CI) { in handleSimpleAttribute()
180 const AttributeCommonInfo &CI, in handleSimpleAttributeOrDiagnose()
H A DSema.h1863 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 DSemaCodeCompletion.h123 AttributeCommonInfo::Syntax Syntax,
H A DSemaObjC.h1069 void AddXConsumedAttr(Decl *D, const AttributeCommonInfo &CI,
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DParsedAttr.cpp115 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 DSemaAMDGPU.cpp142 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 DSemaAPINotes.cpp119 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 DSemaStmtAttr.cpp236 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 DSemaDeclAttr.cpp114 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 DSemaHLSL.cpp134 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 DSemaObjC.cpp1459 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 DSemaSwift.cpp710 void SemaSwift::AddParameterABIAttr(Decl *D, const AttributeCommonInfo &CI, in AddParameterABIAttr()
H A DSemaAttr.cpp401 bool Sema::ConstantFoldAttrArgs(const AttributeCommonInfo &CI, in ConstantFoldAttrArgs()
H A DSemaCodeComplete.cpp4600 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 DPPMacroExpansion.cpp1873 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 DASTReaderDecl.cpp3141 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 DParseDeclCXX.cpp4689 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 DParseDecl.cpp223 AttributeCommonInfo::Syntax::AS_GNU); in ParseGNUAttributes()
782 if (!hasAttribute(AttributeCommonInfo::Syntax::AS_Declspec, nullptr, AttrName, in ParseMicrosoftDeclSpecArgs()
949 AttributeCommonInfo::AS_Declspec); in ParseMicrosoftDeclSpecs()

12