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 | 884e34114c0178a6bb8ae6f85c27f90e489536c8 (patch) | |
| tree | 1fe599a2724f97ad255e861503a95b5caef2b2d5 /lib/CodeGen/CGExpr.cpp | |
| parent | 83b85b67053dd9e1232333f4aae9ddde7b14b94f (diff) | |
| download | clang-884e34114c0178a6bb8ae6f85c27f90e489536c8.tar.gz clang-884e34114c0178a6bb8ae6f85c27f90e489536c8.tar.bz2 clang-884e34114c0178a6bb8ae6f85c27f90e489536c8.tar.xz | |
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]);
}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
