/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | SuspiciousMemsetUsageCheck.cpp | 88 if (!NumFill->EvaluateAsInt(EVResult, *Result.Context)) in check() 109 !ByteCount->EvaluateAsInt(Value2, *Result.Context) || in check() 118 FillChar->EvaluateAsInt(EVResult, *Result.Context)) { in check()
|
D | SignedCharMisuseCheck.cpp | 142 SignedCastExpression->getSubExpr()->EvaluateAsInt(EVResult, in check() 156 UnSignedCastExpression->getSubExpr()->EvaluateAsInt(EVResult, in check()
|
D | MisplacedWideningCastCheck.cpp | 67 if (Bop->getRHS()->EvaluateAsInt(Result, Context)) in getMaxCalculationWidth() 71 if (Bop->getRHS()->EvaluateAsInt(Result, Context)) { in getMaxCalculationWidth()
|
D | StringIntegerAssignmentCheck.cpp | 114 if (!E->EvaluateAsInt(EvalResult, Ctx, Expr::SE_AllowSideEffects)) in isCharValuedConstant()
|
D | NotNullTerminatedResultCheck.cpp | 75 if (LengthInit->EvaluateAsInt(Length, *Result.Context)) in getLength()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cert/ |
D | ProperlySeededRandomGeneratorCheck.cpp | 106 if (Func->getArg(0)->EvaluateAsInt(EVResult, *Result.Context)) { in checkSeed()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | BuiltinFunctionChecker.cpp | 86 if (CE->EvaluateAsInt(Result, C.getASTContext(), Expr::SE_NoSideEffects)) { in evalCall()
|
D | MallocOverflowSecurityChecker.cpp | 139 if (E->EvaluateAsInt(Result, Context)) in isIntZeroExpr() 194 if (denom->EvaluateAsInt(denomVal, Context)) in CheckAssignmentExpr()
|
D | CheckSecuritySyntaxOnly.cpp | 464 if (!suffixEx->EvaluateAsInt(Result, BR.getContext())) in checkCall_mkstemp()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | MallocOverflowSecurityChecker.cpp | 138 if (E->EvaluateAsInt(Result, Context)) in isIntZeroExpr() 194 if (denom->EvaluateAsInt(Result, Context)) { in CheckAssignmentExpr()
|
D | BuiltinFunctionChecker.cpp | 114 if (CE->EvaluateAsInt(EVResult, C.getASTContext(), Expr::SE_NoSideEffects)) { in evalCall()
|
D | NumberObjectConversionChecker.cpp | 90 if (CheckIfNull->IgnoreParenCasts()->EvaluateAsInt( in run()
|
D | CheckSecuritySyntaxOnly.cpp | 633 if (!suffixEx->EvaluateAsInt(EVResult, BR.getContext())) in checkCall_mkstemp()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaConcept.cpp | 553 BO->getLHS()->EvaluateAsInt(SimplifiedLHS, S.Context); in diagnoseWellFormedUnsatisfiedConstraintExpr() 554 BO->getRHS()->EvaluateAsInt(SimplifiedRHS, S.Context); in diagnoseWellFormedUnsatisfiedConstraintExpr()
|
D | SemaChecking.cpp | 243 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/ |
D | SValBuilder.cpp | 318 if (E->EvaluateAsInt(Result, Ctx)) in getConstantVal()
|
D | ExprEngineC.cpp | 735 if (OOE->EvaluateAsInt(IV, getContext())) { in VisitOffsetOfExpr()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | SValBuilder.cpp | 374 if (E->EvaluateAsInt(Result, Ctx)) in getConstantVal()
|
D | ExprEngineC.cpp | 864 if (OOE->EvaluateAsInt(Result, getContext())) { in VisitOffsetOfExpr()
|
/external/bcc/src/cc/frontends/clang/ |
D | b_frontend_action.cc | 1089 if (I->getInit(idx)->EvaluateAsInt(res, C)) { in getFieldValue() 1094 if (I->getInit(idx)->EvaluateAsInt(res, C)) { in getFieldValue()
|
/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()
|
/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/llvm-project/clang/lib/Analysis/ |
D | CFG.cpp | 1072 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/ |
D | CGStmt.cpp | 951 } else if (!S.getCond()->EvaluateAsInt(Result, getContext())) { in EmitForStmt() 2071 if (InputExpr->EvaluateAsInt(Result, getContext())) in EmitAsmInput()
|