-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TEMPLATE_TEST_CASE breaks clang-tidy check modernize-avoid-c-arrays #2095
Comments
ugh, that's just clang-tidy being stupid and not understanding the "initialize discarded array to do something over an arg pack" idiom. I'll suppress it when I get around to it, alternatively PRs are welcome. 😉 |
Do you want it to be changed to |
|
I have taken a stab at it. |
* Suppress clang-tidy *-avoid-c-arrays for TEMPLATE_TEST_CASE * Made globalRegistrar `const` to avoid `cppcoreguidelines-avoid-non-const-global-variables` Fixes #2095
Describe the bug
TEMPLATE_TEST_CASE
uses a C array in its definition, which breaks the clang-tidy checkmodernize-avoid-c-arrays
.Expected behavior
clang-tidy shouldn't report anything.
Reproduction steps
Platform information:
The text was updated successfully, but these errors were encountered: