Home
last modified time | relevance | path

Searched refs:EvaluateAsInt (Results 1 – 24 of 24) sorted by relevance

/external/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp139 if (E->EvaluateAsInt(Result, Context)) in isIntZeroExpr()
194 if (denom->EvaluateAsInt(denomVal, Context)) in CheckAssignmentExpr()
DBuiltinFunctionChecker.cpp86 if (CE->EvaluateAsInt(Result, C.getASTContext(), Expr::SE_NoSideEffects)) { in evalCall()
DCheckSecuritySyntaxOnly.cpp464 if (!suffixEx->EvaluateAsInt(Result, BR.getContext())) in checkCall_mkstemp()
/external/clang/lib/StaticAnalyzer/Core/
DSValBuilder.cpp318 if (E->EvaluateAsInt(Result, Ctx)) in getConstantVal()
DExprEngineC.cpp735 if (OOE->EvaluateAsInt(IV, getContext())) { in VisitOffsetOfExpr()
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc1130 if (I->getInit(idx)->EvaluateAsInt(res, C)) { in VisitVarDecl()
1138 if (I->getInit(idx)->EvaluateAsInt(res, C)) { in VisitVarDecl()
/external/clang/lib/Sema/
DSemaStmtAsm.cpp288 if (!InputExpr->EvaluateAsInt(Result, Context)) in ActOnGCCAsmStmt()
DSemaOpenMP.cpp4940 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()
DSemaChecking.cpp164 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()
DSemaExpr.cpp4309 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()
DAnalysisBasedWarnings.cpp1191 if (!Cond->EvaluateAsInt(Val, Ctx)) in isInLoop()
DSemaCast.cpp2432 if (SrcExpr.get()->EvaluateAsInt(CastInt, Self.Context)) { in CheckCStyleCast()
DSemaStmt.cpp890 HasConstantCond = CondExpr->EvaluateAsInt(ConstantCondValue, Context, in ActOnFinishSwitchStmt()
DSemaDeclAttr.cpp2786 IdxExpr->EvaluateAsInt(Val, S.Context); in handleFormatArgAttr()
DSemaDecl.cpp5199 !VLATy->getSizeExpr()->EvaluateAsInt(Res, Context)) in TryToFixInvalidVariablyModifiedType()
/external/clang/lib/Analysis/
DCFG.cpp797 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/
DCGBuiltin.cpp993 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()
DCGStmt.cpp1747 if (InputExpr->EvaluateAsInt(Result, getContext())) in EmitAsmInput()
DCodeGenFunction.cpp1170 if (!Cond->EvaluateAsInt(Int, getContext())) in ConstantFoldsToSimpleInteger()
DCGExprScalar.cpp1116 if (E->EvaluateAsInt(Value, CGF.getContext(), Expr::SE_AllowSideEffects)) { in VisitMemberExpr()
1905 if (E->EvaluateAsInt(Value, CGF.getContext())) in VisitOffsetOfExpr()
DCGOpenMPRuntime.cpp5119 if (!Length->EvaluateAsInt(ConstLength, CGF.getContext())) in isFinalArraySectionExpression()
6465 if (!(*SI)->EvaluateAsInt(ParamAttr.StrideOrArg, C, in emitDeclareSimdFunction()
/external/clang/lib/AST/
DExpr.cpp2695 if (!Elt->EvaluateAsInt(ResultTmp, Ctx)) { in isConstantInitializer()
DExprConstant.cpp9172 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/
DExpr.h594 bool EvaluateAsInt(llvm::APSInt &Result, const ASTContext &Ctx,