HomePhabricator

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

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.

Details

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