Home
last modified time | relevance | path

Searched refs:IsPositive (Results 1 – 6 of 6) sorted by relevance

/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/
H A DWarnings.cpp207 bool IsPositive = !Opt.startswith("no-"); in ProcessWarningOptions() local
208 if (!IsPositive) Opt = Opt.substr(3); in ProcessWarningOptions()
210 auto Severity = IsPositive ? diag::Severity::Remark in ProcessWarningOptions()
224 EmitUnknownDiagWarning(Diags, Flavor, IsPositive ? "-R" : "-Rno-", in ProcessWarningOptions()
228 IsPositive ? diag::Severity::Remark in ProcessWarningOptions()
/freebsd-13.1/contrib/googletest/googlemock/docs/
H A DDesignDoc.md273 MATCHER(IsPositive) { return arg > 0; }
276 you can use `IsPositive()` as a matcher that matches a value iff it is
/freebsd-13.1/contrib/googletest/googletest/docs/
H A Dfaq.md370 bool IsPositive(int n) {
374 bool IsPositive(double x) {
382 EXPECT_PRED1(IsPositive, 5);
388 EXPECT_PRED1(static_cast<bool (*)(int)>(IsPositive), 5);
392 of the function pointer for the `int`-version of `IsPositive()`.)
/freebsd-13.1/contrib/googletest/googletest/test/
H A Dgtest_unittest.cc779 static bool IsPositive(int n) { return n > 0; } in IsPositive() function
783 EXPECT_EQ(0, CountIf(v, IsPositive)); // Works for an empty container. in TEST()
787 EXPECT_EQ(0, CountIf(v, IsPositive)); // Works when no value satisfies. in TEST()
792 EXPECT_EQ(2, CountIf(v, IsPositive)); in TEST()
2369 bool IsPositive(double x) { in IsPositive() function
2387 EXPECT_PRED1((bool (*)(int))(IsPositive), 5); // NOLINT in TEST()
2388 ASSERT_PRED1((bool (*)(double))(IsPositive), 6.0); // NOLINT in TEST()
/freebsd-13.1/contrib/googletest/googlemock/test/
H A Dgmock-matchers_test.cc2918 int IsPositive(double x) { in IsPositive() function
2946 Matcher<double> m = Truly(IsPositive); in TEST()
2983 Matcher<double> m = Truly(IsPositive); in TEST()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp43112 bool IsPositive[2] = {false, false}; in canReduceVMulWidth() local
43117 IsPositive[i] = DAG.SignBitIsZero(Opd); in canReduceVMulWidth()
43120 bool AllPositive = IsPositive[0] && IsPositive[1]; in canReduceVMulWidth()