-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Fix some clang-tidy lints for Linux host_debug #29734
Conversation
shell/common/shell_unittests.cc
Outdated
@@ -1877,7 +1877,7 @@ TEST_F(ShellTest, CanConvertToAndFromMappings) { | |||
const size_t buffer_size = 2 << 20; | |||
|
|||
uint8_t* buffer = static_cast<uint8_t*>(::malloc(buffer_size)); | |||
ASSERT_NE(buffer, nullptr); | |||
ASSERT_NE(buffer, nullptr); // NOLINT(clang-analyzer-unix.Malloc) |
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 think assert_true would avoid the ignore
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 w nit
This pull request was opened against a branch other than master. Since Flutter pull requests should not normally be opened against branches other than master, I have changed the base to master. If this was intended, you may modify the base back to main. See the Release Process for information about how other branches get updated. Reviewers: Use caution before merging pull requests to branches other than master, unless this is an intentional hotfix/cherrypick. |
@CaseyHillers Why is this PR still blocked? |
This one also mysteriously flipped back to |
This PR adds some curly braces, some instances of
explicit
, and converts some C style casts to C++ style casts.For flutter/flutter#93576