Home
last modified time | relevance | path

Searched refs:ConstexprSpecKind (Results 1 – 20 of 20) sorted by relevance

/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DDeclSpec.cpp590 const char *DeclSpec::getSpecifierName(ConstexprSpecKind C) { in getSpecifierName()
592 case ConstexprSpecKind::Unspecified: in getSpecifierName()
594 case ConstexprSpecKind::Constexpr: in getSpecifierName()
596 case ConstexprSpecKind::Consteval: in getSpecifierName()
598 case ConstexprSpecKind::Constinit: in getSpecifierName()
1091 bool DeclSpec::SetConstexprSpec(ConstexprSpecKind ConstexprKind, in SetConstexprSpec()
1094 if (getConstexprSpecifier() != ConstexprSpecKind::Unspecified) in SetConstexprSpec()
1363 if (getConstexprSpecifier() == ConstexprSpecKind::Constexpr) in Finish()
1365 else if (getConstexprSpecifier() == ConstexprSpecKind::Consteval) in Finish()
1367 else if (getConstexprSpecifier() == ConstexprSpecKind::Constinit) in Finish()
H A DSemaLambda.cpp364 ConstexprSpecKind ConstexprKind, in startLambdaDefinition()
1451 S.getLangOpts().CPlusPlus17 ? ConstexprSpecKind::Constexpr in addFunctionPointerConversion()
1452 : ConstexprSpecKind::Unspecified, in addFunctionPointerConversion()
1491 /*isInline=*/true, ConstexprSpecKind::Unspecified, in addFunctionPointerConversion()
1559 /*isInline=*/true, ExplicitSpecifier(), ConstexprSpecKind::Unspecified, in addBlockPointerConversion()
1923 ? ConstexprSpecKind::Constexpr in BuildLambdaExpr()
1924 : ConstexprSpecKind::Unspecified); in BuildLambdaExpr()
H A DSemaDeclCXX.cpp7461 ? ConstexprSpecKind::Consteval in CheckExplicitlyDefaultedSpecialMember()
7463 : ConstexprSpecKind::Unspecified); in CheckExplicitlyDefaultedSpecialMember()
8563 FD->setConstexprKind(ConstexprSpecKind::Constexpr); in CheckExplicitlyDefaultedComparison()
13239 Constexpr ? ConstexprSpecKind::Constexpr in DeclareImplicitDefaultConstructor()
13240 : ConstexprSpecKind::Unspecified); in DeclareImplicitDefaultConstructor()
14156 Constexpr ? ConstexprSpecKind::Constexpr : ConstexprSpecKind::Unspecified, in DeclareImplicitCopyAssignment()
14490 Constexpr ? ConstexprSpecKind::Constexpr : ConstexprSpecKind::Unspecified, in DeclareImplicitMoveAssignment()
14871 Constexpr ? ConstexprSpecKind::Constexpr in DeclareImplicitCopyConstructor()
14872 : ConstexprSpecKind::Unspecified); in DeclareImplicitCopyConstructor()
15011 Constexpr ? ConstexprSpecKind::Constexpr in DeclareImplicitMoveConstructor()
[all …]
H A DSemaDecl.cpp7250 case ConstexprSpecKind::Unspecified: in ActOnVariableDeclarator()
7253 case ConstexprSpecKind::Consteval: in ActOnVariableDeclarator()
7259 case ConstexprSpecKind::Constexpr: in ActOnVariableDeclarator()
7270 case ConstexprSpecKind::Constinit: in ActOnVariableDeclarator()
8568 if (ConstexprKind == ConstexprSpecKind::Constinit) { in CreateNewFunctionDecl()
8572 ConstexprKind = ConstexprSpecKind::Unspecified; in CreateNewFunctionDecl()
9278 if (ConstexprKind != ConstexprSpecKind::Unspecified) { in ActOnFunctionDeclarator()
9288 ConstexprKind == ConstexprSpecKind::Consteval)) { in ActOnFunctionDeclarator()
9298 if (ConstexprKind == ConstexprSpecKind::Consteval && in ActOnFunctionDeclarator()
9306 NewFD->setConstexprKind(ConstexprSpecKind::Constexpr); in ActOnFunctionDeclarator()
[all …]
H A DSemaType.cpp5638 if (D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Constexpr && in GetFullTypeForDeclarator()
H A DSemaDeclAttr.cpp8596 ConstexprSpecKind::Unspecified, FD->getTrailingRequiresClause()); in DeclClonePragmaWeak()
H A DSemaOpenMP.cpp6660 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Constexpr; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
6662 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Consteval; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
H A DSemaExpr.cpp19509 /*ConstexprKind*/ ConstexprSpecKind::Unspecified); in resolveDecl()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DNameSearchContext.cpp81 isConstexprSpecified ? ConstexprSpecKind::Constexpr in AddFunDecl()
82 : ConstexprSpecKind::Unspecified); in AddFunDecl()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DSpecifiers.h32 enum class ConstexprSpecKind { Unspecified, Constexpr, Consteval, Constinit }; enum
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DDeclSpec.h435 static_cast<unsigned>(ConstexprSpecKind::Unspecified)), in DeclSpec()
542 static const char *getSpecifierName(ConstexprSpecKind C);
745 bool SetConstexprSpec(ConstexprSpecKind ConstexprKind, SourceLocation Loc,
754 ConstexprSpecKind getConstexprSpecifier() const { in getConstexprSpecifier()
755 return ConstexprSpecKind(ConstexprSpecifier); in getConstexprSpecifier()
760 return getConstexprSpecifier() != ConstexprSpecKind::Unspecified; in hasConstexprSpecifier()
764 ConstexprSpecifier = static_cast<unsigned>(ConstexprSpecKind::Unspecified); in ClearConstexprSpec()
H A DSema.h6659 ConstexprSpecKind ConstexprKind,
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DDecl.h1991 ConstexprSpecKind ConstexprKind,
2027 ConstexprSpecKind ConstexprKind = ConstexprSpecKind::Unspecified,
2040 ConstexprSpecKind ConstexprKind,
2279 return getConstexprKind() != ConstexprSpecKind::Unspecified; in isConstexpr()
2281 void setConstexprKind(ConstexprSpecKind CSK) { in setConstexprKind()
2284 ConstexprSpecKind getConstexprKind() const { in getConstexprKind()
2285 return static_cast<ConstexprSpecKind>(FunctionDeclBits.ConstexprKind); in getConstexprKind()
2288 return getConstexprKind() == ConstexprSpecKind::Constexpr; in isConstexprSpecified()
2291 return getConstexprKind() == ConstexprSpecKind::Consteval; in isConsteval()
H A DDeclCXX.h1860 SC_None, false, ConstexprSpecKind::Unspecified), in CXXDeductionGuideDecl()
1955 bool isInline, ConstexprSpecKind ConstexprKind,
1969 bool isInline, ConstexprSpecKind ConstexprKind,
2417 bool isImplicitlyDeclared, ConstexprSpecKind ConstexprKind,
2460 ConstexprSpecKind ConstexprKind,
2680 bool isImplicitlyDeclared, ConstexprSpecKind ConstexprKind,
2696 ConstexprSpecKind ConstexprKind,
2736 ConstexprSpecKind ConstexprKind, SourceLocation EndLocation,
2753 bool isInline, ExplicitSpecifier ES, ConstexprSpecKind ConstexprKind,
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DDeclCXX.cpp2186 ConstexprSpecKind ConstexprKind, in Create()
2199 ConstexprSpecKind::Unspecified, SourceLocation(), nullptr); in CreateDeserialized()
2572 ConstexprSpecKind ConstexprKind, InheritedConstructor Inherited, in CXXConstructorDecl()
2599 ExplicitSpecifier(), false, false, ConstexprSpecKind::Unspecified, in CreateDeserialized()
2612 ConstexprSpecKind ConstexprKind, InheritedConstructor Inherited, in Create()
2740 false, false, ConstexprSpecKind::Unspecified, nullptr); in CreateDeserialized()
2746 bool isInline, bool isImplicitlyDeclared, ConstexprSpecKind ConstexprKind, in Create()
2773 false, ExplicitSpecifier(), ConstexprSpecKind::Unspecified, in CreateDeserialized()
2780 bool isInline, ExplicitSpecifier ES, ConstexprSpecKind ConstexprKind, in Create()
H A DDecl.cpp2841 ConstexprSpecKind ConstexprKind, in FunctionDecl()
4851 ConstexprSpecKind ConstexprKind, in Create()
4864 nullptr, SC_None, false, ConstexprSpecKind::Unspecified, nullptr); in CreateDeserialized()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp2155 ? ConstexprSpecKind::Constexpr in CreateFunctionDeclaration()
2156 : ConstexprSpecKind::Unspecified); in CreateFunctionDeclaration()
7566 cxx_dtor_decl->setConstexprKind(ConstexprSpecKind::Unspecified); in AddMethodToCXXRecordType()
7578 cxx_ctor_decl->setConstexprKind(ConstexprSpecKind::Unspecified); in AddMethodToCXXRecordType()
7604 cxx_method_decl->setConstexprKind(ConstexprSpecKind::Unspecified); in AddMethodToCXXRecordType()
7617 cxx_conversion_decl->setConstexprKind(ConstexprSpecKind::Unspecified); in AddMethodToCXXRecordType()
7630 cxx_method_decl->setConstexprKind(ConstexprSpecKind::Unspecified); in AddMethodToCXXRecordType()
/freebsd-13.1/contrib/llvm-project/clang/lib/Parse/
H A DParseExprCXX.cpp1213 DS.SetConstexprSpec(ConstexprSpecKind::Constexpr, ConstexprLoc, PrevSpec, in addConstexprToLambdaDeclSpecifier()
1227 DS.SetConstexprSpec(ConstexprSpecKind::Consteval, ConstevalLoc, PrevSpec, in addConstevalToLambdaDeclSpecifier()
H A DParseDecl.cpp3772 isInvalid = DS.SetConstexprSpec(ConstexprSpecKind::Constexpr, Loc, in ParseDeclarationSpecifiers()
3776 isInvalid = DS.SetConstexprSpec(ConstexprSpecKind::Consteval, Loc, in ParseDeclarationSpecifiers()
3780 isInvalid = DS.SetConstexprSpec(ConstexprSpecKind::Constinit, Loc, in ParseDeclarationSpecifiers()
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp885 FD->setConstexprKind(static_cast<ConstexprSpecKind>(Record.readInt())); in VisitFunctionDecl()