]> granicus.if.org Git - clang/commit
Add option to avoid "bin-packing" of parameters.
authorDaniel Jasper <djasper@google.com>
Wed, 16 Jan 2013 14:59:02 +0000 (14:59 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 16 Jan 2013 14:59:02 +0000 (14:59 +0000)
commit0df6acdf4f6faf7579775a739e1c09448c076c0f
treef91f004a8f568b32b857f5a0d23a54626901d42b
parentca547dbbb1e10c801158f2eecaf3d49e1071b0e3
Add option to avoid "bin-packing" of parameters.

"Bin-packing" here means allowing multiple parameters on one line, if a
function call/declaration is spread over multiple lines.

This is required by the Chromium style guide and probably desired for
the Google style guide. Not making changes to LLVM style as I don't have
enough data.

With this enabled, we format stuff like:
aaaaaaaaaaaaaaa(aaaaaaaaaa,
                aaaaaaaaaa,
aaaaaaaaaaaaaaaaaaaaaaa).aaaaaaaaaaaaaaaaaa();

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172617 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Format/Format.h
lib/Format/Format.cpp
unittests/Format/FormatTest.cpp