-
Notifications
You must be signed in to change notification settings - Fork 7
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
WIP - (clang-tidy): Modernize code using clang-tidy #227
Conversation
34a8ccf
to
b2b2812
Compare
Codecov Report
@@ Coverage Diff @@
## develop #227 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 44 44
Lines 874 874
=========================================
Hits 874 874 Continue to review full report at Codecov.
|
b2b2812
to
2b5ecb8
Compare
2b5ecb8
to
066f414
Compare
066f414
to
f99b999
Compare
Code Climate has analyzed commit f99b999 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed! |
7cc15f2
to
e0e1dd3
Compare
e0e1dd3
to
4f6425e
Compare
4f6425e
to
e8f43cb
Compare
When running clang-tidy from the command line, it was not able to find std headers such as chrono, cstddef, etc. This is because the compile database did not have all the include path known to the compiler (arm-none-eabi-g{cc,++}) and therefore clang-tidy was falling back to clang's own includes Fix from: https://gitlab.kitware.com/cmake/cmake/-/issues/20912#note_795673
The target can be used to run clang-tidy on changed .h and .cpp files in the current branch
Add: - 10, 100, 1000 - hours/minutes - 60, 3600 - baudrates - 9600, 115200
In particular, the following rules were breaking LogKit because of macros: - cppcoreguidelines-pro-bounds-array-to-pointer-decay - cppcoreguidelines-pro-bounds-pointer-arithmetic - cppcoreguidelines-pro-type-vararg We should find a way to fix this and still use the rules.
e8f43cb
to
e8702a8
Compare
9011349
to
7f4b8d3
Compare
Kudos, SonarCloud Quality Gate passed!
|
Following #226, this PR is a wip showing how clang-tidy can improve code readability and good practices