-
Notifications
You must be signed in to change notification settings - Fork 363
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 #389
Refactor clang-tidy #389
Conversation
Codecov Report
@@ Coverage Diff @@
## master #389 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 12 12
Lines 3565 3565
=====================================
Hits 3565 3565
Continue to review full report at Codecov.
|
I'd love to have this in 1.9. Do you have this part ready, or at least know that the errors are? |
Sure, clang-tidy even offers auto-fixes for these rather simple warnings (which are treated as errors in this PR). Here is the relevant clang-tidy output:
Should I open a separate PR for these small fixes? That would be a 5min job which I could easily do. What is the deadline for 1.9? |
The library is designed around the opposite of |
Please rebase, now the CI checks clang-tidy again (but currently only reports an error when a fix can be automatically applied - this PR should fix that). |
Thank you very much for #390! Good points about the flags, I'll follow your advice. I'll rebase and check whether CI reports errors if fixes can not be applied automatically. I'll also update the PR description once I'm clear about the remaining scope. |
f001847
to
7f73604
Compare
CI failed, test successful. I'm going to remove flag |
For flag if()
//Statement
else
//Statement construct without braces. Longer constructs require braces, see diff. Agreed? I did not yet include
I think this is a justified complaint. Should I include this check as well? |
The I think we can make this a using statement for the one |
Exactly, implemented the using-declaration. This PR is now ready for review. |
Thanks! |
This pull request
Note: this PR does by far not cover all clang-tidy flags, it is just a first reasonable set.