-
Notifications
You must be signed in to change notification settings - Fork 157
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
refactor: Clang tidy fixes #1308
Conversation
limits, but mention all. html has everything
Codecov Report
@@ Coverage Diff @@
## main #1308 +/- ##
==========================================
- Coverage 47.45% 47.44% -0.01%
==========================================
Files 375 375
Lines 19778 19779 +1
Branches 9273 9274 +1
==========================================
Hits 9385 9385
Misses 4010 4010
- Partials 6383 6384 +1
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for adding this ! Do I understand properly that the rules that have been added will now be checked by clang_tidy ?
Unrelated comment but looking at the modification I noticed in multiple place in the code we use and
instead &&
, could/should we add some option to clang_tidy to standardize this ?
Hey @Corentin-Allaire, indeed the CI should now enforce these rules. I'm not aware it's possible in clang-tidy to flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't even know that not
, and
, or
exist in C/C++. had to google to see that they are a relic of C. not sad to seem them go 😄
You mean ! sad ;) They have always been part of the standard (apparently the reason being that some weird keyboard don't have those symbols). They have ton al alternative symbole in C++ in the same style you can replace { } by <% %> if you want to mess with people :) |
This PR adds fixes for
because they're fairly easy to do, and can be problematic.
Also improves the reporting. #1306 should be merged first.