Searched refs:Bop (Results 1 – 4 of 4) sorted by relevance
| /freebsd-11-stable/contrib/llvm-project/clang/lib/ARCMigrate/ |
| HD | TransRetainReleaseDealloc.cpp | 225 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(S)) { in isPlusOneAssignToVar() local 226 return (RefD == getReferencedDecl(Bop->getLHS())) && isPlusOneAssign(Bop); in isPlusOneAssignToVar()
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/ |
| HD | CFG.cpp | 1184 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(S)) { in tryEvaluateBool() local 1185 if (Bop->isLogicalOp() || Bop->isEqualityOp()) { in tryEvaluateBool() 1197 switch (Bop->getOpcode()) { in tryEvaluateBool() 1206 if (Bop->getLHS()->EvaluateAsInt(LHSResult, *Context)) { in tryEvaluateBool() 1213 if (Bop->getRHS()->EvaluateAsInt(RHSResult, *Context)) { in tryEvaluateBool() 1230 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(E)) { in evaluateAsBooleanConditionNoCache() local 1231 if (Bop->isLogicalOp()) { in evaluateAsBooleanConditionNoCache() 1232 TryResult LHS = tryEvaluateBool(Bop->getLHS()); in evaluateAsBooleanConditionNoCache() 1236 if (LHS.isTrue() == (Bop->getOpcode() == BO_LOr)) in evaluateAsBooleanConditionNoCache() 1239 TryResult RHS = tryEvaluateBool(Bop->getRHS()); in evaluateAsBooleanConditionNoCache() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/ |
| HD | SemaExpr.cpp | 13247 BinaryOperator *Bop) { in EmitDiagnosticForLogicalAndInLogicalOr() argument 13248 assert(Bop->getOpcode() == BO_LAnd); in EmitDiagnosticForLogicalAndInLogicalOr() 13249 Self.Diag(Bop->getOperatorLoc(), diag::warn_logical_and_in_logical_or) in EmitDiagnosticForLogicalAndInLogicalOr() 13250 << Bop->getSourceRange() << OpLoc; in EmitDiagnosticForLogicalAndInLogicalOr() 13251 SuggestParentheses(Self, Bop->getOperatorLoc(), in EmitDiagnosticForLogicalAndInLogicalOr() 13253 << Bop->getOpcodeStr(), in EmitDiagnosticForLogicalAndInLogicalOr() 13254 Bop->getSourceRange()); in EmitDiagnosticForLogicalAndInLogicalOr() 13276 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(LHSExpr)) { in DiagnoseLogicalAndInLogicalOrLHS() local 13277 if (Bop->getOpcode() == BO_LAnd) { in DiagnoseLogicalAndInLogicalOrLHS() 13282 if (!EvaluatesAsTrue(S, Bop->getLHS())) in DiagnoseLogicalAndInLogicalOrLHS() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/AST/ |
| HD | ExprConstant.cpp | 11631 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(job.E)) { in process() local 11632 if (shouldEnqueue(Bop)) { in process() 11634 enqueue(Bop->getLHS()); in process() 11645 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local 11647 if (!VisitBinOpLHSOnly(Result, Bop, SuppressRHSDiags)) { in process() 11655 enqueue(Bop->getRHS()); in process() 11660 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local 11663 Result.Failed = !VisitBinOp(job.LHSResult, RHS, Bop, Result.Val); in process()
|