-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Clang tidy showcase #4352
base: main
Are you sure you want to change the base?
Clang tidy showcase #4352
Conversation
@teksturi, this is excellent! How would clang-tidy be automated? Shall it be added as the last build target in CMake and make the build fail? Or is it safe for automatic fixes to be applied also? |
We should enable clang-tidy checks as part of normal CI. |
This PR is just showcase what kind of things clang-tidy could do. So I am not suggesting we take all of these checks in use. Currently not buildable as it makes mistakes with some cases. It did also found many bugs. I have to send fixes to those first before doing real clang-tidy things.
We just need to get these thing automated so they do not happened again. Note that these are only checks which clang-tidy can fix automatically. There is also bunch of good checks which can give just warning.
This was done for #4348