-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add all the performance-* clang-tidy checks #1532
Add all the performance-* clang-tidy checks #1532
Conversation
for more information, see https://pre-commit.ci
…edeli88/openPMD-api into clang_tidy_all_performance_checks
for more information, see https://pre-commit.ci
I see that a test case is failing. I will investigate |
for more information, see https://pre-commit.ci
…deli88/openPMD-api into clang_tidy_all_performance_checks
for more information, see https://pre-commit.ci
The bug should be fixed! |
…deli88/openPMD-api into clang_tidy_all_performance_checks
Currently looking through this. The checks are very useful, thank you for adding this! It seems that in some places the suggested fixes by clang-tidy started an avalanche of recursive fixes and I'm trying to undo those. (Basic pattern: A Feel free to ping either Axel or me when you need to have the CI started |
I've taken the freedom to push a commit on this branch that reverts some of the changes and tries to fix the warnings in another way. Most of these were "pass by value" turned into "pass by reference" because of:
The one thing that is a bit dangerous about clang-tidy imo is that it is very eager to change the API and ABI because of an implementation detail. This is mostly fine since those cases can mostly be handled case-by-case, but one should be aware of it. One method that seems to successfully trick clang-tidy is to define something like Let's first see what the CI now thinks of this. EDIT: I seem to have broken some things. Will investigate next week. |
7f23f9b
to
d216aad
Compare
1b05c0a
to
6aba6b8
Compare
Hey @lucafedeli88 EDIT: I forgot one thing, CI needs to run again |
Merging this now, thank you for adding this! |
This PR adds all the
performance-*
checks toclang-tidy
CI test, namely: