[swift-dev] Using git-clang-format in the Swift compiler code base.
atrick at apple.com
Thu Jan 26 11:14:27 CST 2017
> On Jan 26, 2017, at 9:11 AM, Ben Langmuir <blangmuir at apple.com> wrote:
>> ** Option 1: Add a simple configuration option to swift/.clang-format:
>> 1a. BreakBeforeBinaryOperators: All
>> 1b. BreakBeforeBinaryOperators: NonAssignment
>> I have absolutely no preference between 1a and 1b. It's purely style.
>> SomeLongTypeName someLongVariableName =
>> SomeLongTypeName someLongVariableName
>> = someLongExpression();
> 1b sounds good to me.
I contradicted myself above. If you like the style shown in (1b), the configuration option is actually BreakBeforeBinaryOperators: All.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-dev