]> granicus.if.org Git - clang/commit
Always break before the colon in constructor initializers, when
authorAlexander Kornienko <alexfh@google.com>
Mon, 16 Dec 2013 14:35:51 +0000 (14:35 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 16 Dec 2013 14:35:51 +0000 (14:35 +0000)
commit74a1c67f646da8f72d8a5c7552b19e518cc11823
tree9766b18c1836e62cb122ff28474d5fcf5ebe8171
parent58c3231b55918324adf92c6fee152d7825e67236
Always break before the colon in constructor initializers, when
BreakConstructorInitializersBeforeComma is true.

This option is used in WebKit style, so this also ensures initializer lists are
not put on a single line, as per the WebKit coding guidelines.

Patch by Florian Sowade!

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