Home
last modified time | relevance | path

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

123

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousMemsetUsageCheck.cpp88 if (!NumFill->EvaluateAsInt(EVResult, *Result.Context)) in check()
109 !ByteCount->EvaluateAsInt(Value2, *Result.Context) || in check()
118 FillChar->EvaluateAsInt(EVResult, *Result.Context)) { in check()
DSignedCharMisuseCheck.cpp142 SignedCastExpression->getSubExpr()->EvaluateAsInt(EVResult, in check()
156 UnSignedCastExpression->getSubExpr()->EvaluateAsInt(EVResult, in check()
DMisplacedWideningCastCheck.cpp67 if (Bop->getRHS()->EvaluateAsInt(Result, Context)) in getMaxCalculationWidth()
71 if (Bop->getRHS()->EvaluateAsInt(Result, Context)) { in getMaxCalculationWidth()
DStringIntegerAssignmentCheck.cpp114 if (!E->EvaluateAsInt(EvalResult, Ctx, Expr::SE_AllowSideEffects)) in isCharValuedConstant()
DNotNullTerminatedResultCheck.cpp75 if (LengthInit->EvaluateAsInt(Length, *Result.Context)) in getLength()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DProperlySeededRandomGeneratorCheck.cpp106 if (Func->getArg(0)->EvaluateAsInt(EVResult, *Result.Context)) { in checkSeed()
/external/clang/lib/StaticAnalyzer/Checkers/
DBuiltinFunctionChecker.cpp86 if (CE->EvaluateAsInt(Result, C.getASTContext(), Expr::SE_NoSideEffects)) { in evalCall()
DMallocOverflowSecurityChecker.cpp139 if (E->EvaluateAsInt(Result, Context)) in isIntZeroExpr()
194 if (denom->EvaluateAsInt(denomVal, Context)) in CheckAssignmentExpr()
DCheckSecuritySyntaxOnly.cpp464 if (!suffixEx->EvaluateAsInt(Result, BR.getContext())) in checkCall_mkstemp()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp138 if (E->EvaluateAsInt(Result, Context)) in isIntZeroExpr()
194 if (denom->EvaluateAsInt(Result, Context)) { in CheckAssignmentExpr()
DBuiltinFunctionChecker.cpp114 if (CE->EvaluateAsInt(EVResult, C.getASTContext(), Expr::SE_NoSideEffects)) { in evalCall()
DNumberObjectConversionChecker.cpp90 if (CheckIfNull->IgnoreParenCasts()->EvaluateAsInt( in run()
DCheckSecuritySyntaxOnly.cpp633 if (!suffixEx->EvaluateAsInt(EVResult, BR.getContext())) in checkCall_mkstemp()
/external/llvm-project/clang/lib/Sema/
DSemaConcept.cpp553 BO->getLHS()->EvaluateAsInt(SimplifiedLHS, S.Context); in diagnoseWellFormedUnsatisfiedConstraintExpr()
554 BO->getRHS()->EvaluateAsInt(SimplifiedRHS, S.Context); in diagnoseWellFormedUnsatisfiedConstraintExpr()
DSemaChecking.cpp243 AlignOp->EvaluateAsInt(AlignResult, S.Context, in SemaBuiltinAlignment()
727 if (!SizeArg->EvaluateAsInt(Result, getASTContext())) in checkFortifiedBuiltinMemoryFunction()
753 if (!UsedSizeArg->EvaluateAsInt(Result, getASTContext())) in checkFortifiedBuiltinMemoryFunction()
1944 if (TheCall->getArg(0)->EvaluateAsInt(Result, getASTContext()) && in CheckBuiltinFunctionCall()
3353 if (!ArgExpr->EvaluateAsInt(ArgResult, Context)) in CheckAMDGCNBuiltinFunctionCall()
4507 if (Arg->EvaluateAsInt(Align, Context)) { in checkCall()
7325 bool LIsInt = BinOp->getLHS()->EvaluateAsInt( in checkFormatStringExpr()
7327 bool RIsInt = BinOp->getRHS()->EvaluateAsInt( in checkFormatStringExpr()
7354 if (ASE->getRHS()->EvaluateAsInt(IndexResult, S.Context, in checkFormatStringExpr()
11400 if (!OriginalInit->EvaluateAsInt(Result, S.Context, in AnalyzeBitFieldAssignment()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DSValBuilder.cpp318 if (E->EvaluateAsInt(Result, Ctx)) in getConstantVal()
DExprEngineC.cpp735 if (OOE->EvaluateAsInt(IV, getContext())) { in VisitOffsetOfExpr()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DSValBuilder.cpp374 if (E->EvaluateAsInt(Result, Ctx)) in getConstantVal()
DExprEngineC.cpp864 if (OOE->EvaluateAsInt(Result, getContext())) { in VisitOffsetOfExpr()
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc1089 if (I->getInit(idx)->EvaluateAsInt(res, C)) { in getFieldValue()
1094 if (I->getInit(idx)->EvaluateAsInt(res, C)) { in getFieldValue()
/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()
/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/llvm-project/clang/lib/Analysis/
DCFG.cpp1072 if (!NumExpr1->EvaluateAsInt(L1Result, *Context) || in checkIncorrectLogicOperator()
1073 !NumExpr2->EvaluateAsInt(L2Result, *Context)) in checkIncorrectLogicOperator()
1154 if (!Constant->EvaluateAsInt(Result, *Context)) in checkIncorrectBitwiseOrOperator()
1204 if (Bop->getLHS()->EvaluateAsInt(LHSResult, *Context)) { in tryEvaluateBool()
1211 if (Bop->getRHS()->EvaluateAsInt(RHSResult, *Context)) { in tryEvaluateBool()
/external/llvm-project/clang/lib/CodeGen/
DCGStmt.cpp951 } else if (!S.getCond()->EvaluateAsInt(Result, getContext())) { in EmitForStmt()
2071 if (InputExpr->EvaluateAsInt(Result, getContext())) in EmitAsmInput()

123