Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Basic/
H A DAttributes.cpp8 int clang::hasAttribute(AttributeCommonInfo::Syntax Syntax, in hasAttribute()
55 if (SyntaxUsed == AttributeCommonInfo::AS_CXX11 || in normalizeAttrScopeName()
56 SyntaxUsed == AttributeCommonInfo::AS_C2x) { in normalizeAttrScopeName()
71 SyntaxUsed == AttributeCommonInfo::AS_GNU || in normalizeAttrName()
72 ((SyntaxUsed == AttributeCommonInfo::AS_CXX11 || in normalizeAttrName()
73 SyntaxUsed == AttributeCommonInfo::AS_C2x) && in normalizeAttrName()
84 bool AttributeCommonInfo::isGNUScope() const { in isGNUScope()
88 bool AttributeCommonInfo::isClangScope() const { in isClangScope()
102 assert(SyntaxUsed == AttributeCommonInfo::AS_CXX11 || in normalizeName()
103 SyntaxUsed == AttributeCommonInfo::AS_C2x); in normalizeName()
[all …]
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DAttributeCommonInfo.h22 class AttributeCommonInfo {
79 AttributeCommonInfo(SourceRange AttrRange) in AttributeCommonInfo() function
83 AttributeCommonInfo(SourceLocation AttrLoc) in AttributeCommonInfo() function
87 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() function
95 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() function
102 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() function
110 AttributeCommonInfo(const IdentifierInfo *AttrName, SourceRange AttrRange, in AttributeCommonInfo() function
116 AttributeCommonInfo(SourceRange AttrRange, Kind K, Syntax SyntaxUsed) in AttributeCommonInfo() function
121 AttributeCommonInfo(SourceRange AttrRange, Kind K, Syntax SyntaxUsed, in AttributeCommonInfo() function
126 AttributeCommonInfo(AttributeCommonInfo &&) = default;
[all …]
H A DAttributes.h22 int hasAttribute(AttributeCommonInfo::Syntax Syntax,
H A DAttr.td809 const AttributeCommonInfo &CommonInfo) {
813 const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
/llvm-project-15.0.7/clang/include/clang/AST/
H A DAttr.h36 class AttributeCommonInfo; variable
41 class Attr : public AttributeCommonInfo {
74 Attr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in Attr()
76 : AttributeCommonInfo(CommonInfo), AttrKind(AK), Inherited(false), in Attr()
113 TypeAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in TypeAttr()
126 StmtAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in StmtAttr()
139 InheritableAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in InheritableAttr()
164 DeclOrStmtAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in DeclOrStmtAttr()
180 const AttributeCommonInfo &CommonInfo, attr::Kind AK, in InheritableParamAttr()
197 ParameterABIAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in ParameterABIAttr()
/llvm-project-15.0.7/clang/lib/Sema/
H A DParsedAttr.cpp112 const ParsedAttrInfo &ParsedAttrInfo::get(const AttributeCommonInfo &A) { in get()
119 AttributeCommonInfo::IgnoredAttribute); in get()
120 if (A.getParsedKind() == AttributeCommonInfo::IgnoredAttribute) in get()
133 AttributeCommonInfo::Syntax SyntaxUsed = A.getSyntax(); in get()
134 if (SyntaxUsed == AttributeCommonInfo::AS_ContextSensitiveKeyword) in get()
135 SyntaxUsed = AttributeCommonInfo::AS_Keyword; in get()
144 AttributeCommonInfo::UnknownAttribute); in get()
H A DSemaDeclAttr.cpp341 bool Sema::checkStringLiteralArgumentAttr(const AttributeCommonInfo &CI, in checkStringLiteralArgumentAttr()
387 const AttributeCommonInfo &CI) { in handleSimpleAttribute()
1726 void Sema::AddAllocAlignAttr(Decl *D, const AttributeCommonInfo &CI, in AddAllocAlignAttr()
2869 Sema::mergeTypeVisibilityAttr(Decl *D, const AttributeCommonInfo &CI, in mergeTypeVisibilityAttr()
4145 void Sema::AddAnnotationAttr(Decl *D, const AttributeCommonInfo &CI, in AddAnnotationAttr()
4366 void Sema::AddAlignedAttr(Decl *D, const AttributeCommonInfo &CI, in AddAlignedAttr()
4532 void Sema::AddModeAttr(Decl *D, const AttributeCommonInfo &CI, in AddModeAttr()
5660 void Sema::AddXConsumedAttr(Decl *D, const AttributeCommonInfo &CI, in AddXConsumedAttr()
6922 Sema::mergeHLSLShaderAttr(Decl *D, const AttributeCommonInfo &AL, in mergeHLSLShaderAttr()
7705 Sema::mergeMSInheritanceAttr(Decl *D, const AttributeCommonInfo &CI, in mergeMSInheritanceAttr()
[all …]
H A DSemaAttr.cpp387 bool Sema::ConstantFoldAttrArgs(const AttributeCommonInfo &CI, in ConstantFoldAttrArgs()
853 AttributeCommonInfo::AS_Pragma, in ActOnPragmaUnused()
868 AttributeCommonInfo Info(Ident, SourceRange(Loc), in AddCFAuditedAttribute()
869 AttributeCommonInfo::AS_Pragma); in AddCFAuditedAttribute()
H A DSemaDecl.cpp9968 CodeSegStack.CurrentPragmaLocation, AttributeCommonInfo::AS_Pragma, in ActOnFunctionDeclarator()
10570 CodeSegStack.CurrentPragmaLocation, AttributeCommonInfo::AS_Pragma, in getImplicitCodeSegOrSectionAttrForFunction()
13762 if (SA->getSyntax() == AttributeCommonInfo::AS_Declspec) in CheckCompleteVariableDeclaration()
13770 AttributeCommonInfo::AS_Pragma, SectionAttr::Declspec_allocate)); in CheckCompleteVariableDeclaration()
13864 AttributeCommonInfo::AS_Pragma)); in FinalizeDeclaration()
13869 AttributeCommonInfo::AS_Pragma)); in FinalizeDeclaration()
13874 AttributeCommonInfo::AS_Pragma)); in FinalizeDeclaration()
13879 AttributeCommonInfo::AS_Pragma)); in FinalizeDeclaration()
17149 Context, FinalLoc, AttributeCommonInfo::AS_Keyword, in ActOnStartCXXMemberDeclarations()
19191 AttributeCommonInfo Info(AliasName, SourceRange(AliasNameLoc), in ActOnPragmaRedefineExtname()
[all …]
H A DSemaObjCProperty.cpp2514 Context, SA->getName(), Loc, AttributeCommonInfo::AS_GNU, in ProcessPropertyDecl()
2587 Context, SA->getName(), Loc, AttributeCommonInfo::AS_GNU, in ProcessPropertyDecl()
H A DSemaCodeComplete.cpp4473 void Sema::CodeCompleteAttribute(AttributeCommonInfo::Syntax Syntax, in CodeCompleteAttribute()
4501 bool SyntaxSupportsGuards = Syntax == AttributeCommonInfo::AS_GNU || in CodeCompleteAttribute()
4502 Syntax == AttributeCommonInfo::AS_CXX11 || in CodeCompleteAttribute()
4503 Syntax == AttributeCommonInfo::AS_C2x; in CodeCompleteAttribute()
4516 if ((Syntax == AttributeCommonInfo::AS_CXX11 || in CodeCompleteAttribute()
4517 Syntax == AttributeCommonInfo::AS_C2x)) { in CodeCompleteAttribute()
H A DSemaOpenMP.cpp4172 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4217 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4278 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4325 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4378 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4425 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4528 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
H A DSemaDeclCXX.cpp3545 AttributeCommonInfo::AS_Keyword)); in ActOnCXXMemberDeclarator()
3548 Context, VS.getFinalLoc(), AttributeCommonInfo::AS_Keyword, in ActOnCXXMemberDeclarator()
H A DSemaType.cpp8790 S.getASTContext(), BestCase, Loc, AttributeCommonInfo::AS_Microsoft, in assignInheritanceModel()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DParsedAttr.h69 AttributeCommonInfo::Syntax Syntax;
77 constexpr ParsedAttrInfo(AttributeCommonInfo::Kind AttrKind =
151 static const ParsedAttrInfo &get(const AttributeCommonInfo &A);
234 : public AttributeCommonInfo,
323 : AttributeCommonInfo(attrName, scopeName, attrRange, scopeLoc, in ParsedAttr()
342 : AttributeCommonInfo(attrName, scopeName, attrRange, scopeLoc, in ParsedAttr()
360 : AttributeCommonInfo(attrName, scopeName, attrRange, scopeLoc, in ParsedAttr()
377 : AttributeCommonInfo(attrName, scopeName, attrRange, scopeLoc, in ParsedAttr()
395 : AttributeCommonInfo(attrName, scopeName, attrRange, scopeLoc, in ParsedAttr()
715 AttributeCommonInfo::Kind getKind() const { in getKind()
[all …]
H A DSema.h3534 mergeAvailabilityAttr(NamedDecl *D, const AttributeCommonInfo &CI,
3541 mergeTypeVisibilityAttr(Decl *D, const AttributeCommonInfo &CI,
3545 UuidAttr *mergeUuidAttr(Decl *D, const AttributeCommonInfo &CI,
3553 ErrorAttr *mergeErrorAttr(Decl *D, const AttributeCommonInfo &CI,
10509 void AddAllocAlignAttr(Decl *D, const AttributeCommonInfo &CI,
10517 void AddAnnotationAttr(Decl *D, const AttributeCommonInfo &CI,
10524 bool ConstantFoldAttrArgs(const AttributeCommonInfo &CI,
10529 void AddLaunchBoundsAttr(Decl *D, const AttributeCommonInfo &CI,
10536 void AddParameterABIAttr(Decl *D, const AttributeCommonInfo &CI,
10540 void AddXConsumedAttr(Decl *D, const AttributeCommonInfo &CI,
[all …]
/llvm-project-15.0.7/llvm/utils/gn/secondary/clang/lib/Basic/
H A DBUILD.gn35 # public_dep because public header AttributeCommonInfo.h includes generated
/llvm-project-15.0.7/clang/lib/Lex/
H A DPPMacroExpansion.cpp1732 return II ? hasAttribute(AttributeCommonInfo::Syntax::AS_GNU, nullptr, in ExpandBuiltinMacro()
1744 hasAttribute(AttributeCommonInfo::Syntax::AS_Declspec, nullptr, in ExpandBuiltinMacro()
1774 AttributeCommonInfo::Syntax Syntax = in ExpandBuiltinMacro()
1775 IsCXX ? AttributeCommonInfo::Syntax::AS_CXX11 in ExpandBuiltinMacro()
1776 : AttributeCommonInfo::Syntax::AS_C2x; in ExpandBuiltinMacro()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderDecl.cpp2916 AttributeCommonInfo Info(AttrName, ScopeName, AttrRange, ScopeLoc, in readAttr()
2917 AttributeCommonInfo::Kind(ParsedKind), in readAttr()
2918 AttributeCommonInfo::Syntax(Syntax), SpellingIndex); in readAttr()
4452 AttributeCommonInfo::AS_Pragma)); in UpdateDecl()
4463 AttributeCommonInfo::AS_Pragma)); in UpdateDecl()
4484 readSourceRange(), AttributeCommonInfo::AS_Pragma)); in UpdateDecl()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseDeclCXX.cpp4274 if (hasAttribute(AttributeCommonInfo::Syntax::AS_Microsoft, ScopeName, in ParseCXX11AttributeArgs()
4282 !hasAttribute(LO.CPlusPlus ? AttributeCommonInfo::Syntax::AS_CXX11 in ParseCXX11AttributeArgs()
4283 : AttributeCommonInfo::Syntax::AS_C2x, in ParseCXX11AttributeArgs()
4657 Actions.CodeCompleteAttribute(AttributeCommonInfo::AS_Microsoft, in ParseMicrosoftAttributes()
H A DParseDecl.cpp194 Actions.CodeCompleteAttribute(AttributeCommonInfo::Syntax::AS_GNU); in ParseGNUAttributes()
600 if (!hasAttribute(AttributeCommonInfo::Syntax::AS_Declspec, nullptr, AttrName, in ParseMicrosoftDeclSpecArgs()
766 Actions.CodeCompleteAttribute(AttributeCommonInfo::AS_Declspec); in ParseMicrosoftDeclSpecs()
H A DParsePragma.cpp1765 Actions.CodeCompleteAttribute(AttributeCommonInfo::Syntax::AS_GNU); in HandlePragmaAttribute()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp210 {}, AttributeCommonInfo::AS_GNU, AlignedAttr::GNU_aligned)); in buildRecordForGlobalizedVars()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTImporter.cpp8630 AttributeCommonInfo ToI(ToAttrName, ToScopeName, ToAttrRange, ToScopeLoc, in importAttr()
/llvm-project-15.0.7/clang/docs/tools/
H A Dclang-formatted-files.txt169 clang/include/clang/Basic/AttributeCommonInfo.h