Skip to content

🚨 Implement modernize-use-constraints#388

Merged
bdeane-intel merged 2 commits into
intel:mainfrom
elbeno:modernize-use-constraints
Jul 6, 2026
Merged

🚨 Implement modernize-use-constraints#388
bdeane-intel merged 2 commits into
intel:mainfrom
elbeno:modernize-use-constraints

Conversation

@elbeno

@elbeno elbeno commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Problem:

  • Some code uses enable_if when requires would be clearer; this was for historical reasons (C++17 support).

Solution:

  • Use requires instead of enable_if and remove the NOLINT directives.

elbeno added 2 commits July 4, 2026 22:09
Problem:
- Some code uses `enable_if` when `requires` would be clearer; this was for
  historical reasons (C++17 support).

Solution:
- Use `requires` instead of `enable_if` and remove the NOLINT directives.
Problem:
- The `clang-tidy` checks `cppcoreguidelines-avoid-c-arrays` aliases
  `modernize-avoid-c-arrays`. Turning off one in a comment doesn't turn off
  both.

Solution:
- Use `*-avoid-c-arrays` to disable both where necessary.

Note:
- Our `.clang-tidy` file disables checks that alias other checks, but this could
  trigger without that precaution.
@bdeane-intel bdeane-intel merged commit e2217ae into intel:main Jul 6, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants