Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/clang/lib/Basic/
H A DAttributes.cpp7 int clang::hasAttribute(AttributeCommonInfo::Syntax Syntax, in hasAttribute()
47 AttributeCommonInfo::Syntax SyntaxUsed) { in normalizeAttrScopeName()
54 if (SyntaxUsed == AttributeCommonInfo::AS_CXX11 || in normalizeAttrScopeName()
55 SyntaxUsed == AttributeCommonInfo::AS_C2x) { in normalizeAttrScopeName()
66 AttributeCommonInfo::Syntax SyntaxUsed) { in normalizeAttrName()
70 SyntaxUsed == AttributeCommonInfo::AS_GNU || in normalizeAttrName()
71 ((SyntaxUsed == AttributeCommonInfo::AS_CXX11 || in normalizeAttrName()
72 SyntaxUsed == AttributeCommonInfo::AS_C2x) && in normalizeAttrName()
83 bool AttributeCommonInfo::isGNUScope() const { in isGNUScope()
87 bool AttributeCommonInfo::isClangScope() const { in isClangScope()
[all …]
/openbsd-src/gnu/llvm/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.td825 const AttributeCommonInfo &CommonInfo) {
829 const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DAttr.h35 class AttributeCommonInfo; variable
40 class Attr : public AttributeCommonInfo {
73 Attr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in Attr()
75 : AttributeCommonInfo(CommonInfo), AttrKind(AK), Inherited(false), in Attr()
112 TypeAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in TypeAttr()
125 StmtAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in StmtAttr()
138 InheritableAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in InheritableAttr()
163 DeclOrStmtAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in DeclOrStmtAttr()
179 const AttributeCommonInfo &CommonInfo, attr::Kind AK, in InheritableParamAttr()
194 HLSLAnnotationAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in HLSLAnnotationAttr()
[all …]
/openbsd-src/gnu/llvm/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.cpp342 bool Sema::checkStringLiteralArgumentAttr(const AttributeCommonInfo &CI, in checkStringLiteralArgumentAttr()
388 const AttributeCommonInfo &CI) { in handleSimpleAttribute()
412 const AttributeCommonInfo &CI, in handleSimpleAttributeOrDiagnose()
1678 void Sema::AddAssumeAlignedAttr(Decl *D, const AttributeCommonInfo &CI, Expr *E, in AddAssumeAlignedAttr()
1727 void Sema::AddAllocAlignAttr(Decl *D, const AttributeCommonInfo &CI, in AddAllocAlignAttr()
2431 NamedDecl *D, const AttributeCommonInfo &CI, IdentifierInfo *Platform, in mergeAvailabilityAttr()
2853 static T *mergeVisibilityAttr(Sema &S, Decl *D, const AttributeCommonInfo &CI, in mergeVisibilityAttr()
2868 const AttributeCommonInfo &CI, in mergeVisibilityAttr()
2874 Sema::mergeTypeVisibilityAttr(Decl *D, const AttributeCommonInfo &CI, in mergeTypeVisibilityAttr()
3270 SectionAttr *Sema::mergeSectionAttr(Decl *D, const AttributeCommonInfo &CI, in mergeSectionAttr()
[all …]
H A DHLSLExternalSemaSource.cpp74 AttributeCommonInfo::AS_Keyword, in BuiltinTypeDeclBuilder()
289 AST, SourceRange(), AttributeCommonInfo::AS_Keyword, in addArraySubscriptOperator()
H A DSemaAttr.cpp390 bool Sema::ConstantFoldAttrArgs(const AttributeCommonInfo &CI, in ConstantFoldAttrArgs()
850 AttributeCommonInfo::AS_Pragma, in ActOnPragmaUnused()
865 AttributeCommonInfo Info(Ident, SourceRange(Loc), in AddCFAuditedAttribute()
866 AttributeCommonInfo::AS_Pragma); in AddCFAuditedAttribute()
H A DSemaDecl.cpp7775 AttributeCommonInfo::AS_Keyword, ConstInitAttr::Keyword_constinit)); in ActOnVariableDeclarator()
10110 AttributeCommonInfo::AS_Keyword)); in ActOnFunctionDeclarator()
10125 PragmaClangTextSection.PragmaLocation, AttributeCommonInfo::AS_Pragma)); in ActOnFunctionDeclarator()
10132 CodeSegStack.CurrentPragmaLocation, AttributeCommonInfo::AS_Pragma, in ActOnFunctionDeclarator()
10147 AttributeCommonInfo::AS_Pragma)); in ActOnFunctionDeclarator()
10188 AttributeCommonInfo AL(NewFD->getBeginLoc()); in ActOnFunctionDeclarator()
10775 CodeSegStack.CurrentPragmaLocation, AttributeCommonInfo::AS_Pragma, in getImplicitCodeSegOrSectionAttrForFunction()
11318 AttributeCommonInfo::AS_GNU)); in CheckMultiVersionAdditionalDecl()
11536 AttributeCommonInfo::AS_GNU)); in CheckMultiVersionFunction()
14145 if (SA->getSyntax() == AttributeCommonInfo::AS_Declspec) in CheckCompleteVariableDeclaration()
[all …]
H A DSemaObjCProperty.cpp2511 Context, SA->getName(), Loc, AttributeCommonInfo::AS_GNU, in ProcessPropertyDecl()
2584 Context, SA->getName(), Loc, AttributeCommonInfo::AS_GNU, in ProcessPropertyDecl()
H A DSemaCodeComplete.cpp4509 void Sema::CodeCompleteAttribute(AttributeCommonInfo::Syntax Syntax, in CodeCompleteAttribute()
4537 bool SyntaxSupportsGuards = Syntax == AttributeCommonInfo::AS_GNU || in CodeCompleteAttribute()
4538 Syntax == AttributeCommonInfo::AS_CXX11 || in CodeCompleteAttribute()
4539 Syntax == AttributeCommonInfo::AS_C2x; in CodeCompleteAttribute()
4552 if ((Syntax == AttributeCommonInfo::AS_CXX11 || in CodeCompleteAttribute()
4553 Syntax == AttributeCommonInfo::AS_C2x)) { in CodeCompleteAttribute()
H A DSemaOpenMP.cpp4227 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4272 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4333 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4380 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4433 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4480 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
4583 Context, {}, AttributeCommonInfo::AS_Keyword, in ActOnOpenMPRegionStart()
H A DSemaDeclCXX.cpp3579 AttributeCommonInfo::AS_Keyword)); in ActOnCXXMemberDeclarator()
3582 Context, VS.getFinalLoc(), AttributeCommonInfo::AS_Keyword, in ActOnCXXMemberDeclarator()
H A DSemaType.cpp8892 S.getASTContext(), BestCase, Loc, AttributeCommonInfo::AS_Microsoft, in assignInheritanceModel()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DParsedAttr.h69 AttributeCommonInfo::Syntax Syntax;
77 constexpr ParsedAttrInfo(AttributeCommonInfo::Kind AttrKind =
78 AttributeCommonInfo::NoSemaHandlerAttribute)
83 constexpr ParsedAttrInfo(AttributeCommonInfo::Kind AttrKind, unsigned NumArgs, in ParsedAttrInfo()
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()
[all …]
H A DSema.h3633 mergeAvailabilityAttr(NamedDecl *D, const AttributeCommonInfo &CI,
3640 mergeTypeVisibilityAttr(Decl *D, const AttributeCommonInfo &CI,
3642 VisibilityAttr *mergeVisibilityAttr(Decl *D, const AttributeCommonInfo &CI,
3644 UuidAttr *mergeUuidAttr(Decl *D, const AttributeCommonInfo &CI,
3646 DLLImportAttr *mergeDLLImportAttr(Decl *D, const AttributeCommonInfo &CI);
3647 DLLExportAttr *mergeDLLExportAttr(Decl *D, const AttributeCommonInfo &CI);
3649 const AttributeCommonInfo &CI,
3652 ErrorAttr *mergeErrorAttr(Decl *D, const AttributeCommonInfo &CI,
3654 FormatAttr *mergeFormatAttr(Decl *D, const AttributeCommonInfo &CI,
3657 SectionAttr *mergeSectionAttr(Decl *D, const AttributeCommonInfo &CI,
[all …]
/openbsd-src/gnu/llvm/llvm/utils/gn/secondary/clang/lib/Basic/
H A DBUILD.gn35 # public_dep because public header AttributeCommonInfo.h includes generated
/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DPPMacroExpansion.cpp1746 return II ? hasAttribute(AttributeCommonInfo::Syntax::AS_GNU, nullptr, in ExpandBuiltinMacro()
1758 hasAttribute(AttributeCommonInfo::Syntax::AS_Declspec, nullptr, in ExpandBuiltinMacro()
1788 AttributeCommonInfo::Syntax Syntax = in ExpandBuiltinMacro()
1789 IsCXX ? AttributeCommonInfo::Syntax::AS_CXX11 in ExpandBuiltinMacro()
1790 : AttributeCommonInfo::Syntax::AS_C2x; in ExpandBuiltinMacro()
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DASTReaderDecl.cpp3010 AttributeCommonInfo Info(AttrName, ScopeName, AttrRange, ScopeLoc, in readAttr()
3011 AttributeCommonInfo::Kind(ParsedKind), in readAttr()
3012 AttributeCommonInfo::Syntax(Syntax), SpellingIndex); in readAttr()
4550 AttributeCommonInfo::AS_Pragma)); in UpdateDecl()
4561 AttributeCommonInfo::AS_Pragma)); in UpdateDecl()
4582 readSourceRange(), AttributeCommonInfo::AS_Pragma)); in UpdateDecl()
/openbsd-src/gnu/llvm/clang/lib/Parse/
H A DParseDeclCXX.cpp4366 if (hasAttribute(AttributeCommonInfo::Syntax::AS_Microsoft, ScopeName, in ParseCXX11AttributeArgs()
4374 !hasAttribute(LO.CPlusPlus ? AttributeCommonInfo::Syntax::AS_CXX11 in ParseCXX11AttributeArgs()
4375 : AttributeCommonInfo::Syntax::AS_C2x, in ParseCXX11AttributeArgs()
4747 Actions.CodeCompleteAttribute(AttributeCommonInfo::AS_Microsoft, in ParseMicrosoftAttributes()
H A DParseDecl.cpp194 Actions.CodeCompleteAttribute(AttributeCommonInfo::Syntax::AS_GNU); in ParseGNUAttributes()
598 if (!hasAttribute(AttributeCommonInfo::Syntax::AS_Declspec, nullptr, AttrName, in ParseMicrosoftDeclSpecArgs()
764 Actions.CodeCompleteAttribute(AttributeCommonInfo::AS_Declspec); in ParseMicrosoftDeclSpecs()
H A DParsePragma.cpp1819 Actions.CodeCompleteAttribute(AttributeCommonInfo::Syntax::AS_GNU); in HandlePragmaAttribute()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp193 {}, AttributeCommonInfo::AS_GNU, AlignedAttr::GNU_aligned)); in buildRecordForGlobalizedVars()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DASTImporter.cpp8781 AttributeCommonInfo ToI(ToAttrName, ToScopeName, ToAttrRange, ToScopeLoc, in importAttr()

12