pvs-rules.pvsconfig 799 B

123456789101112131415161718192021
  1. // Catch2's assertion macros (src/External/Catch2/src/catch2/internal/catch_test_macro_impl.hpp) all end in
  2. // `while ((void)0, (false) && static_cast<const bool&> (!!(expression)))`: the comma operator is theirs, not ours, and it
  3. // makes V521 fire on every CHECK/REQUIRE of src/WallpaperEngine/Testing. The rule only covers those macros, a comma
  4. // operator in our own code is still reported.
  5. //-V:CHECK:521
  6. //-V:CHECK_FALSE:521
  7. //-V:CHECK_NOFAIL:521
  8. //-V:CHECK_THAT:521
  9. //-V:CHECK_NOTHROW:521
  10. //-V:CHECK_THROWS:521
  11. //-V:CHECK_THROWS_AS:521
  12. //-V:CHECK_THROWS_WITH:521
  13. //-V:CHECK_THROWS_MATCHES:521
  14. //-V:REQUIRE:521
  15. //-V:REQUIRE_FALSE:521
  16. //-V:REQUIRE_THAT:521
  17. //-V:REQUIRE_NOTHROW:521
  18. //-V:REQUIRE_THROWS:521
  19. //-V:REQUIRE_THROWS_AS:521
  20. //-V:REQUIRE_THROWS_WITH:521
  21. //-V:REQUIRE_THROWS_MATCHES:521