]> granicus.if.org Git - clang/commit
Fix bin-packing behavior of constructor initialziers.
authorDaniel Jasper <djasper@google.com>
Mon, 22 Apr 2013 07:59:53 +0000 (07:59 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 22 Apr 2013 07:59:53 +0000 (07:59 +0000)
commit001bf4e2bedfc6bc6a7638c098a004e4d57e308f
treed1cd316a28a51dbe448db50682906da90a776c7d
parent957dac5b6d826bc0c10011c8b5c3f1b8007fda41
Fix bin-packing behavior of constructor initialziers.

In Google style, constructor initializers need to be all on one line or
one initializer per line if that does not fit. Without this patch, this
non-bin-packing-behavior incorrectly extends to the parameters of the
initializers.

Before:
Constructor()
    : aaaaa(aaaaaaaaaaaaaaaaaaaaaa,
            aaaaaaaaaaaaaaaaaaaaaa,
            aaaaaaaaaaaaaaaaaaaaaa) {}

After:
Constructor()
    : aaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
            aaaaaaaaaaaaaaaaaaaaaa) {}

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