/external/clang/lib/StaticAnalyzer/Checkers/ |
D | MallocOverflowSecurityChecker.cpp | 139 if (E->EvaluateAsInt(Result, Context)) in isIntZeroExpr() 194 if (denom->EvaluateAsInt(denomVal, Context)) in CheckAssignmentExpr()
|
D | BuiltinFunctionChecker.cpp | 86 if (CE->EvaluateAsInt(Result, C.getASTContext(), Expr::SE_NoSideEffects)) { in evalCall()
|
D | CheckSecuritySyntaxOnly.cpp | 464 if (!suffixEx->EvaluateAsInt(Result, BR.getContext())) in checkCall_mkstemp()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | SValBuilder.cpp | 318 if (E->EvaluateAsInt(Result, Ctx)) in getConstantVal()
|
D | ExprEngineC.cpp | 735 if (OOE->EvaluateAsInt(IV, getContext())) { in VisitOffsetOfExpr()
|
/external/bcc/src/cc/frontends/clang/ |
D | b_frontend_action.cc | 1130 if (I->getInit(idx)->EvaluateAsInt(res, C)) { in VisitVarDecl() 1138 if (I->getInit(idx)->EvaluateAsInt(res, C)) { in VisitVarDecl()
|
/external/clang/lib/Sema/ |
D | SemaStmtAsm.cpp | 288 if (!InputExpr->EvaluateAsInt(Result, Context)) in ActOnGCCAsmStmt()
|
D | SemaOpenMP.cpp | 4940 if (CollapseLoopCountExpr->EvaluateAsInt(Result, SemaRef.getASTContext())) in CheckOpenMPLoop() 4946 if (OrderedLoopCountExpr->EvaluateAsInt(Result, SemaRef.getASTContext())) { in CheckOpenMPLoop() 5440 Simdlen->EvaluateAsInt(SimdlenRes, S.Context); in checkSimdlenSafelenValues() 5441 Safelen->EvaluateAsInt(SafelenRes, S.Context); in checkSimdlenSafelenValues() 10375 if (!LowerBound->EvaluateAsInt(ConstLowerBound, SemaRef.getASTContext())) in CheckArrayExpressionDoesNotReferToWholeSize() 10397 if (!Length->EvaluateAsInt(ConstLength, SemaRef.getASTContext())) in CheckArrayExpressionDoesNotReferToWholeSize() 10431 if (!Length->EvaluateAsInt(ConstLength, SemaRef.getASTContext())) in CheckArrayExpressionDoesNotReferToUnitySize()
|
D | SemaChecking.cpp | 164 if (!SizeArg->EvaluateAsInt(Size, S.Context) || in SemaBuiltinMemChkCall() 165 !DstSizeArg->EvaluateAsInt(DstSize, S.Context)) in SemaBuiltinMemChkCall() 7769 if (!OriginalInit->EvaluateAsInt(Value, S.Context, Expr::SE_AllowSideEffects)) in AnalyzeBitFieldAssignment() 8320 if (E->EvaluateAsInt(Value, S.Context, Expr::SE_AllowSideEffects)) { in CheckImplicitConversion() 8352 if (E->EvaluateAsInt(Value, S.Context, Expr::SE_AllowSideEffects) && in CheckImplicitConversion() 9590 if (!IndexExpr->EvaluateAsInt(index, Context, Expr::SE_AllowSideEffects)) in CheckArrayAccess()
|
D | SemaExpr.cpp | 4309 if (LowerBound->EvaluateAsInt(LowerBoundValue, Context)) { in ActOnOMPArraySectionExpr() 4323 if (Length->EvaluateAsInt(LengthValue, Context)) { in ActOnOMPArraySectionExpr() 8039 RHS.get()->EvaluateAsInt(RHSValue, S.Context) && RHSValue == 0) in DiagnoseBadDivideOrRemainderValues() 8265 if (IndexExpr->EvaluateAsInt(index, Self.getASTContext())) { in diagnoseStringPlusInt() 8538 !RHS.get()->EvaluateAsInt(Right, S.Context)) in DiagnoseBadShiftValues() 8565 !LHS.get()->EvaluateAsInt(Left, S.Context)) in DiagnoseBadShiftValues() 9572 if (RHS.get()->EvaluateAsInt(Result, Context)) in CheckLogicalOperands()
|
D | AnalysisBasedWarnings.cpp | 1191 if (!Cond->EvaluateAsInt(Val, Ctx)) in isInLoop()
|
D | SemaCast.cpp | 2432 if (SrcExpr.get()->EvaluateAsInt(CastInt, Self.Context)) { in CheckCStyleCast()
|
D | SemaStmt.cpp | 890 HasConstantCond = CondExpr->EvaluateAsInt(ConstantCondValue, Context, in ActOnFinishSwitchStmt()
|
D | SemaDeclAttr.cpp | 2786 IdxExpr->EvaluateAsInt(Val, S.Context); in handleFormatArgAttr()
|
D | SemaDecl.cpp | 5199 !VLATy->getSizeExpr()->EvaluateAsInt(Res, Context)) in TryToFixInvalidVariablyModifiedType()
|
/external/clang/lib/Analysis/ |
D | CFG.cpp | 797 if (!Expr1->EvaluateAsInt(L1, *Context) || in checkIncorrectLogicOperator() 798 !Expr2->EvaluateAsInt(L2, *Context)) in checkIncorrectLogicOperator() 891 if (Bop->getLHS()->EvaluateAsInt(IntVal, *Context)) { in tryEvaluateBool() 896 if (Bop->getRHS()->EvaluateAsInt(IntVal, *Context)) { in tryEvaluateBool()
|
/external/clang/lib/CodeGen/ |
D | CGBuiltin.cpp | 993 if (!E->getArg(2)->EvaluateAsInt(Size, CGM.getContext()) || in EmitBuiltinExpr() 994 !E->getArg(3)->EvaluateAsInt(DstSize, CGM.getContext())) in EmitBuiltinExpr() 1017 if (!E->getArg(2)->EvaluateAsInt(Size, CGM.getContext()) || in EmitBuiltinExpr() 1018 !E->getArg(3)->EvaluateAsInt(DstSize, CGM.getContext())) in EmitBuiltinExpr() 1055 if (!E->getArg(2)->EvaluateAsInt(Size, CGM.getContext()) || in EmitBuiltinExpr() 1056 !E->getArg(3)->EvaluateAsInt(DstSize, CGM.getContext())) in EmitBuiltinExpr() 3965 if (!E->getArg(0)->EvaluateAsInt(Value, CGM.getContext())) in EmitARMBuiltinExpr()
|
D | CGStmt.cpp | 1747 if (InputExpr->EvaluateAsInt(Result, getContext())) in EmitAsmInput()
|
D | CodeGenFunction.cpp | 1170 if (!Cond->EvaluateAsInt(Int, getContext())) in ConstantFoldsToSimpleInteger()
|
D | CGExprScalar.cpp | 1116 if (E->EvaluateAsInt(Value, CGF.getContext(), Expr::SE_AllowSideEffects)) { in VisitMemberExpr() 1905 if (E->EvaluateAsInt(Value, CGF.getContext())) in VisitOffsetOfExpr()
|
D | CGOpenMPRuntime.cpp | 5119 if (!Length->EvaluateAsInt(ConstLength, CGF.getContext())) in isFinalArraySectionExpression() 6465 if (!(*SI)->EvaluateAsInt(ParamAttr.StrideOrArg, C, in emitDeclareSimdFunction()
|
/external/clang/lib/AST/ |
D | Expr.cpp | 2695 if (!Elt->EvaluateAsInt(ResultTmp, Ctx)) { in isConstantInitializer()
|
D | ExprConstant.cpp | 9172 bool Expr::EvaluateAsInt(APSInt &Result, const ASTContext &Ctx, in EvaluateAsInt() function in Expr 9765 if (!EvaluateAsInt(Value, Ctx, SE_AllowSideEffects)) in isIntegerConstantExpr()
|
/external/clang/include/clang/AST/ |
D | Expr.h | 594 bool EvaluateAsInt(llvm::APSInt &Result, const ASTContext &Ctx,
|