Home
last modified time | relevance | path

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

12

/external/javassist/src/main/javassist/compiler/ast/
DCondExpr.java24 public class CondExpr extends ASTList { class
28 public CondExpr(ASTree cond, ASTree thenp, ASTree elsep) { in CondExpr() method in CondExpr
DVisitor.java36 public void atCondExpr(CondExpr n) throws CompileError {} in atCondExpr()
/external/starlark-go/syntax/
Dsyntax.go224 func (*CondExpr) expr() {}
432 type CondExpr struct { struct
441 func (x *CondExpr) Span() (start, end Position) { argument
Dwalk.go77 case *CondExpr:
Dparse_test.go36 …`(Comprehension Body=x Clauses=((ForClause Vars=x X=(ParenExpr X=(CondExpr Cond=b True=a False=c))…
116 `(CondExpr Cond=b True=a False=c)`},
Dparse.go529 return &CondExpr{If: ifpos, Cond: cond, True: x, ElsePos: elsepos, False: else_}
/external/llvm-project/clang/lib/Sema/
DSemaStmt.cpp453 Expr *CondExpr = in ActOnCaseExpr() local
455 if (!CondExpr) in ActOnCaseExpr()
457 QualType CondType = CondExpr->getType(); in ActOnCaseExpr()
593 Expr *CondExpr = Cond.get().second; in ActOnIfStmt() local
596 !Diags.isIgnored(diag::warn_comma_operator, CondExpr->getExprLoc())) in ActOnIfStmt()
597 CommaVisitor(*this).Visit(CondExpr); in ActOnIfStmt()
600 DiagnoseEmptyStmtBody(CondExpr->getEndLoc(), thenStmt, in ActOnIfStmt()
777 Expr *CondExpr = Cond.get().second; in ActOnStartOfSwitchStmt() local
778 assert((Cond.isInvalid() || CondExpr) && "switch with no condition"); in ActOnStartOfSwitchStmt()
780 if (CondExpr && !CondExpr->isTypeDependent()) { in ActOnStartOfSwitchStmt()
[all …]
DSemaExpr.cpp8613 Expr *CondExpr, Expr *LHSExpr, in ActOnConditionalOp() argument
8619 ExprResult CondResult = CorrectDelayedTyposInExpr(CondExpr); in ActOnConditionalOp()
8634 CondExpr = CondResult.get(); in ActOnConditionalOp()
8644 commonExpr = CondExpr; in ActOnConditionalOp()
8683 LHSExpr = CondExpr = opaqueValue; in ActOnConditionalOp()
8689 ExprResult Cond = CondExpr, LHS = LHSExpr, RHS = RHSExpr; in ActOnConditionalOp()
15116 Expr *CondExpr, in ActOnChooseExpr() argument
15119 assert((CondExpr && LHSExpr && RHSExpr) && "Missing type argument(s)"); in ActOnChooseExpr()
15125 if (CondExpr->isTypeDependent() || CondExpr->isValueDependent()) { in ActOnChooseExpr()
15131 CondExpr, &condEval, diag::err_typecheck_choose_expr_requires_constant); in ActOnChooseExpr()
[all …]
/external/clang/lib/Sema/
DSemaStmt.cpp390 if (Expr *CondExpr = in ActOnCaseStmt() local
392 QualType CondType = CondExpr->getType(); in ActOnCaseStmt()
519 Expr *CondExpr = Cond.get().second; in ActOnIfStmt() local
521 CondExpr->getExprLoc())) in ActOnIfStmt()
522 CommaVisitor(*this).Visit(CondExpr); in ActOnIfStmt()
525 DiagnoseEmptyStmtBody(CondExpr->getLocEnd(), thenStmt, in ActOnIfStmt()
750 Expr *CondExpr = SS->getCond(); in ActOnFinishSwitchStmt() local
751 if (!CondExpr) return StmtError(); in ActOnFinishSwitchStmt()
753 QualType CondType = CondExpr->getType(); in ActOnFinishSwitchStmt()
755 Expr *CondExprBeforePromotion = CondExpr; in ActOnFinishSwitchStmt()
[all …]
DSemaExpr.cpp7009 Expr *CondExpr, Expr *LHSExpr, in ActOnConditionalOp() argument
7015 ExprResult CondResult = CorrectDelayedTyposInExpr(CondExpr); in ActOnConditionalOp()
7030 CondExpr = CondResult.get(); in ActOnConditionalOp()
7040 commonExpr = CondExpr; in ActOnConditionalOp()
7069 LHSExpr = CondExpr = opaqueValue; in ActOnConditionalOp()
7074 ExprResult Cond = CondExpr, LHS = LHSExpr, RHS = RHSExpr; in ActOnConditionalOp()
11889 Expr *CondExpr, in ActOnChooseExpr() argument
11892 assert((CondExpr && LHSExpr && RHSExpr) && "Missing type argument(s)"); in ActOnChooseExpr()
11899 if (CondExpr->isTypeDependent() || CondExpr->isValueDependent()) { in ActOnChooseExpr()
11906 = VerifyIntegerConstantExpression(CondExpr, &condEval, in ActOnChooseExpr()
[all …]
DSemaOpenMP.cpp4499 auto CondExpr = SemaRef.BuildBinOp( in BuildPreCond() local
4503 if (CondExpr.isUsable()) { in BuildPreCond()
4504 if (!SemaRef.Context.hasSameUnqualifiedType(CondExpr.get()->getType(), in BuildPreCond()
4506 CondExpr = SemaRef.PerformImplicitConversion( in BuildPreCond()
4507 CondExpr.get(), SemaRef.Context.BoolTy, /*Action=*/Sema::AA_Casting, in BuildPreCond()
4512 return CondExpr.isUsable() ? CondExpr.get() : Cond; in BuildPreCond()
DSemaExprCXX.cpp3118 ExprResult Sema::CheckCXXBooleanCondition(Expr *CondExpr, bool IsConstexpr) { in CheckCXXBooleanCondition() argument
3129 return (IsConstexpr && !CondExpr->isValueDependent()) in CheckCXXBooleanCondition()
3130 ? CheckConvertedConstantExpression(CondExpr, Context.BoolTy, Value, in CheckCXXBooleanCondition()
3132 : PerformContextuallyConvertToBool(CondExpr); in CheckCXXBooleanCondition()
/external/javassist/src/main/javassist/compiler/
DTypeChecker.java34 import javassist.compiler.ast.CondExpr;
308 public void atCondExpr(CondExpr expr) throws CompileError { in atCondExpr()
DParser.java26 import javassist.compiler.ast.CondExpr;
743 return new CondExpr(cond, thenExpr, elseExpr); in parseConditionalExpr()
DCodeGen.java32 import javassist.compiler.ast.CondExpr;
966 public void atCondExpr(CondExpr expr) throws CompileError { in atCondExpr()
/external/clang/lib/Parse/
DParseStmt.cpp1066 ExprResult CondExpr = ParseExpression(); in ParseParenExprOrCondition() local
1069 if (CondExpr.isInvalid()) in ParseParenExprOrCondition()
1072 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK); in ParseParenExprOrCondition()
/external/python/jinja/src/jinja2/
Dnodes.py591 class CondExpr(Expr): class
Dparser.py455 expr1 = nodes.CondExpr(expr2, expr1, expr3, lineno=lineno)
/external/llvm-project/clang/lib/Parse/
DParseStmt.cpp1191 ExprResult CondExpr = ParseExpression(); in ParseParenExprOrCondition() local
1194 if (CondExpr.isInvalid()) in ParseParenExprOrCondition()
1197 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK); in ParseParenExprOrCondition()
/external/libchrome/third_party/jinja2/
Dnodes.py584 class CondExpr(Expr): class
Dparser.py444 expr1 = nodes.CondExpr(expr2, expr1, expr3, lineno=lineno)
/external/starlark-go/resolve/
Dresolve.go641 case *syntax.CondExpr:
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp2997 ConditionalOperator *CondExpr = in SynthMessageExpr() local
3003 CondExpr); in SynthMessageExpr()
3739 ConditionalOperator *CondExpr = in SynthesizeBlockCall() local
3744 return CondExpr; in SynthesizeBlockCall()
/external/llvm-project/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp3009 ConditionalOperator *CondExpr = in SynthMessageExpr() local
3015 CondExpr); in SynthMessageExpr()
3752 ConditionalOperator *CondExpr = in SynthesizeBlockCall() local
3757 return CondExpr; in SynthesizeBlockCall()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngine.cpp1871 const Expr *CondExpr = SS->getCond()->IgnoreParenImpCasts(); in processSwitch() local
1872 if (CondExpr->getType()->getAs<EnumType>()) { in processSwitch()

12