[cfe-users] [clang-format] BracketAlignmentStyle: Break before _closing_ bracket

Bullinger, Julius via cfe-users cfe-users at lists.llvm.org
Wed Nov 15 00:31:20 PST 2017


Hi,

combining the *AlignAfterOpenBracket* (``BracketAlignmentStyle=AlwaysBreak``) option with ``BinPackArguments`` and ``BinPackParameters`` set to ``false``, it's possible to get the following formatting:

    someShortFunction(argument);
    someVeryVeryVeryLongFunction(
        argument1,
        argument2,
        argument3,
        argument4);

However, similar to ``BreakBeforeBraces``, I'd like to break _before_ the closing parenthesis too:

    someShortFunction(argument);
    someVeryVeryVeryLongFunction(
        argument1,
        argument2,
        argument3,
        argument4
    );

Is this possible with the existing options?

Thanks and best regards,
Julius
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928




More information about the cfe-users mailing list