Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Sema/
H A DJumpDiagnostics.cpp380 if (!(IS->isConstexpr() || IS->isConsteval() || in BuildScopeInformation()
387 else if (IS->isConsteval()) in BuildScopeInformation()
397 if (!IS->isConsteval()) in BuildScopeInformation()
H A DSemaDeclCXX.cpp1694 FD->isConsteval())) in CheckConstexprParameterTypes()
1706 FD->isConsteval())) in CheckConstexprReturnType()
1953 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval(); in CheckConstexprDeclStmt()
2183 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval(); in CheckConstexprFunctionStmt()
2342 << Dcl->isConsteval(); in CheckConstexprFunctionBody()
2394 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval(); in CheckConstexprFunctionBody()
6875 MD->isConsteval() ? diag::err_consteval_override in CheckCompletedCXXClass()
6878 return MD->isConsteval() != V->isConsteval(); in CheckCompletedCXXClass()
7552 Diag(MD->getBeginLoc(), MD->isConsteval() in CheckExplicitlyDefaultedSpecialMember()
7565 MD->setConstexprKind(Constexpr ? (MD->isConsteval() in CheckExplicitlyDefaultedSpecialMember()
[all …]
H A DSemaCoroutine.cpp235 DiagInvalid(FD->isConsteval() ? DiagConsteval : DiagConstexpr); in isValidCoroutineContext()
H A DSemaLambda.cpp1246 LSI->CallOperator->isConsteval() in ActOnStartOfLambdaDefinition()
H A DSemaStmt.cpp939 if (FD && FD->isConsteval()) in ActOnIfStmt()
4119 << FD << FD->isConsteval(); in BuildReturnStmt()
H A DSemaDecl.cpp10801 << (NewFD->isConsteval() ? ConstevalFuncs : ConstexprFuncs); in areMultiversionVariantFunctionsCompatible()
11643 << FD->isConsteval() in CheckMain()
14724 FD->isConsteval() ? ExpressionEvaluationContext::ConstantEvaluated in ActOnStartOfFunctionDef()
H A DSemaExpr.cpp17496 !Decl->isConsteval() || isConstantEvaluated() || in CheckForImmediateInvocation()
17542 assert(FD->isConsteval()); in EvaluateAndDiagnoseImmediateInvocation()
19625 FD->isConsteval() && !RebuildingImmediateInvocation) in MarkDeclRefReferenced()
H A DSemaOpenMP.cpp7101 if (UDecl->isConsteval() && !IsConsteval) in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
7557 << (NewFD->isConsteval() ? ConstevalFuncs : ConstexprFuncs); in checkOpenMPDeclareVariantFunction()
H A DTreeTransform.h7475 if (!S->isConsteval()) { in TransformIfStmt()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp1798 functionDecl(hasName("bar"), isConsteval()))); in TEST_P()
1800 functionDecl(hasName("bar"), isConsteval()))); in TEST_P()
1802 notMatches("int bar();", functionDecl(hasName("bar"), isConsteval()))); in TEST_P()
1809 EXPECT_TRUE(matches("void baz() { if consteval {} }", ifStmt(isConsteval()))); in TEST_P()
1811 matches("void baz() { if ! consteval {} }", ifStmt(isConsteval()))); in TEST_P()
1813 ifStmt(isConsteval()))); in TEST_P()
1815 matches("void baz() { if not consteval {} }", ifStmt(isConsteval()))); in TEST_P()
1817 ifStmt(isConsteval()))); in TEST_P()
1819 notMatches("void baz() { if (1 > 0) {} }", ifStmt(isConsteval()))); in TEST_P()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp1380 if (!S->isConsteval()) in VisitIfStmt()
1386 if (!S->isConsteval()) { in VisitIfStmt()
1423 if (!S->isConsteval()) { in VisitIfStmt()
H A DCodeGenPGO.cpp653 if (S->isConsteval()) { in VisitIfStmt()
H A DCGStmt.cpp764 if (S.isConsteval()) { in EmitIfStmt()
H A DCodeGenModule.cpp4038 assert(!cast<FunctionDecl>(GD.getDecl())->isConsteval() && in GetAddrOfFunction()
6087 if (FD->isConsteval()) in EmitTopLevelDecl()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp408 REGISTER_MATCHER(isConsteval); in RegistryMaps()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmt.h2113 bool isConsteval() const { in isConsteval() function
2162 (isConsteval() ? thenOffset() : 0), in children()
2171 (isConsteval() ? thenOffset() : 0), in children()
H A DDecl.h2322 bool isConsteval() const { in isConsteval() function
/llvm-project-15.0.7/clang/lib/AST/
H A DTextNodeDumper.cpp284 if (FD->isConsteval()) in Visit()
960 if (Node->isConsteval()) { in VisitIfStmt()
H A DDeclPrinter.cpp625 if (D->isConsteval()) Out << "consteval "; in VisitFunctionDecl()
H A DJSONNodeDumper.cpp1499 attributeOnlyIfTrue("isConsteval", IS->isConsteval()); in VisitIfStmt()
H A DStmtPrinter.cpp301 if (If->isConsteval()) { in PrintRawIfStmt()
H A DVTableBuilder.cpp2261 return MD->isVirtual() && !MD->isConsteval(); in hasVtableSlot()
H A DExprConstant.cpp2164 if (FD->isConsteval()) { in CheckLValueConstantExpression()
2307 if (FD->isConsteval()) { in CheckMemberPointerConstantExpression()
5269 if (IS->isConsteval()) { in EvaluateStmt()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h5262 AST_POLYMORPHIC_MATCHER(isConsteval, in AST_POLYMORPHIC_MATCHER() argument
5264 return Node.isConsteval(); in AST_POLYMORPHIC_MATCHER()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCFG.cpp3098 (I->isConsteval() || I->getConditionVariable()) in VisitIfStmt()
3113 if (!I->isConsteval()) in VisitIfStmt()