[git cl format] Formatting of ObjC methods w/o text before : formats poorly. |
|||||
Issue descriptionSome iOS API have method signatures without text before :. For example, CAMediaTimingFunction initWithControlPoints:::: (see https://developer.apple.com/reference/quartzcore/camediatimingfunction/1522235-initwithcontrolpoints) Human format would look like this: [[CAMediaTimingFunction alloc] initWithControlPoints:0.0f :0.84f :0.13f :0.99f] git cl format generated this: return [[CAMediaTimingFunction alloc] initWithControlPoints: 0.0f: 0.84f: 0.13f:0.99f];
,
Feb 9 2017
I know about this bug, but I had no idea that there are actually Cocoa APIs that use this obscure spelling (a new api even). What were they thinking! Thanks for the report.
,
Feb 9 2017
Yes, that's a very silly looking API :(
,
Dec 22 2017
,
Dec 22 2017
Moved all Infra>Client>iOS bugs to Infra>Client>Chrome + OS-iOS.
,
Aug 10
,
Nov 27
return [[CAMediaTimingFunction alloc] initWithControlPoints:
0.0f:
0.0f:
0.2f:1.0f];
Is now:
return [[CAMediaTimingFunction alloc]
initWithControlPoints:
0.0f:0.84f:0.13f:0.99f];
I'm not sure if this is fixed.
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by pkl@chromium.org
, Feb 9 2017