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

References

tools/clang/include/clang/Basic/FixedPoint.h
  147     if (Val < 0 && Val != -Val) // Cover the case when we have the min val
  148       return -(-Val >> getScale());
  148       return -(-Val >> getScale());
tools/clang/lib/AST/ExprConstant.cpp
 1762   Int = -Int;
 2514       return HandleOverflow(Info, E, -LHS.extend(LHS.getBitWidth() + 1),
 2527       RHS = -RHS;
 2560       RHS = -RHS;
12039         !HandleOverflow(Info, E, -Value.extend(Value.getBitWidth() + 1),
12042     return Success(-Value, E);
13066       Result.getComplexIntReal() = -Result.getComplexIntReal();
13067       Result.getComplexIntImag() = -Result.getComplexIntImag();
13074       Result.getComplexIntImag() = -Result.getComplexIntImag();
tools/clang/lib/Basic/FixedPoint.cpp
  180   if (Val.isSigned() && Val.isNegative() && Val != -Val) {
  181     Val = -Val;
  208     return APFixedPoint(-Val, Sema);
  216     return Val.isMinSignedValue() ? getMax(Sema) : APFixedPoint(-Val, Sema);
tools/clang/lib/Lex/PPExpressions.cpp
  438     Result.Val = -Result.Val;
tools/clang/lib/Sema/SemaChecking.cpp
13261     index = -index;
13344       if (index.isNegative()) index = -index;
tools/clang/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
 2124   llvm::APSInt Min = -Max;
tools/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp
  203                                  BV.getValue(- from));
  213       const llvm::APSInt &newFrom = BV.getValue(- to);
tools/clang/lib/StaticAnalyzer/Core/RangedConstraintManager.cpp
  197         Adjustment = -Adjustment;
tools/clang/lib/StaticAnalyzer/Core/SVals.cpp
  261   return svalBuilder.makeIntVal(-getValue());
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
  340   llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4), Min = -Max;
  351   llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4), Min = -Max;
  352   return (I <= Max) && (I >= -Max);
  362                             (-SymInt->getRHS()));
  423       ResultInt = -ResultInt;
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
  289     Value = -Value;