reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/AST/Expr.h
  614   bool EvaluateAsInt(EvalResult &Result, const ASTContext &Ctx,

References

tools/clang/lib/AST/Expr.cpp
 3223             if (!Elt->EvaluateAsInt(Result, Ctx)) {
tools/clang/lib/AST/ExprConstant.cpp
 7713     if (!E->EvaluateAsInt(ExprResult, Ctx, Expr::SE_AllowSideEffects))
tools/clang/lib/Analysis/CFG.cpp
 1073     if (!NumExpr1->EvaluateAsInt(L1Result, *Context) ||
 1074         !NumExpr2->EvaluateAsInt(L2Result, *Context))
 1155     if (!Constant->EvaluateAsInt(Result, *Context))
 1205             if (Bop->getLHS()->EvaluateAsInt(LHSResult, *Context)) {
 1212             if (Bop->getRHS()->EvaluateAsInt(RHSResult, *Context)) {
tools/clang/lib/CodeGen/CGBuiltin.cpp
 2413     if (!E->getArg(2)->EvaluateAsInt(SizeResult, CGM.getContext()) ||
 2414         !E->getArg(3)->EvaluateAsInt(DstSizeResult, CGM.getContext()))
 2439     if (!E->getArg(2)->EvaluateAsInt(SizeResult, CGM.getContext()) ||
 2440         !E->getArg(3)->EvaluateAsInt(DstSizeResult, CGM.getContext()))
 2479     if (!E->getArg(2)->EvaluateAsInt(SizeResult, CGM.getContext()) ||
 2480         !E->getArg(3)->EvaluateAsInt(DstSizeResult, CGM.getContext()))
 6020     if (!E->getArg(0)->EvaluateAsInt(Result, CGM.getContext()))
 7248     if (!E->getArg(0)->EvaluateAsInt(Result, CGM.getContext()))
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 2671         if (Size->EvaluateAsInt(Result, CGM.getContext()))
tools/clang/lib/CodeGen/CGExprScalar.cpp
 1725     if (E->EvaluateAsInt(Result, CGF.getContext(), Expr::SE_AllowSideEffects)) {
 2638   if (E->EvaluateAsInt(EVResult, CGF.getContext())) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 7308     if (!Length->EvaluateAsInt(Result, CGF.getContext()))
10738           if (!(*SI)->EvaluateAsInt(Result, C, Expr::SE_AllowSideEffects)) {
tools/clang/lib/CodeGen/CGStmt.cpp
 1866     if (InputExpr->EvaluateAsInt(Result, getContext()))
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
 2416         if (ChunkExpr->EvaluateAsInt(Result, getContext())) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 1349   if (!Cond->EvaluateAsInt(Result, getContext()))
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
 1331       if (!cast<DoStmt>(S)->getCond()->EvaluateAsInt(Result, Ctx))
tools/clang/lib/Sema/SemaCast.cpp
 2661       if (SrcExpr.get()->EvaluateAsInt(Result, Self.Context)) {
tools/clang/lib/Sema/SemaChecking.cpp
  405     if (!SizeArg->EvaluateAsInt(Result, getASTContext()))
  432   if (!UsedSizeArg->EvaluateAsInt(Result, getASTContext()))
 7054       bool LIsInt = BinOp->getLHS()->EvaluateAsInt(
 7056       bool RIsInt = BinOp->getRHS()->EvaluateAsInt(
 7083       if (ASE->getRHS()->EvaluateAsInt(IndexResult, S.Context,
10936   if (!OriginalInit->EvaluateAsInt(Result, S.Context,
11520                E->EvaluateAsInt(Result, S.Context, Expr::SE_AllowSideEffects))
11591     if (E->EvaluateAsInt(Result, S.getASTContext(),
11762           E->EvaluateAsInt(Result, S.Context, Expr::SE_AllowSideEffects)) {
11859     if (E->EvaluateAsInt(Result, S.Context, Expr::SE_AllowSideEffects,
11908     if (E->EvaluateAsInt(Result, S.Context, Expr::SE_AllowSideEffects) &&
13256   if (!IndexExpr->EvaluateAsInt(Result, Context, Expr::SE_AllowSideEffects))
tools/clang/lib/Sema/SemaDecl.cpp
 5775       !VLATy->getSizeExpr()->EvaluateAsInt(Result, Context))
tools/clang/lib/Sema/SemaExpr.cpp
 4563     if (LowerBound->EvaluateAsInt(Result, Context)) {
 4577     if (Length->EvaluateAsInt(Result, Context)) {
 8851   bool CstInt = Int->get()->EvaluateAsInt(EVResult, S.Context);
 8888   bool CstInt = Int->get()->EvaluateAsInt(EVResult, S.Context);
 9261       RHS.get()->EvaluateAsInt(RHSValue, S.Context) &&
 9643          (!IExp->EvaluateAsInt(KnownVal, Context) ||
 9722              (!RHS.get()->EvaluateAsInt(KnownVal, Context) ||
 9802       !RHS.get()->EvaluateAsInt(RHSResult, S.Context))
 9832       !LHS.get()->EvaluateAsInt(LHSResult, S.Context))
11370     if (RHS.get()->EvaluateAsInt(EVResult, Context)) {
tools/clang/lib/Sema/SemaInit.cpp
 8531         Init->EvaluateAsInt(EVResult, S.Context);
tools/clang/lib/Sema/SemaOpenMP.cpp
 6907         CollapseLoopCountExpr->EvaluateAsInt(Result, SemaRef.getASTContext())) {
 6919         OrderedLoopCountExpr->EvaluateAsInt(EVResult,
 7626     SimdlenLength->EvaluateAsInt(SimdlenResult, S.Context);
 7627     SafelenLength->EvaluateAsInt(SafelenResult, S.Context);
12999     if (!Length->EvaluateAsInt(Result, Context))
13024       if (!Length->EvaluateAsInt(Result, Context))
14555     if (!LowerBound->EvaluateAsInt(Result, SemaRef.getASTContext()))
14579   if (!Length->EvaluateAsInt(Result, SemaRef.getASTContext()))
14614   if (!Length->EvaluateAsInt(Result, SemaRef.getASTContext()))
14776         if (CurE->getIdx()->EvaluateAsInt(Result, SemaRef.getASTContext())) {
14836         if (CurE->getLength()->EvaluateAsInt(ResultR,
14845         if (CurE->getLowerBound() && CurE->getLowerBound()->EvaluateAsInt(
tools/clang/lib/Sema/SemaStmt.cpp
  968       HasConstantCond = CondExpr->EvaluateAsInt(Result, Context,
tools/clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp
  111     if (CE->EvaluateAsInt(EVResult, C.getASTContext(), Expr::SE_NoSideEffects)) {
tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
  614     if (!suffixEx->EvaluateAsInt(EVResult, BR.getContext()))
tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp
  138       if (E->EvaluateAsInt(Result, Context))
  194           if (denom->EvaluateAsInt(Result, Context)) {
tools/clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp
   90       if (CheckIfNull->IgnoreParenCasts()->EvaluateAsInt(
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
  850   if (OOE->EvaluateAsInt(Result, getContext())) {
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
  365     if (E->EvaluateAsInt(Result, Ctx))
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedWideningCastCheck.cpp
   68       if (Bop->getRHS()->EvaluateAsInt(Result, Context))
   72       if (Bop->getRHS()->EvaluateAsInt(Result, Context)) {
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
   74           if (LengthInit->EvaluateAsInt(Length, *Result.Context))
tools/clang/tools/extra/clang-tidy/bugprone/StringIntegerAssignmentCheck.cpp
  117     if (!E->EvaluateAsInt(EvalResult, Ctx, Expr::SE_AllowSideEffects))
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp
   80     if (!NumFill->EvaluateAsInt(EVResult, *Result.Context))
  101         !ByteCount->EvaluateAsInt(Value2, *Result.Context) ||
  110         FillChar->EvaluateAsInt(EVResult, *Result.Context)) {
tools/clang/tools/extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp
  104   if (Func->getArg(0)->EvaluateAsInt(EVResult, *Result.Context)) {
tools/lldb/source/Symbol/ClangASTContext.cpp
 5942                   bitfield_bit_size_expr->EvaluateAsInt(result, *ast)) {
 6002                   bitfield_bit_size_expr->EvaluateAsInt(result,