Home
last modified time | relevance | path

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

/external/clang/lib/StaticAnalyzer/Core/
DSimpleSValBuilder.cpp243 case BO_Add: in MakeSymIntVal()
404 case BO_Add: in evalBinOpNN()
499 newRHS = BasicVals.evalAPSInt(BO_Add, first, second); in evalBinOpNN()
886 case BO_Add: in evalBinOpLN()
907 assert(op == BO_Add || op == BO_Sub); in evalBinOpLN()
914 assert(op == BO_Add || op == BO_Sub); in evalBinOpLN()
915 index = (op == BO_Add) ? rhs : evalMinus(rhs); in evalBinOpLN()
DBasicValueFactory.cpp166 case BO_Add: in evalAPSInt()
DSimpleConstraintManager.cpp233 if (Op == BO_Add || Op == BO_Sub) { in computeAdjustment()
DProgramState.cpp326 SVal newIdx = svalBuilder.evalBinOpNN(this, BO_Add, in assumeInBound()
333 svalBuilder.evalBinOpNN(this, BO_Add, UpperBound.castAs<NonLoc>(), in assumeInBound()
DExprEngineC.cpp112 case BO_AddAssign: Op = BO_Add; break; in VisitBinaryOperator()
944 BinaryOperator::Opcode Op = U->isIncrementOp() ? BO_Add : BO_Sub; in VisitIncrementDecrementOperator()
DSValBuilder.cpp380 assert(op == BO_Add); in evalBinOp()
/external/clang/lib/StaticAnalyzer/Checkers/
DPointerArithChecker.cpp36 if (B->getOpcode() != BO_Sub && B->getOpcode() != BO_Add) in checkPreStmt()
DMallocOverflowSecurityChecker.cpp87 if (opc != BO_Mul && opc != BO_Add && opc != BO_Sub && opc != BO_Shl) in CheckMallocArgument()
97 } else if ((opc == BO_Add || opc == BO_Mul) && in CheckMallocArgument()
DCStringChecker.cpp392 SVal BufEnd = svalBuilder.evalBinOpLN(state, BO_Add, *BufLoc, in CheckBufferAccess()
412 SVal BufEnd = svalBuilder.evalBinOpLN(state, BO_Add, *BufLoc, in CheckBufferAccess()
508 SVal FirstEnd = svalBuilder.evalBinOpLN(state, BO_Add, in CheckOverlap()
861 svalBuilder.evalBinOpLN(state, BO_Add, *BufLoc, LastOffset, PtrTy); in IsFirstBufInBound()
1058 SVal lastElement = C.getSValBuilder().evalBinOpLN(state, BO_Add, in evalCopyCommon()
1501 maxLastElementIndex = svalBuilder.evalBinOpNN(state, BO_Add, in evalStrcpyCommon()
1609 finalStrLength = svalBuilder.evalBinOpNN(state, BO_Add, *srcStrLengthNL, in evalStrcpyCommon()
1670 SVal maxLastElement = svalBuilder.evalBinOpLN(state, BO_Add, *dstRegVal, in evalStrcpyCommon()
1681 SVal lastElement = svalBuilder.evalBinOpLN(state, BO_Add, *dstRegVal, in evalStrcpyCommon()
DArrayBoundCheckerV2.cpp249 return svalBuilder.evalBinOpNN(state, BO_Add, x.castAs<NonLoc>(), in addValue()
/external/clang/include/clang/AST/
DOperationKinds.h311 BO_Add, BO_Sub, // [C99 6.5.6] Additive operators. enumerator
DStmtVisitor.h52 case BO_Add: DISPATCH(BinAdd, BinaryOperator); in Visit()
DExpr.h3041 static bool isAdditiveOp(Opcode Opc) { return Opc == BO_Add || Opc==BO_Sub; } in isAdditiveOp()
/external/clang/lib/Sema/
DSemaOpenMP.cpp3026 bool IsAdd = BO->getOpcode() == BO_Add; in CheckIncRHS()
3224 Diff = SemaRef.BuildBinOp(S, DefaultLoc, BO_Add, Diff.get(), NewStep.get()); in BuildNumIterations()
3594 Update = SemaRef.BuildBinOp(S, Loc, (Subtract ? BO_Sub : BO_Add), in BuildCounterUpdate()
3810 CurScope, SaveLoc, BO_Add, SaveRef.get(), in CheckOpenMPLoop()
3891 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, IV.get(), in CheckOpenMPLoop()
3906 NextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, LB.get(), ST.get()); in CheckOpenMPLoop()
3916 NextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, UB.get(), ST.get()); in CheckOpenMPLoop()
4820 Op = AtomicUnaryOp->isIncrementOp() ? BO_Add : BO_Sub; in checkStatement()
6982 BOK = BO_Add; in ActOnOpenMPReductionClause()
7295 case BO_Add: in ActOnOpenMPReductionClause()
[all …]
DSemaTemplateVariadic.cpp1011 case BO_Add: in BuildEmptyCXXFoldExpr()
DSemaPseudoObject.cpp512 result = S.BuildBinOp(Sc, opcLoc, BO_Add, result.get(), one); in buildIncDecOperation()
DSemaExpr.cpp7934 if (Opc == BO_Add) { in CheckAdditionOperands()
10113 case tok::plus: Opc = BO_Add; break; in ConvertTokenKindToBinaryOpcode()
10342 case BO_Add: in CreateBuiltinBinOp()
10589 if (Bop->getOpcode() == BO_Add || Bop->getOpcode() == BO_Sub) { in DiagnoseAdditionInShift()
DSemaChecking.cpp5753 if (op != BO_Add && op != BO_Sub) in EvalAddr()
6398 case BO_Add: in GetExprRange()
/external/clang/lib/CodeGen/
DCGExprScalar.cpp959 case BO_Add: CheckName = "add_overflow"; break; in EmitBinOpCheck()
1619 BinOp.Opcode = IsInc ? BO_Add : BO_Sub; in createBinOpInfoFromIncDec()
2327 case BO_Add: in EmitOverflowCheckedBinOp()
2554 assert((op.Opcode == BO_Add || op.Opcode == BO_AddAssign || in tryEmitFMulAdd()
3534 case BO_Add: in EmitCompoundAssignmentLValue()
DCGStmtOpenMP.cpp2217 case BO_Add: in emitOMPAtomicRMW()
/external/clang/lib/AST/
DExprConstant.cpp1736 case BO_Add: in handleIntIntBinOp()
1834 case BO_Add: in handleFloatFloatBinOp()
2926 (Opcode != BO_Add && Opcode != BO_Sub)) { in foundPointer()
4925 if (E->getOpcode() != BO_Add && in VisitBinaryOperator()
7090 if (E->getOpcode() == BO_Add) in VisitBinOp()
7098 if (E->getOpcode() == BO_Add && in VisitBinOp()
8375 case BO_Add: in VisitBinaryOperator()
9246 case BO_Add: in CheckICE()
DStmtProfile.cpp906 BinaryOp = BO_Add; in DecodeOperatorCall()
DExpr.cpp1825 case BO_Add: return "+"; in getOpcodeStr()
1861 case OO_Plus: return BO_Add; in getOverloadedOpcode()
/external/clang/lib/Analysis/
DThreadSafetyCommon.cpp501 case BO_Add: return translateBinOp(til::BOP_Add, BO, Ctx); in translateBinaryOperator()
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp7624 new (Context) BinaryOperator(castExpr, DRE, BO_Add, in RewriteObjCIvarRefExpr()