[go: nahoru, domu]

Skip to content
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

Merged
merged 1 commit into from
Nov 18, 2021

Conversation

zanderso
Copy link
Member
@zanderso zanderso commented Nov 13, 2021

This PR adds some curly braces, some instances of explicit, and converts some C style casts to C++ style casts.

For flutter/flutter#93576

@@ -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)
Copy link
Contributor

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

Copy link
Contributor
@dnfield dnfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm w nit

@CaseyHillers CaseyHillers changed the base branch from master to main November 15, 2021 17:35
@flutter-dashboard
Copy link

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.

@flutter-dashboard flutter-dashboard bot changed the base branch from main to master November 15, 2021 17:35
@CaseyHillers CaseyHillers changed the base branch from master to main November 15, 2021 18:11
@zanderso
Copy link
Member Author

@CaseyHillers Why is this PR still blocked?

@jmagman
Copy link
Member
jmagman commented Nov 16, 2021

This one also mysteriously flipped back to master.

@jmagman jmagman changed the base branch from master to main November 16, 2021 04:30
@chinmaygarde chinmaygarde added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Nov 18, 2021
@fluttergithubbot fluttergithubbot merged commit eac4cd2 into flutter:main Nov 18, 2021
@zanderso zanderso deleted the fix-lints branch November 19, 2021 05:58
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes embedder Related to the embedder API platform-android platform-linux waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
5 participants