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 code smells reported by chrome's clang plugin #6833

Merged
merged 11 commits into from
Nov 13, 2018

Conversation

goderbauer
Copy link
Member

Fixes the issues listed in https://www.chromium.org/developers/coding-style/chromium-style-checker-errors for the android and ios release targets. The issues were identified by compiling the engine with the chrome-style clang plugin.

Fixing these issues is supposed to prevent code size bloat. For our code base I am only seeing a rather disappointing reduction of 317 Bytes for libflutter.so (uncompressed).

Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

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

lgtm with nits.

@@ -8,6 +8,10 @@

namespace blink {

Settings::Settings() = default;
Copy link
Member

Choose a reason for hiding this comment

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

We usually add an empty line between method methods. Here and elsewhere in this commit.

Copy link
Member Author

@goderbauer goderbauer Nov 13, 2018

Choose a reason for hiding this comment

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

Fixed. I was expecting that clang-format would add those spaces for me. I guess it's not that smart...

@goderbauer goderbauer merged commit 09ef73f into flutter:master Nov 13, 2018
@goderbauer goderbauer deleted the fixChromeStyle branch November 13, 2018 03:59
box->DestroyValue();
delete box;
}

public:
ThreadLocal() : ThreadLocal(nullptr) {}
Copy link
Member

Choose a reason for hiding this comment

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

This change didn't seem to take into account #else branch further down at line 112

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, sorry about that. Will have a fix first thing in the morning.

Windows Engine Bot is also failing because of this. Did you see a failure anywhere else?

goderbauer added a commit to goderbauer/engine that referenced this pull request Nov 13, 2018
goderbauer added a commit that referenced this pull request Nov 13, 2018
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Nov 14, 2018
flutter/engine@4959b71...520746e

git log 4959b71..520746e --no-merges --oneline
520746e Roll src/third_party/skia 14b9f537c5ee..1e00aebd9a45 (5 commits) (flutter/engine#6848)
97b6293 Add missing pragma directive. (flutter/engine#6847)
0d02877 Avoid a never-disappearing splash screen if the engine came from somewhere else on iOS (flutter/engine#6834)
71ade82 Roll src/third_party/skia abde1adc5f0c..14b9f537c5ee (9 commits) (flutter/engine#6846)
4e89aa2 Roll src/third_party/skia 60b6bc3c2950..abde1adc5f0c (6 commits) (flutter/engine#6845)
6a132f8 Fix Windows Engine Bot (flutter/engine#6844)
e6d6f18 - Roll engine to version f9ebf2129732fd2b606286fdf58e500384b8a0bc (flutter/engine#6839)
889f41f Roll src/third_party/skia 9e3109c99ea5..60b6bc3c2950 (1 commits) (flutter/engine#6843)
a68e214 Roll src/third_party/skia 1e1ba0e0176f..9e3109c99ea5 (1 commits) (flutter/engine#6840)
1174193 Roll src/third_party/skia f04fb3cacbad..1e1ba0e0176f (2 commits) (flutter/engine#6838)
09ef73f Fix code smells reported by chrome's clang plugin (flutter/engine#6833)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants