Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMallocOverflowSecurityChecker.cpp138 if (E->EvaluateAsInt(Result, Context)) in isIntZeroExpr()
196 if (denom->EvaluateAsInt(Result, Context)) { in CheckAssignmentExpr()
H A DBuiltinFunctionChecker.cpp133 if (CE->EvaluateAsInt(EVResult, C.getASTContext(), Expr::SE_NoSideEffects)) { in evalCall()
H A DNumberObjectConversionChecker.cpp90 if (CheckIfNull->IgnoreParenCasts()->EvaluateAsInt( in run()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAMDGPU.cpp74 if (!ArgExpr->EvaluateAsInt(ArgResult, getASTContext())) in CheckAMDGCNBuiltinFunctionCall()
H A DSemaConcept.cpp1294 BO->getLHS()->EvaluateAsInt(SimplifiedLHS, S.Context, in diagnoseWellFormedUnsatisfiedConstraintExpr()
1297 BO->getRHS()->EvaluateAsInt(SimplifiedRHS, S.Context, in diagnoseWellFormedUnsatisfiedConstraintExpr()
H A DSemaChecking.cpp354 AlignOp->EvaluateAsInt(AlignResult, S.Context, in BuiltinAlignment()
1186 if (!SizeArg->EvaluateAsInt(Result, getASTContext())) in checkFortifiedBuiltinMemoryFunction()
2625 TheCall->getArg(0)->EvaluateAsInt(Result, getASTContext()) && in CheckBuiltinFunctionCall()
3319 if (Arg->EvaluateAsInt(Align, Context)) { in checkCall()
5967 bool LIsInt = BinOp->getLHS()->EvaluateAsInt( in checkFormatStringExpr()
5970 bool RIsInt = BinOp->getRHS()->EvaluateAsInt( in checkFormatStringExpr()
5998 if (ASE->getRHS()->EvaluateAsInt(IndexResult, S.Context, in checkFormatStringExpr()
10262 if (!OriginalInit->EvaluateAsInt(Result, S.Context, in AnalyzeBitFieldAssignment()
10712 E->EvaluateAsInt(Result, S.Context, Expr::SE_AllowSideEffects)) in DiagnoseIntInBoolContext()
10781 if (E->EvaluateAsInt(Result, getASTContext(), Expr::SE_AllowSideEffects)) { in CheckImplicitConversion()
[all …]
H A DSemaOpenMP.cpp9589 CollapseLoopCountExpr->EvaluateAsInt(Result, SemaRef.getASTContext())) { in checkOpenMPLoop()
9601 OrderedLoopCountExpr->EvaluateAsInt(EVResult, in checkOpenMPLoop()
10316 SimdlenLength->EvaluateAsInt(SimdlenResult, S.Context); in checkSimdlenSafelenSpecified()
10317 SafelenLength->EvaluateAsInt(SafelenResult, S.Context); in checkSimdlenSafelenSpecified()
18145 if (!Length->EvaluateAsInt(Result, Context)) in checkOMPArraySectionConstantForReduction()
18170 if (!Length->EvaluateAsInt(Result, Context)) in checkOMPArraySectionConstantForReduction()
19918 Length->EvaluateAsInt(Result, getASTContext()) && in ActOnOpenMPDependClause()
20086 if (!LowerBound->EvaluateAsInt(Result, SemaRef.getASTContext())) in checkArrayExpressionDoesNotReferToWholeSize()
20110 if (!Length->EvaluateAsInt(Result, SemaRef.getASTContext())) in checkArrayExpressionDoesNotReferToWholeSize()
20146 if (!Length->EvaluateAsInt(Result, SemaRef.getASTContext())) in checkArrayExpressionDoesNotReferToUnitySize()
[all …]
H A DSemaOpenACC.cpp1544 if (!E->EvaluateAsInt(Res, Context)) in ActOnArraySectionExpr()
H A DSemaExpr.cpp9896 bool CstInt = Int->get()->EvaluateAsInt(EVResult, S.Context); in canConvertIntToOtherIntTy()
9933 bool CstInt = Int->get()->EvaluateAsInt(EVResult, S.Context); in canConvertIntTyToFloatTy()
10480 RHS.get()->EvaluateAsInt(RHSValue, S.Context) && in DiagnoseBadDivideOrRemainderValues()
10927 (!IExp->EvaluateAsInt(KnownVal, Context) || in CheckAdditionOperands()
11044 (!RHS.get()->EvaluateAsInt(KnownVal, Context) || in CheckSubtractionOperands()
11133 !RHS.get()->EvaluateAsInt(RHSResult, S.Context)) in DiagnoseBadShiftValues()
11172 !LHS.get()->EvaluateAsInt(LHSResult, S.Context)) in DiagnoseBadShiftValues()
13035 if (RHS.get()->EvaluateAsInt(EVResult, Context)) { in CheckLogicalOperands()
H A DAnalysisBasedWarnings.cpp1361 if (!cast<DoStmt>(S)->getCond()->EvaluateAsInt(Result, Ctx)) in isInLoop()
H A DSemaCast.cpp3041 if (SrcExpr.get()->EvaluateAsInt(Result, Self.Context)) { in CheckCStyleCast()
H A DSemaStmt.cpp1369 HasConstantCond = CondExpr->EvaluateAsInt(Result, Context, in ActOnFinishSwitchStmt()
H A DSemaExprObjC.cpp952 if (Boxed->EvaluateAsInt(Result, S.getASTContext(), in CheckObjCDictionaryLiteralDuplicateKeys()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp1144 if (!NumExpr1->EvaluateAsInt(L1Result, *Context) || in checkIncorrectLogicOperator()
1145 !NumExpr2->EvaluateAsInt(L2Result, *Context)) in checkIncorrectLogicOperator()
1226 if (!Constant->EvaluateAsInt(Result, *Context)) in checkIncorrectBitwiseOrOperator()
1276 if (Bop->getLHS()->EvaluateAsInt(LHSResult, *Context)) { in tryEvaluateBool()
1283 if (Bop->getRHS()->EvaluateAsInt(RHSResult, *Context)) { in tryEvaluateBool()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineC.cpp852 if (OOE->EvaluateAsInt(Result, getContext())) { in VisitOffsetOfExpr()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmt.cpp935 (ControllingExpression->EvaluateAsInt(Result, getContext()) && in checkIfLoopMustProgress()
2419 if (InputExpr->EvaluateAsInt(Result, getContext())) in EmitAsmInput()
H A DCoverageMappingGen.cpp1104 return (Cond->EvaluateAsInt(Result, CVM.getCodeGenModule().getContext())); in ConditionFoldsToBool()
H A DCGBuiltin.cpp3760 if (!E->getArg(1)->EvaluateAsInt(Result, CGM.getContext())) in EmitBuiltinExpr()
4240 if (!E->getArg(2)->EvaluateAsInt(SizeResult, CGM.getContext()) || in EmitBuiltinExpr()
4241 !E->getArg(3)->EvaluateAsInt(DstSizeResult, CGM.getContext())) in EmitBuiltinExpr()
4266 if (!E->getArg(2)->EvaluateAsInt(SizeResult, CGM.getContext()) || in EmitBuiltinExpr()
4267 !E->getArg(3)->EvaluateAsInt(DstSizeResult, CGM.getContext())) in EmitBuiltinExpr()
4316 if (!E->getArg(2)->EvaluateAsInt(SizeResult, CGM.getContext()) || in EmitBuiltinExpr()
4317 !E->getArg(3)->EvaluateAsInt(DstSizeResult, CGM.getContext())) in EmitBuiltinExpr()
8603 if (!E->getArg(0)->EvaluateAsInt(Result, CGM.getContext())) in EmitARMBuiltinExpr()
11220 if (!E->getArg(0)->EvaluateAsInt(Result, CGM.getContext())) in EmitAArch64BuiltinExpr()
11238 if (!E->getArg(0)->EvaluateAsInt(Result, CGM.getContext())) in EmitAArch64BuiltinExpr()
H A DCodeGenFunction.cpp1708 if (!Cond->EvaluateAsInt(Result, getContext())) in ConstantFoldsToSimpleInteger()
H A DCGExprScalar.cpp1941 if (E->EvaluateAsInt(Result, CGF.getContext(), Expr::SE_AllowSideEffects)) { in VisitMemberExpr()
3226 if (E->EvaluateAsInt(EVResult, CGF.getContext())) { in VisitOffsetOfExpr()
H A DCGOpenMPRuntime.cpp6820 if (!Length->EvaluateAsInt(Result, CGF.getContext())) in isFinalArraySectionExpression()
11062 if (!(*SI)->EvaluateAsInt(Result, C, Expr::SE_AllowSideEffects)) { in emitDeclareSimdFunction()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp8980 if (!E->EvaluateAsInt(ExprResult, Ctx, Expr::SE_AllowSideEffects)) in getBytesReturnedByAllocSizeCall()
15937 static bool EvaluateAsInt(const Expr *E, Expr::EvalResult &ExprResult, in EvaluateAsInt() function
15996 bool Expr::EvaluateAsInt(EvalResult &Result, const ASTContext &Ctx, in EvaluateAsInt() function in Expr
16004 return ::EvaluateAsInt(this, Result, Ctx, AllowSideEffects, Info); in EvaluateAsInt()
16842 if (!::EvaluateAsInt(this, ExprResult, Ctx, SE_AllowSideEffects, Info)) in getIntegerConstantExpr()
H A DExpr.cpp3415 if (!Elt->EvaluateAsInt(Result, Ctx)) { in isConstantInitializer()
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp5692 bitfield_bit_size_expr->EvaluateAsInt(result, *ast)) { in GetObjCFieldAtIndex()
5752 bitfield_bit_size_expr->EvaluateAsInt(result, in GetFieldAtIndex()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExpr.h676 bool EvaluateAsInt(EvalResult &Result, const ASTContext &Ctx,

12