Home
last modified time | relevance | path

Searched refs:isAdditiveOp (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DPointerArithChecker.cpp320 if (!BOp->isAdditiveOp() && OpKind != BO_AddAssign && OpKind != BO_SubAssign) in checkPreStmt()
331 reportPointerArithMisuse(Lhs, C, !BOp->isAdditiveOp()); in checkPreStmt()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp201 } else if (BinaryOperator::isAdditiveOp(op) && RHS.isNegative()) { in MakeSymIntVal()
264 if (BinaryOperator::isAdditiveOp(SymInt->getOpcode())) in decomposeSymbol()
296 else if (BinaryOperator::isAdditiveOp(Op)) in doRearrangeUnchecked()
375 } else if (BinaryOperator::isAdditiveOp(Op)) { in tryRearrange()
636 if (BinaryOperator::isAdditiveOp(op)) { in evalBinOpNN()
638 if (BinaryOperator::isAdditiveOp(lop)) { in evalBinOpNN()
H A DExprEngineC.cpp81 if (B->isAdditiveOp()) { in VisitBinaryOperator()
H A DBugReporterVisitors.cpp75 if (B->isAdditiveOp() && B->getType()->isPointerType()) { in peelOffPointerArithmetic()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DStringIntegerAssignmentCheck.cpp58 if (BinOp->isAdditiveOp() || BinOp->isBitwiseOp()) in isLikelyCharExpression()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DNonConstParameterCheck.cpp186 if (B->isAdditiveOp()) { in markCanNotBeConst()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DExpr.h3892 static bool isAdditiveOp(Opcode Opc) { return Opc == BO_Add || Opc==BO_Sub; } in isAdditiveOp() function
3893 bool isAdditiveOp() const { return isAdditiveOp(getOpcode()); } in isAdditiveOp() function
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaChecking.cpp8776 if (BinOp->isAdditiveOp()) { in checkFormatStringExpr()
11530 if (!BO || !BO->isAdditiveOp()) in ignoreLiteralAdditions()
H A DSemaOpenMP.cpp8258 if (BO->isAdditiveOp()) { in checkAndSetIncRHS()
11319 AtomicInnerBinOp->isAdditiveOp() || AtomicInnerBinOp->isShiftOp() || in checkBinaryOperation()
H A DSemaDecl.cpp18767 if (!BO->isAdditiveOp()) in ValidDuplicateEnum()
H A DSemaExpr.cpp8941 return BinaryOperator::isAdditiveOp(Opc) || in IsArithmeticOp()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp12641 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp()