Open hg-zt opened 1 year ago
REQUIRE from doctest is currently not supported
REQUIRE
TEST_CASE("foo") { REQUIRE(opt.has_value()); use(*opt); // will warn "Unchecked access to optional value" }
It would be better if it could be configured
@llvm/issue-subscribers-clang-tidy
I have the same issue. When using doctest, REQUIRE is used often to check if an optional has a value. I think the same would happen with google test EXPECT.
REQUIRE
from doctest is currently not supportedIt would be better if it could be configured