-
Notifications
You must be signed in to change notification settings - Fork 946
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-format} Format the components. #6347
{clang-format} Format the components. #6347
Conversation
This is a follow-up to #6027
This PR affects multiple components. |
@"Irony", | ||
@"Gastropub", | ||
@"Truffaut" | ||
@"Truffaut", @"Farm-to-table", @"XOXO", @"Chillwave", @"Fanny", @"Pack", |
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.
is this the right way?
@@ -124,7 +112,7 @@ + (void)applySemanticColorScheme:(nonnull id<MDCColorScheming>)colorScheme | |||
|
|||
+ (void)resetUIControlStatesForChipTheming:(nonnull MDCChipView *)chipView { | |||
NSUInteger maximumStateValue = UIControlStateNormal | UIControlStateSelected | | |||
UIControlStateHighlighted | UIControlStateDisabled; | |||
UIControlStateHighlighted | UIControlStateDisabled; |
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.
is this correct?
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.
Looks like it matches how we've done logical/arithmetic operators across multiple lines in other places.
UIColor *customBackgroundColor = | ||
[_delegate collectionView:_collectionView cellBackgroundColorAtIndexPath:attr.indexPath]; | ||
UIColor *customBackgroundColor = [_delegate collectionView:_collectionView | ||
cellBackgroundColorAtIndexPath:attr.indexPath]; |
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.
is this correct?
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.
This is aligning the colons, so it makes sense if the method invocation starts on the preceding line.
components/AnimationTiming/src/CAMediaTimingFunction+MDCAnimationTiming.m
Outdated
Show resolved
Hide resolved
This PR affects multiple components. |
This PR affects multiple components. |
Ready for re-review |
This is a follow-up to #6027 ``` find components \( -name "*.h" -or -name "*.m" \) | xargs clang-format -i ```
This is a follow-up to #6027