Open llvmbot opened 10 years ago
This would also be very useful for code like this:
[motion startDeviceMotionUpdatesToQueue:queue
withHandler:^(CMDeviceMotion* devData, NSError* error) {
CMAttitude* attitude = devData.attitude;
// ...
}];
Setting ObjCBlockIndentWidth to 0 doesn't help much. And since function names are quite verbose, code starts to get squished to the right side, while a lot of space is wasted on the left.
The current style is very prone to code being squished to the right side of the available area.
e.g.
[scenario cr_add:[KIFTestStep stepToTapViewWithAccessibilityLabel:
l10n_util::GetNSString(
IDS_NAVIGATION_BAR_EDIT_BUTTON_IOS)]];
would be clearer as
[scenario cr_add:[KIFTestStep stepToTapViewWithAccessibilityLabel:
l10n_util::GetNSString(IDS_NAVIGATION_BAR_EDIT_BUTTON_IOS)]];
Extended Description
current output of clang-format -style="{ColumnLimit: 80, ContinuationIndentWidth: 4}"
desired output:
The latter output is the current style used in chromium.