Home
last modified time | relevance | path

Searched refs:Bop (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp1342 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(S)) { in tryEvaluateBool() local
1343 if (Bop->isLogicalOp() || Bop->isEqualityOp()) { in tryEvaluateBool()
1355 switch (Bop->getOpcode()) { in tryEvaluateBool()
1364 if (Bop->getLHS()->EvaluateAsInt(LHSResult, *Context)) { in tryEvaluateBool()
1371 if (Bop->getRHS()->EvaluateAsInt(RHSResult, *Context)) { in tryEvaluateBool()
1388 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(E)) { in evaluateAsBooleanConditionNoCache() local
1389 if (Bop->isLogicalOp()) { in evaluateAsBooleanConditionNoCache()
1390 TryResult LHS = tryEvaluateBool(Bop->getLHS()); in evaluateAsBooleanConditionNoCache()
1394 if (LHS.isTrue() == (Bop->getOpcode() == BO_LOr)) in evaluateAsBooleanConditionNoCache()
1397 TryResult RHS = tryEvaluateBool(Bop->getRHS()); in evaluateAsBooleanConditionNoCache()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp15285 BinaryOperator *Bop) { in EmitDiagnosticForLogicalAndInLogicalOr() argument
15286 assert(Bop->getOpcode() == BO_LAnd); in EmitDiagnosticForLogicalAndInLogicalOr()
15287 Self.Diag(Bop->getOperatorLoc(), diag::warn_logical_and_in_logical_or) in EmitDiagnosticForLogicalAndInLogicalOr()
15288 << Bop->getSourceRange() << OpLoc; in EmitDiagnosticForLogicalAndInLogicalOr()
15289 SuggestParentheses(Self, Bop->getOperatorLoc(), in EmitDiagnosticForLogicalAndInLogicalOr()
15291 << Bop->getOpcodeStr(), in EmitDiagnosticForLogicalAndInLogicalOr()
15292 Bop->getSourceRange()); in EmitDiagnosticForLogicalAndInLogicalOr()
15298 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(LHSExpr)) { in DiagnoseLogicalAndInLogicalOrLHS() local
15299 if (Bop->getOpcode() == BO_LAnd) { in DiagnoseLogicalAndInLogicalOrLHS()
15302 if (!isa<StringLiteral>(Bop->getLHS()->IgnoreParenImpCasts())) in DiagnoseLogicalAndInLogicalOrLHS()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp14292 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(job.E)) { in process() local
14293 if (shouldEnqueue(Bop)) { in process()
14295 enqueue(Bop->getLHS()); in process()
14306 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local
14308 if (!VisitBinOpLHSOnly(Result, Bop, SuppressRHSDiags)) { in process()
14316 enqueue(Bop->getRHS()); in process()
14321 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local
14324 Result.Failed = !VisitBinOp(job.LHSResult, RHS, Bop, Result.Val); in process()