Issue Description
When using boost::regex_match in our codebase, we're encountering a clang-tidy warning:
clang-analyzer-optin.core.EnumCastOutOfRange
Currently, this warning is being suppressed using a NOLINT comment in taskfiles/boost/test_boost.cpp:
// NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
return boost::regex_match(std::string{cMatch}, e);
Action Items
- Investigate the root cause of this warning with
boost::regex_match
- Determine if there's a proper fix that doesn't require suppressing the warning
- If the warning is a false positive with Boost, document this finding
- If a fix is possible, implement it and remove the NOLINT directive
References