Home
last modified time | relevance | path

Searched refs:CondExpr (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DIdDependentBackwardBranchCheck.cpp66 const auto CondExpr = in registerMatchers() local
74 Finder->addMatcher(stmt(anyOf(forStmt(hasCondition(CondExpr)), in registerMatchers()
75 doStmt(hasCondition(CondExpr)), in registerMatchers()
76 whileStmt(hasCondition(CondExpr)))) in registerMatchers()
228 const auto *CondExpr = Result.Nodes.getNodeAs<Expr>("cond_expr"); in check() local
234 if (CondExpr) { in check()
236 diag(CondExpr->getBeginLoc(), in check()
243 IdDependencyRecord *IdDepVar = hasIdDepVar(CondExpr); in check()
244 IdDependencyRecord *IdDepField = hasIdDepField(CondExpr); in check()
248 diag(CondExpr->getBeginLoc(), in check()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp471 Expr *CondExpr = in ActOnCaseExpr() local
473 if (!CondExpr) in ActOnCaseExpr()
891 Expr *CondExpr = Cond.get().second; in ActOnIfStmt() local
897 CommaVisitor(*this).Visit(CondExpr); in ActOnIfStmt()
1094 Expr *CondExpr = Cond.get().second; in ActOnStartOfSwitchStmt() local
1097 if (CondExpr && !CondExpr->isTypeDependent()) { in ActOnStartOfSwitchStmt()
1109 << CondExpr->getSourceRange(); in ActOnStartOfSwitchStmt()
1226 Expr *CondExpr = SS->getCond(); in ActOnFinishSwitchStmt() local
1227 if (!CondExpr) return StmtError(); in ActOnFinishSwitchStmt()
1245 = CondExpr->isTypeDependent() || CondExpr->isValueDependent(); in ActOnFinishSwitchStmt()
[all …]
H A DSemaExpr.cpp9114 Expr *CondExpr, Expr *LHSExpr, in ActOnConditionalOp() argument
9120 ExprResult CondResult = CorrectDelayedTyposInExpr(CondExpr); in ActOnConditionalOp()
9135 CondExpr = CondResult.get(); in ActOnConditionalOp()
9145 commonExpr = CondExpr; in ActOnConditionalOp()
9184 LHSExpr = CondExpr = opaqueValue; in ActOnConditionalOp()
9190 ExprResult Cond = CondExpr, LHS = LHSExpr, RHS = RHSExpr; in ActOnConditionalOp()
16124 Expr *CondExpr, in ActOnChooseExpr() argument
16127 assert((CondExpr && LHSExpr && RHSExpr) && "Missing type argument(s)"); in ActOnChooseExpr()
16133 if (CondExpr->isTypeDependent() || CondExpr->isValueDependent()) { in ActOnChooseExpr()
16142 CondExpr = CondICE.get(); in ActOnChooseExpr()
[all …]
H A DSemaOpenMP.cpp8905 ExprResult CondExpr = SemaRef.BuildBinOp( in buildPreCond() local
8910 if (CondExpr.isUsable()) { in buildPreCond()
8911 if (!SemaRef.Context.hasSameUnqualifiedType(CondExpr.get()->getType(), in buildPreCond()
8913 CondExpr = SemaRef.PerformImplicitConversion( in buildPreCond()
8919 return CondExpr.isUsable() ? CondExpr.get() : Cond; in buildPreCond()
14657 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective() local
14659 if (!CondExpr.isUsable()) in ActOnOpenMPTileDirective()
14687 ForStmt(Context, InitStmt.get(), CondExpr.get(), nullptr, in ActOnOpenMPTileDirective()
14718 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective() local
14720 if (!CondExpr.isUsable()) in ActOnOpenMPTileDirective()
[all …]
H A DSemaExprCXX.cpp3958 ExprResult Sema::CheckCXXBooleanCondition(Expr *CondExpr, bool IsConstexpr) { in CheckCXXBooleanCondition() argument
3973 ExprResult E = PerformContextuallyConvertToBool(CondExpr); in CheckCXXBooleanCondition()
H A DTreeTransform.h4109 ExprResult CondExpr = getDerived().TransformExpr(Expr); in TransformCondition() local
4111 if (CondExpr.isInvalid()) in TransformCondition()
4114 return getSema().ActOnCondition(nullptr, Loc, CondExpr.get(), Kind, in TransformCondition()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseStmt.cpp1260 ExprResult CondExpr = ParseExpression(); in ParseParenExprOrCondition() local
1263 if (CondExpr.isInvalid()) in ParseParenExprOrCondition()
1266 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition()
1282 ExprResult CondExpr = Actions.CreateRecoveryExpr( in ParseParenExprOrCondition() local
1285 if (!CondExpr.isInvalid()) in ParseParenExprOrCondition()
1286 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp2999 ConditionalOperator *CondExpr = new (Context) ConditionalOperator( in SynthMessageExpr() local
3003 CondExpr); in SynthMessageExpr()
3740 ConditionalOperator *CondExpr = new (Context) ConditionalOperator( in SynthesizeBlockCall() local
3743 return CondExpr; in SynthesizeBlockCall()
H A DRewriteModernObjC.cpp4573 ConditionalOperator *CondExpr = new (Context) ConditionalOperator( in SynthesizeBlockCall() local
4576 return CondExpr; in SynthesizeBlockCall()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DExprEngine.cpp2699 const Expr *CondExpr = SS->getCond()->IgnoreParenImpCasts(); in processSwitch() local
2700 if (CondExpr->getType()->getAs<EnumType>()) { in processSwitch()
/llvm-project-15.0.7/llvm/lib/MC/MCParser/
H A DMasmParser.cpp6985 const MCExpr *CondExpr; in parseDirectiveWhile() local
6987 if (parseExpression(CondExpr)) in parseDirectiveWhile()
7000 if (!CondExpr->evaluateAsAbsolute(Condition, getStreamer().getAssemblerPtr())) in parseDirectiveWhile()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DScalarEvolution.cpp6073 createNodeForSelectViaUMinSeq(ScalarEvolution *SE, const SCEV *CondExpr, in createNodeForSelectViaUMinSeq() argument
6075 assert(CondExpr->getType()->isIntegerTy(1) && in createNodeForSelectViaUMinSeq()
6094 CondExpr = SE->getNotSCEV(CondExpr); in createNodeForSelectViaUMinSeq()
6101 return SE->getAddExpr(C, SE->getUMinExpr(CondExpr, SE->getMinusSCEV(X, C), in createNodeForSelectViaUMinSeq()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h5792 Expr *CondExpr, Expr *LHSExpr, Expr *RHSExpr);
5831 Expr *CondExpr, Expr *LHSExpr,
12500 ExprResult CheckCXXBooleanCondition(Expr *CondExpr, bool IsConstexpr = false);
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp5429 FullExpressionRAII CondExpr(Info); in EvaluateStmt() local