-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
enabled and fixed performance-enum-size
clang-tidy warnings
#6221
Conversation
This totally throws off several premium-only checks... |
CC @danmar |
Nevermind - it only occurs in the regular version. |
I am not able to reproduce these issues locally. I assume it is related to |
Here's a reproducer: struct S {
enum class E : std::uint8_t {
E0
};
void f(S::E e) {
if (e == S::E::E0) {}
}
char a[20];
}; |
Thanks. That's very much the example I tried. I can reproduce it now on a different system. Maybe there is a Windows/Linux difference. Will check tomorrow. I filed https://trac.cppcheck.net/ticket/12564 for it. |
In the regular selfcheck we only have But there is also the following:
And with the
|
@danmar After this passes the selfcheck we need an updated premium version which includes all the related fixes so it can pass the CI. |
Reduced FP: https://trac.cppcheck.net/ticket/12588 |
All fixed, thanks. Now we just need an updated premium version. |
@danmar We need a 2.14-based premium in the CI for this to land. |
The premium CI job is currently disabled because it started to interfere with other changes so this can be merged. |
No description provided.