HomePhabricator

[clang-format/ObjC] Put ObjC method arguments into one line when they fit

Authored by jolesiak on Jul 9 2018, 12:08 AM.

Description

[clang-format/ObjC] Put ObjC method arguments into one line when they fit

Reapply D47195:
Currently BreakBeforeParameter is set to true everytime message receiver spans multiple lines, e.g.:

[[object block:^{
  return 42;
}] aa:42 bb:42];

will be formatted:

[[object block:^{
  return 42;
}] aa:42
   bb:42];

even though arguments could fit into one line. This change fixes this behavior.

llvm-svn: 336521

Details

Committed
jolesiakJul 9 2018, 12:08 AM
Parents
rG6b475b730b1c: [clang-format/ObjC] Improve split priorities for ObjC methods
Branches
Unknown
Tags
Unknown