| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | Warnings.cpp | 99 bool isPositive = true; in ProcessWarningOptions() local 101 isPositive = false; in ProcessWarningOptions() 108 isPositive ? diag::Severity::Warning : diag::Severity::Ignored; in ProcessWarningOptions() 114 Diags.setSuppressSystemWarnings(!isPositive); in ProcessWarningOptions() 122 if (isPositive) { in ProcessWarningOptions() 151 Diags.setWarningsAsErrors(isPositive); in ProcessWarningOptions() 157 Diags.setDiagnosticGroupWarningAsError(Specifier, isPositive); in ProcessWarningOptions() 179 Diags.setErrorsAsFatal(isPositive); in ProcessWarningOptions() 185 Diags.setDiagnosticGroupErrorAsFatal(Specifier, isPositive); in ProcessWarningOptions() 194 EmitUnknownDiagWarning(Diags, Flavor, isPositive ? "-W" : "-Wno-", in ProcessWarningOptions()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | test-after-div-zero.c | 137 int getValue(bool *isPositive); 140 bool isPositive; in foo() local 141 int x = getValue(&isPositive); in foo() 142 if (isPositive) { in foo()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/google/ |
| H A D | objc-function-naming.m | 23 static bool isPositive(int a) { return a > 0; } function 24 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: static function named 'isPositive'
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | SlicingCheck.cpp | 127 if (StateSize.isPositive()) { in check()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Boolean.h | 72 constexpr static bool isPositive() { return !isNegative(); } in isPositive() function
|
| H A D | Integral.h | 132 bool isPositive() const { return !isNegative(); }
|
| H A D | Interp.h | 760 if (!Add && Offset.isPositive() && Index < Offset) in OffsetHelper() 765 if (Add && Offset.isPositive() && Offset > MaxOffset) in OffsetHelper()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | CharUnits.h | 122 bool isPositive() const { return Quantity > 0; } in isPositive() function
|
| /llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToSPIRV/ |
| H A D | ArithmeticToSPIRV.cpp | 469 Value isPositive; in emulateSignedRemainder() local 471 isPositive = builder.create<spirv::IEqualOp>(loc, lhs, lhsAbs); in emulateSignedRemainder() 473 isPositive = builder.create<spirv::IEqualOp>(loc, rhs, rhsAbs); in emulateSignedRemainder() 475 return builder.create<spirv::SelectOp>(loc, type, isPositive, abs, absNegate); in emulateSignedRemainder()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/ |
| H A D | PolynomialApproximation.cpp | 208 bool isPositive = false) { in frexp() argument 235 Value arg0 = isPositive ? arg : builder.create<math::AbsOp>(arg); in frexp()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGClass.cpp | 1687 if (!BaseSize.isPositive()) in Emit() 1735 if (!PoisonSize.isPositive()) in Emit()
|
| H A D | MicrosoftCXXABI.cpp | 1438 assert(Adjustment.isPositive()); in adjustThisArgumentForVirtualFunctionCall() 1481 assert(StaticOffset.isPositive()); in adjustThisArgumentForVirtualFunctionCall() 1551 assert(Adjustment.isPositive()); in EmitInstanceFunctionProlog()
|
| H A D | CGDebugInfo.cpp | 4388 if (NumPaddingBytes.isPositive()) { in EmitTypeForVarWithBlocksAttr()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ASTContext.cpp | 7494 if (sz.isPositive() && type->isIntegralOrEnumerationType()) in getObjCEncodingTypeSize() 7559 assert(sz.isPositive() && "BlockExpr - Incomplete param type"); in getObjCEncodingForBlock() 7604 assert(sz.isPositive() && in getObjCEncodingForFunctionDecl() 7671 assert(sz.isPositive() && in getObjCEncodingForMethodDecl()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | vector-pcmp.ll | 9 ; Lower common integer comparisons such as 'isPositive' efficiently:
|