You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Starting with Catch 3.7.1, operator| for ResultDisposition::Flags triggers clang-analyzer-optin.core.EnumCastOutOfRange warning because it casts an arbitrary integer into an enum value. This results in a warning for my tests.
Expected behavior
My tests pass clang-tidy without warnings.
Describe the bug
Starting with Catch 3.7.1,
operator|
forResultDisposition::Flags
triggers clang-analyzer-optin.core.EnumCastOutOfRange warning because it casts an arbitrary integer into anenum
value. This results in a warning for my tests.Expected behavior
My tests pass
clang-tidy
without warnings.Reproduction steps
Observe the output:
Platform information:
Additional context
Catch 3.7.0 doesn't exhibit this behaviour because the
operator|
is in .cpp and can't be analysed by clang-tidy.Apparently upstream is aware of the problem with this lint, and plans to fix it. Until then, would it be possible to add a suppression rule to Catch2?
The text was updated successfully, but these errors were encountered: