Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Sema/
H A DDeclSpec.cpp592 const char *DeclSpec::getSpecifierName(ConstexprSpecKind C) { in getSpecifierName()
594 case ConstexprSpecKind::Unspecified: in getSpecifierName()
596 case ConstexprSpecKind::Constexpr: in getSpecifierName()
598 case ConstexprSpecKind::Consteval: in getSpecifierName()
600 case ConstexprSpecKind::Constinit: in getSpecifierName()
1092 bool DeclSpec::SetConstexprSpec(ConstexprSpecKind ConstexprKind, in SetConstexprSpec()
1095 if (getConstexprSpecifier() != ConstexprSpecKind::Unspecified) in SetConstexprSpec()
1371 if (getConstexprSpecifier() == ConstexprSpecKind::Constexpr) in Finish()
1373 else if (getConstexprSpecifier() == ConstexprSpecKind::Consteval) in Finish()
1375 else if (getConstexprSpecifier() == ConstexprSpecKind::Constinit) in Finish()
H A DSemaLambda.cpp362 ConstexprSpecKind ConstexprKind, in startLambdaDefinition()
1451 S.getLangOpts().CPlusPlus17 ? ConstexprSpecKind::Constexpr in addFunctionPointerConversion()
1452 : ConstexprSpecKind::Unspecified, in addFunctionPointerConversion()
1492 /*isInline=*/true, ConstexprSpecKind::Unspecified, in addFunctionPointerConversion()
1561 /*isInline=*/true, ExplicitSpecifier(), ConstexprSpecKind::Unspecified, in addBlockPointerConversion()
1925 ? ConstexprSpecKind::Constexpr in BuildLambdaExpr()
1926 : ConstexprSpecKind::Unspecified); in BuildLambdaExpr()
H A DSemaDeclCXX.cpp8740 FD->setConstexprKind(ConstexprSpecKind::Constexpr); in CheckExplicitlyDefaultedComparison()
13441 Constexpr ? ConstexprSpecKind::Constexpr in DeclareImplicitDefaultConstructor()
13442 : ConstexprSpecKind::Unspecified); in DeclareImplicitDefaultConstructor()
13721 Constexpr ? ConstexprSpecKind::Constexpr in DeclareImplicitDestructor()
13722 : ConstexprSpecKind::Unspecified); in DeclareImplicitDestructor()
14359 Constexpr ? ConstexprSpecKind::Constexpr : ConstexprSpecKind::Unspecified, in DeclareImplicitCopyAssignment()
14693 Constexpr ? ConstexprSpecKind::Constexpr : ConstexprSpecKind::Unspecified, in DeclareImplicitMoveAssignment()
15072 Constexpr ? ConstexprSpecKind::Constexpr in DeclareImplicitCopyConstructor()
15073 : ConstexprSpecKind::Unspecified); in DeclareImplicitCopyConstructor()
15211 Constexpr ? ConstexprSpecKind::Constexpr in DeclareImplicitMoveConstructor()
[all …]
H A DSemaDecl.cpp7625 case ConstexprSpecKind::Unspecified: in ActOnVariableDeclarator()
7628 case ConstexprSpecKind::Consteval: in ActOnVariableDeclarator()
7634 case ConstexprSpecKind::Constexpr: in ActOnVariableDeclarator()
7645 case ConstexprSpecKind::Constinit: in ActOnVariableDeclarator()
8946 ConstexprSpecKind::Unspecified, in CreateNewFunctionDecl()
8957 if (ConstexprKind == ConstexprSpecKind::Constinit) { in CreateNewFunctionDecl()
8961 ConstexprKind = ConstexprSpecKind::Unspecified; in CreateNewFunctionDecl()
9718 if (ConstexprKind != ConstexprSpecKind::Unspecified) { in ActOnFunctionDeclarator()
9728 ConstexprKind == ConstexprSpecKind::Consteval)) { in ActOnFunctionDeclarator()
9738 if (ConstexprKind == ConstexprSpecKind::Consteval && in ActOnFunctionDeclarator()
[all …]
H A DSemaType.cpp5740 if (D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Constexpr && in GetFullTypeForDeclarator()
H A DSemaDeclAttr.cpp9253 FD->hasPrototype(), ConstexprSpecKind::Unspecified, in DeclClonePragmaWeak()
H A DSemaOpenMP.cpp7081 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Constexpr; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
7083 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Consteval; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
H A DSemaExpr.cpp20431 /*ConstexprKind*/ ConstexprSpecKind::Unspecified); in resolveDecl()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DNameSearchContext.cpp83 isConstexprSpecified ? ConstexprSpecKind::Constexpr in AddFunDecl()
84 : ConstexprSpecKind::Unspecified); in AddFunDecl()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DExtractFunction.cpp360 ConstexprSpecKind Constexpr = ConstexprSpecKind::Unspecified;
422 case ConstexprSpecKind::Unspecified: in renderSpecifiers()
423 case ConstexprSpecKind::Constinit: in renderSpecifiers()
425 case ConstexprSpecKind::Constexpr: in renderSpecifiers()
428 case ConstexprSpecKind::Consteval: in renderSpecifiers()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSpecifiers.h32 enum class ConstexprSpecKind { Unspecified, Constexpr, Consteval, Constinit }; enum
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DDeclSpec.h436 static_cast<unsigned>(ConstexprSpecKind::Unspecified)), in DeclSpec()
543 static const char *getSpecifierName(ConstexprSpecKind C);
746 bool SetConstexprSpec(ConstexprSpecKind ConstexprKind, SourceLocation Loc,
755 ConstexprSpecKind getConstexprSpecifier() const { in getConstexprSpecifier()
756 return ConstexprSpecKind(ConstexprSpecifier); in getConstexprSpecifier()
761 return getConstexprSpecifier() != ConstexprSpecKind::Unspecified; in hasConstexprSpecifier()
765 ConstexprSpecifier = static_cast<unsigned>(ConstexprSpecKind::Unspecified); in ClearConstexprSpec()
H A DSema.h6948 ConstexprSpecKind ConstexprKind,
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclCXX.h1893 SC_None, false, false, ConstexprSpecKind::Unspecified), in CXXDeductionGuideDecl()
1989 ConstexprSpecKind ConstexprKind, SourceLocation EndLocation,
2002 ConstexprSpecKind ConstexprKind, SourceLocation EndLocation,
2450 bool isImplicitlyDeclared, ConstexprSpecKind ConstexprKind,
2493 bool isImplicitlyDeclared, ConstexprSpecKind ConstexprKind,
2713 bool isImplicitlyDeclared, ConstexprSpecKind ConstexprKind,
2728 ConstexprSpecKind ConstexprKind,
2768 ExplicitSpecifier ES, ConstexprSpecKind ConstexprKind,
2787 ConstexprSpecKind ConstexprKind, SourceLocation EndLocation,
H A DDecl.h2016 bool isInlineSpecified, ConstexprSpecKind ConstexprKind,
2052 ConstexprSpecKind ConstexprKind = ConstexprSpecKind::Unspecified,
2065 bool hasWrittenPrototype, ConstexprSpecKind ConstexprKind,
2311 return getConstexprKind() != ConstexprSpecKind::Unspecified; in isConstexpr()
2313 void setConstexprKind(ConstexprSpecKind CSK) { in setConstexprKind()
2316 ConstexprSpecKind getConstexprKind() const { in getConstexprKind()
2317 return static_cast<ConstexprSpecKind>(FunctionDeclBits.ConstexprKind); in getConstexprKind()
2320 return getConstexprKind() == ConstexprSpecKind::Constexpr; in isConstexprSpecified()
2323 return getConstexprKind() == ConstexprSpecKind::Consteval; in isConsteval()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclCXX.cpp2204 bool isInline, ConstexprSpecKind ConstexprKind, in Create()
2216 ConstexprSpecKind::Unspecified, SourceLocation(), nullptr); in CreateDeserialized()
2589 bool isImplicitlyDeclared, ConstexprSpecKind ConstexprKind, in CXXConstructorDecl()
2616 ExplicitSpecifier(), false, false, false, ConstexprSpecKind::Unspecified, in CreateDeserialized()
2629 bool isImplicitlyDeclared, ConstexprSpecKind ConstexprKind, in Create()
2756 false, false, false, ConstexprSpecKind::Unspecified, nullptr); in CreateDeserialized()
2763 ConstexprSpecKind ConstexprKind, Expr *TrailingRequiresClause) { in Create()
2788 false, false, ExplicitSpecifier(), ConstexprSpecKind::Unspecified, in CreateDeserialized()
2796 ConstexprSpecKind ConstexprKind, SourceLocation EndLocation, in Create()
H A DDecl.cpp2941 ConstexprSpecKind ConstexprKind, in FunctionDecl()
4995 ConstexprSpecKind ConstexprKind, in Create()
5007 nullptr, SC_None, false, false, ConstexprSpecKind::Unspecified, nullptr); in CreateDeserialized()
/llvm-project-15.0.7/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp2161 ? ConstexprSpecKind::Constexpr in CreateFunctionDeclaration()
2162 : ConstexprSpecKind::Unspecified); in CreateFunctionDeclaration()
7659 cxx_dtor_decl->setConstexprKind(ConstexprSpecKind::Unspecified); in AddMethodToCXXRecordType()
7671 cxx_ctor_decl->setConstexprKind(ConstexprSpecKind::Unspecified); in AddMethodToCXXRecordType()
7697 cxx_method_decl->setConstexprKind(ConstexprSpecKind::Unspecified); in AddMethodToCXXRecordType()
7710 cxx_conversion_decl->setConstexprKind(ConstexprSpecKind::Unspecified); in AddMethodToCXXRecordType()
7723 cxx_method_decl->setConstexprKind(ConstexprSpecKind::Unspecified); in AddMethodToCXXRecordType()
/llvm-project-15.0.7/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.cpp3920 isInvalid = DS.SetConstexprSpec(ConstexprSpecKind::Constexpr, Loc, in ParseDeclarationSpecifiers()
3924 isInvalid = DS.SetConstexprSpec(ConstexprSpecKind::Consteval, Loc, in ParseDeclarationSpecifiers()
3928 isInvalid = DS.SetConstexprSpec(ConstexprSpecKind::Constinit, Loc, in ParseDeclarationSpecifiers()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderDecl.cpp927 FD->setConstexprKind(static_cast<ConstexprSpecKind>(Record.readInt())); in VisitFunctionDecl()