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

References

include/llvm/ADT/APSInt.h
  339 inline bool operator==(int64_t V1, const APSInt &V2) { return V2 == V1; }
tools/clang/lib/AST/ASTDiagnostic.cpp
 1743         OS << ((FromInt == 0) ? "false" : "true");
 1787         OS << ((Val == 0) ? "false" : "true");
tools/clang/lib/AST/ExprConstant.cpp
 2505     if (RHS == 0) {
13028       if (RHS.getComplexIntReal() == 0 && RHS.getComplexIntImag() == 0)
13028       if (RHS.getComplexIntReal() == 0 && RHS.getComplexIntImag() == 0)
14080           if (REval == 0)
14111             (Exp->getLHS()->EvaluateKnownConstInt(Ctx) == 0))
14197     if (Exp->getCond()->EvaluateKnownConstInt(Ctx) == 0)
tools/clang/lib/Analysis/CFG.cpp
 1158     if (Result.Val.getInt() == 0)
tools/clang/lib/CodeGen/CGBuiltin.cpp
 7253     std::string Reg = Value == 31 ? "sp" : "x" + Value.toString(10);
tools/clang/lib/Lex/PPExpressions.cpp
  568     if (Operator == tok::ampamp && LHS.Val == 0)
  572     else if (Operator == tok::question && LHS.Val == 0)
  776       bool AfterColonLive = ValueLive && LHS.Val == 0;
tools/clang/lib/Sema/SemaAttr.cpp
  303         !(Val == 0 || Val.isPowerOf2()) ||
tools/clang/lib/Sema/SemaChecking.cpp
 3600   if (Result == 4/*ROUND_CUR_DIRECTION*/ ||
 3601       Result == 8/*ROUND_NO_EXC*/ ||
 3602       (!HasRC && Result == 12/*ROUND_CUR_DIRECTION|ROUND_NO_EXC*/) ||
 3706   if (Result == 1 || Result == 2 || Result == 4 || Result == 8)
 3706   if (Result == 1 || Result == 2 || Result == 4 || Result == 8)
 3706   if (Result == 1 || Result == 2 || Result == 4 || Result == 8)
 3706   if (Result == 1 || Result == 2 || Result == 4 || Result == 8)
10757     unsigned Diag = (isKnownToHaveUnsignedValue(OriginalOther) && Value == 0)
11015   if (FieldWidth == 1 && Value == 1)
11167   } else if (IntegerValue == 0) {
13589             (RHS && RHS->isIntegerConstantExpr(Value, Context) && Value == 0);
tools/clang/lib/Sema/SemaDecl.cpp
15806   if (Value == 0 && FieldName)
tools/clang/lib/Sema/SemaExpr.cpp
 9262       RHSValue.Val.getInt() == 0)
tools/clang/lib/Sema/SemaInit.cpp
 5484     (Initializer->EvaluateKnownConstInt(S.getASTContext()) == 0);
tools/clang/lib/Sema/SemaOverload.cpp
 1875              From->EvaluateKnownConstInt(S.getASTContext()) == 0) {
 1880              (From->EvaluateKnownConstInt(S.getASTContext()) == 0)) {
tools/clang/lib/Sema/SemaType.cpp
 2267     if (ConstVal == 0) {
tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp
   61   return (op == BO_Mul) && (Val == 0);
  139         return Result.Val.getInt() == 0;
tools/clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp
   93         if (Result == 0) {
tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp
  215       if (V2 == 0) // Avoid division by zero
  220       if (V2 == 0) // Avoid division by zero
tools/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp
  392     return *Value == 0;
  532              (*negV->getConcreteValue() == 0)) ||
tools/clang/lib/StaticAnalyzer/Core/RangedConstraintManager.cpp
  131   if (Int == 0 && (Op == BO_EQ || Op == BO_NE)) {
tools/clang/lib/StaticAnalyzer/Core/SVals.cpp
  228     return LV->getValue() == I;
  230     return NV->getValue() == I;
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
  230     if (RHS == 0)
  232     else if (RHS == 1)
  237     if (RHS == 0)
  240     else if (RHS == 1)
  245     if (RHS == 0)
  248     else if (RHS == 1)
  257     if (RHS == 0)
  262     if (RHS == 0)
  269     if (RHS == 0)
  425     } else if (ResultInt == 0) {
  652         if (LHSValue == 0)
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp
  112       if (Value1 == 0 || Value1.isNegative())
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
  785           (LhsValue == 0 && Opcode == BO_NE))
  788       else if ((LhsValue == 0 && Opcode == BO_EQ) ||
  826   return (Opcode == BO_And || Opcode == BO_AndAssign) && Value == 0;
  831   return (Opcode == BO_Or || Opcode == BO_OrAssign) && ~Value == 0;
  835   return ((Opcode == BO_Or || Opcode == BO_OrAssign) && Value == 0) ||
  836          ((Opcode == BO_And || Opcode == BO_AndAssign) && ~Value == 0);
tools/lldb/source/Symbol/ClangASTContext.cpp
 9180         if (enum_pos->getInitVal() == enum_value) {
utils/unittest/googletest/include/gtest/gtest.h
 1392   if (lhs == rhs) {