Searched refs:Bop (Results 1 – 5 of 5) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | MisplacedWideningCastCheck.cpp | 57 if (const auto *Bop = dyn_cast<BinaryOperator>(E)) { in getMaxCalculationWidth() local 58 unsigned LHSWidth = getMaxCalculationWidth(Context, Bop->getLHS()); in getMaxCalculationWidth() 59 unsigned RHSWidth = getMaxCalculationWidth(Context, Bop->getRHS()); in getMaxCalculationWidth() 60 if (Bop->getOpcode() == BO_Mul) in getMaxCalculationWidth() 62 if (Bop->getOpcode() == BO_Add) in getMaxCalculationWidth() 64 if (Bop->getOpcode() == BO_Rem) { in getMaxCalculationWidth() 66 if (Bop->getRHS()->EvaluateAsInt(Result, Context)) in getMaxCalculationWidth() 68 } else if (Bop->getOpcode() == BO_Shl) { in getMaxCalculationWidth() 70 if (Bop->getRHS()->EvaluateAsInt(Result, Context)) { in getMaxCalculationWidth()
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransRetainReleaseDealloc.cpp | 225 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(S)) { in isPlusOneAssignToVar() local 226 return (RefD == getReferencedDecl(Bop->getLHS())) && isPlusOneAssign(Bop); in isPlusOneAssignToVar()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | CFG.cpp | 1187 if (Bop->isLogicalOp() || Bop->isEqualityOp()) { in tryEvaluateBool() 1199 switch (Bop->getOpcode()) { in tryEvaluateBool() 1233 if (Bop->isLogicalOp()) { in evaluateAsBooleanConditionNoCache() 1234 TryResult LHS = tryEvaluateBool(Bop->getLHS()); in evaluateAsBooleanConditionNoCache() 1238 if (LHS.isTrue() == (Bop->getOpcode() == BO_LOr)) in evaluateAsBooleanConditionNoCache() 1241 TryResult RHS = tryEvaluateBool(Bop->getRHS()); in evaluateAsBooleanConditionNoCache() 1243 if (Bop->getOpcode() == BO_LOr) in evaluateAsBooleanConditionNoCache() 1249 TryResult RHS = tryEvaluateBool(Bop->getRHS()); in evaluateAsBooleanConditionNoCache() 1263 } else if (Bop->isEqualityOp()) { in evaluateAsBooleanConditionNoCache() 1267 } else if (Bop->isRelationalOp()) { in evaluateAsBooleanConditionNoCache() [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaExpr.cpp | 15157 assert(Bop->getOpcode() == BO_LAnd); in EmitDiagnosticForLogicalAndInLogicalOr() 15159 << Bop->getSourceRange() << OpLoc; in EmitDiagnosticForLogicalAndInLogicalOr() 15162 << Bop->getOpcodeStr(), in EmitDiagnosticForLogicalAndInLogicalOr() 15163 Bop->getSourceRange()); in EmitDiagnosticForLogicalAndInLogicalOr() 15186 if (Bop->getOpcode() == BO_LAnd) { in DiagnoseLogicalAndInLogicalOrLHS() 15208 if (Bop->getOpcode() == BO_LAnd) { in DiagnoseLogicalAndInLogicalOrRHS() 15225 if (Bop->isBitwiseOp() && Bop->getOpcode() < Opc) { in DiagnoseBitwiseOpInBitwiseOp() 15231 << Bop->getOpcodeStr(), in DiagnoseBitwiseOpInBitwiseOp() 15232 Bop->getSourceRange()); in DiagnoseBitwiseOpInBitwiseOp() 15240 if (Bop->getOpcode() == BO_Add || Bop->getOpcode() == BO_Sub) { in DiagnoseAdditionInShift() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 12696 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(job.E)) { in process() local 12697 if (shouldEnqueue(Bop)) { in process() 12699 enqueue(Bop->getLHS()); in process() 12710 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local 12712 if (!VisitBinOpLHSOnly(Result, Bop, SuppressRHSDiags)) { in process() 12720 enqueue(Bop->getRHS()); in process() 12725 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local 12728 Result.Failed = !VisitBinOp(job.LHSResult, RHS, Bop, Result.Val); in process()
|