Clang-format: add finer-grained options for putting all arguments on one line.
Russell McClellan via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 20 07:22:28 PST 2017
Hi -
Just pinging this after a week; let me know if there's a better way to
submit patches, I'm a first time contributor.
On Mon, Nov 13, 2017 at 6:55 PM, Russell McClellan
<russell.mcclellan at gmail.com> wrote:
> Attached is a patch that adds two new options,
> AllowAllArgumentsOnNextLine and
> AllowAllConstructorInitializersOnNextLine. These mirror the existing
> AllowAllParametersOfDeclarationOnNextLine and allow me to support an
> internal style guide where I work. I think this would be generally
> useful, some have asked for it on stackoverflow:
>
> https://stackoverflow.com/questions/30057534/clang-format-binpackarguments-not-working-as-expected
>
> https://stackoverflow.com/questions/38635106/clang-format-how-to-prevent-all-function-arguments-on-next-line
>
> Thanks for your consideration, and let me know if there's anything I
> can do to improve the patch; I'm a first-time contributor.
>
> Thanks,
> -Russell
More information about the cfe-commits
mailing list