-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Misc clang-tidy auto fixes #23445
Misc clang-tidy auto fixes #23445
Conversation
…-init,readability-redundant-string-cstr on linux-x64-tests-clang
…-init,readability-redundant-string-cstr on linux-x64-all-clusters-clang
…-init,readability-redundant-string-cstr on linux-x64-chip-tool-clang
PR #23445: Size comparison from 7aadb28 to 2cbad1d Increases (1 build for qpg)
Decreases (2 builds for bl702)
Full report (7 builds for bl602, bl702, mbed, qpg)
|
PR #23445: Size comparison from 7aadb28 to 1e078f7 Increases (6 builds for bl702, qpg, telink)
Decreases (10 builds for bl702, cc13x2_26x2, esp32, linux, psoc6)
Full report (40 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
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.
This seems fine, but can we also enable those clang-tidy checks in CI so this does not regress?
Updated .clang-tidy file |
PR #23445: Size comparison from 7aadb28 to 2dfed3a Increases (7 builds for bl702, cyw30739, esp32, qpg, telink)
Decreases (10 builds for bl602, bl702, esp32, linux, psoc6)
Full report (33 builds for bl602, bl702, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
9f87add
to
c30cb7a
Compare
PR #23445: Size comparison from 706e9bb to 046638a Increases (10 builds for bl602, bl702, cc13x2_26x2, esp32, qpg, telink)
Decreases (10 builds for bl702, esp32, linux, nrfconnect, psoc6, telink)
Full report (40 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
* Apply readability-redundant-control-flow,readability-redundant-string-init,readability-redundant-string-cstr on linux-x64-tests-clang * Apply readability-redundant-control-flow,readability-redundant-string-init,readability-redundant-string-cstr on linux-x64-all-clusters-clang * Apply readability-redundant-control-flow,readability-redundant-string-init,readability-redundant-string-cstr on linux-x64-chip-tool-clang * Apply modernize-use-bool-literals * apply performance-for-range-copy * apply readability-const-return-type * Fix compile * Fix compile * Added clang tidy checks as default and re-sorted the list * Fix 2 more items found by clang-tidy during CI * Mass-replace while(1) with while(true)
* Apply readability-redundant-control-flow,readability-redundant-string-init,readability-redundant-string-cstr on linux-x64-tests-clang * Apply readability-redundant-control-flow,readability-redundant-string-init,readability-redundant-string-cstr on linux-x64-all-clusters-clang * Apply readability-redundant-control-flow,readability-redundant-string-init,readability-redundant-string-cstr on linux-x64-chip-tool-clang * Apply modernize-use-bool-literals * apply performance-for-range-copy * apply readability-const-return-type * Fix compile * Fix compile * Added clang tidy checks as default and re-sorted the list * Fix 2 more items found by clang-tidy during CI * Mass-replace while(1) with while(true)
This applies:
Most changes are small, so packed all these into one PR. Generally ran like: