Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Fix some clang-tidy lints for Linux host_debug#29734

Merged
fluttergithubbot merged 1 commit intoflutter:mainfrom
zanderso:fix-lints
Nov 18, 2021
Merged

Fix some clang-tidy lints for Linux host_debug#29734
fluttergithubbot merged 1 commit intoflutter:mainfrom
zanderso:fix-lints

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


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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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

Development

Successfully merging this pull request may close these issues.

5 participants