Skip to content

Investigate resolving clang-tidy enum cast warning with boost::regex_match #46

@coderabbitai

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions