diff options
author | Daniel Jasper <djasper@google.com> | 2013-11-21 01:46:33 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-11-21 01:46:33 +0000 |
commit | a78d7d45022522f9bb04ee2ac801222f93a48e86 (patch) | |
tree | f6b2dfd2ee1647d731de8463e7c511f01cc3778d /clang/lib/Sema/SemaDeclAttr.cpp | |
parent | 29b8fc4da9abc1c599899c3cd90dfb88fcd71562 (diff) | |
download | bcm5719-llvm-a78d7d45022522f9bb04ee2ac801222f93a48e86.tar.gz bcm5719-llvm-a78d7d45022522f9bb04ee2ac801222f93a48e86.zip |
clang-format: Improve formatting of ObjC method expressions.
In particular, make breaking after a parameter's ":" more of a last
resort choice as it significantly affects the readability gained by
aligning the parameters.
Before (in Chromium style - which doesn't allow bin-packing):
{
popup_window_.reset([[RenderWidgetPopupWindow alloc]
initWithContentRect:
NSMakeRect(
origin_global.x, origin_global.y, pos.width(), pos.height())
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO]);
}
After:
{
popup_window_.reset([[RenderWidgetPopupWindow alloc]
initWithContentRect:NSMakeRect(origin_global.x,
origin_global.y,
pos.width(),
pos.height())
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO]);
}
llvm-svn: 195301
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
0 files changed, 0 insertions, 0 deletions