|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ADT/APSInt.h 53 bool isNonNegative() const { return !isNegative(); }
320 if (I1.isNegative())
324 if (I2.isNegative())
tools/clang/lib/AST/ExprConstant.cpp 2512 if (RHS.isNegative() && RHS.isAllOnesValue() &&
2523 else if (RHS.isSigned() && RHS.isNegative()) {
2542 if (LHS.isNegative())
2556 else if (RHS.isSigned() && RHS.isNegative()) {
3995 bool WasNegative = Value.isNegative();
3999 if (!WasNegative && Value.isNegative() && E->canOverflow()) {
4006 if (WasNegative && !Value.isNegative() && E->canOverflow()) {
7716 if (Into.isNegative() || !Into.isIntN(BitsInSizeT))
8532 if (ArrayBound.isSigned() && ArrayBound.isNegative()) {
tools/clang/lib/AST/ItaniumMangle.cpp 1047 if (Value.isSigned() && Value.isNegative()) {
tools/clang/lib/Basic/FixedPoint.cpp 43 NewVal = NewVal.isNegative() ? Mask : ~Mask;
50 if (!DstSema.isSigned() && NewVal.isSigned() && NewVal.isNegative()) {
180 if (Val.isSigned() && Val.isNegative() && Val != -Val) {
238 *Overflow = Result.isNegative() || Result.ugt(DstMax);
tools/clang/lib/Lex/PPExpressions.cpp 320 if (!Literal.isUnsigned && Result.Val.isNegative()) {
639 if (!LHS.isUnsigned() && LHS.Val.isNegative())
644 if (!RHS.isUnsigned() && RHS.Val.isNegative())
tools/clang/lib/Sema/SemaChecking.cpp 6272 if (Value.isNegative())
7032 if (Offset.isNegative() || Offset > StrE->getLength()) {
10158 if (value.isSigned() && value.isNegative())
10996 if (!Value.isSigned() || Value.isNegative())
13269 if (index.isUnsigned() || !index.isNegative()) {
13344 if (index.isNegative()) index = -index;
tools/clang/lib/Sema/SemaDecl.cpp 5781 if (Res.isSigned() && Res.isNegative()) {
15809 if (Value.isSigned() && Value.isNegative()) {
tools/clang/lib/Sema/SemaDeclAttr.cpp 263 if (StrictlyUnsigned && I.isSigned() && I.isNegative()) {
2649 if (Idx.isSigned() && Idx.isNegative()) {
2670 if ((Idx.isSigned() && Idx.isNegative()) || nullPos > 1) {
tools/clang/lib/Sema/SemaExpr.cpp 4567 if (LowerBoundValue.isNegative()) {
4581 if (LengthValue.isNegative()) {
8861 ? (Result.isNegative() ? Result.getMinSignedBits()
9806 if (Right.isNegative()) {
9838 if (Left.isNegative() && !S.getLangOpts().isSignedOverflowDefined() &&
tools/clang/lib/Sema/SemaExprCXX.cpp 2007 if (Value.isSigned() && Value.isNegative()) {
5315 if (Value.isSigned() && Value.isNegative()) {
tools/clang/lib/Sema/SemaInit.cpp 3118 if (Value.isSigned() && Value.isNegative())
tools/clang/lib/Sema/SemaOpenMP.cpp 5503 IsConstant && Result.isSigned() && (Subtract != Result.isNegative());
5505 IsConstant && Result.isSigned() && (Subtract == Result.isNegative());
13911 if (IsConstant && !Result.isNegative() && !Result.isStrictlyPositive())
tools/clang/lib/Sema/SemaOverload.cpp 443 if (InitializerValue.isSigned() && InitializerValue.isNegative())
tools/clang/lib/Sema/SemaTemplate.cpp 6699 && (OldValue.isSigned() && OldValue.isNegative())) {
tools/clang/lib/Sema/SemaTemplateDeduction.cpp 123 if ((Y.isSigned() && Y.isNegative()) || (X.isSigned() && X.isNegative()))
123 if ((Y.isSigned() && Y.isNegative()) || (X.isSigned() && X.isNegative()))
tools/clang/lib/Sema/SemaType.cpp 2258 if (ConstVal.isSigned() && ConstVal.isNegative()) {
5906 if (addrSpace.isNegative()) {
tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp 618 if (Result.isNegative())
tools/clang/lib/StaticAnalyzer/Core/APSIntType.cpp 20 Value.isSigned() && Value.isNegative())
44 if (Value.isSigned() && Value.isNegative())
tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp 234 if (V2.isSigned() && V2.isNegative())
243 if (V1.isSigned() && V1.isNegative())
257 if (V2.isSigned() && V2.isNegative())
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp 112 if (Value1 == 0 || Value1.isNegative())
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp 113 if (Index.isSigned() && Index.isNegative()) {
unittests/ADT/APSIntTest.cpp 172 EXPECT_FALSE(False.isNegative());
176 EXPECT_TRUE(True.isNegative());
180 EXPECT_FALSE(CharMin.isNegative());
184 EXPECT_FALSE(CharSmall.isNegative());
188 EXPECT_FALSE(CharBoundaryUnder.isNegative());
192 EXPECT_TRUE(CharBoundaryOver.isNegative());
196 EXPECT_TRUE(CharLarge.isNegative());
200 EXPECT_TRUE(CharMax.isNegative());
215 EXPECT_FALSE(False.isNegative());
219 EXPECT_FALSE(True.isNegative());
223 EXPECT_FALSE(CharMin.isNegative());
227 EXPECT_FALSE(CharSmall.isNegative());
231 EXPECT_FALSE(CharBoundaryUnder.isNegative());
235 EXPECT_FALSE(CharBoundaryOver.isNegative());
239 EXPECT_FALSE(CharLarge.isNegative());
243 EXPECT_FALSE(CharMax.isNegative());