-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[clang-tidy] Use upper case letters for bool conversion suffix #104882
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
[clang-tidy] Use upper case letters for bool conversion suffix #104882
Conversation
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.
LGTM, maybe give a couple more days for other reviewers in case they have more comments.
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.
LGTM but with two nits
clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp
Outdated
Show resolved
Hide resolved
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.
LGTM
@da-viper I believe there's some merge conflicts to fix before being able to merge :) |
When readability-implicit-bool-conversion-check and readability-uppercase-literal-suffix-check is enabled this will cause you to apply a fix twice from (!i) -> (i == 0u) to (i == 0U) twice instead will skip the middle one
This reverts commit efb102b.
Order the release notes.
d7bc90c
to
1bf9179
Compare
rebased |
Thanks, merged! I've edited the commit message a bit to better reflect the content of the patch, as well as mark a related issue as fixed. |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/23/builds/2399 Here is the relevant piece of the build log for the reference
|
When readability-implicit-bool-conversion-check and readability-uppercase-literal-suffix-check is enabled this will cause you to apply a fix twice
from (!i) -> (i == 0u) to (i == 0U) twice instead will skip the middle one
For some reason GitHub decided to close the original pull request when I moved the commits to another branch.
Original pullrequest #102831