]> granicus.if.org Git - clang/commit
clang-format: Add two new style options to support WebKit style.
authorDaniel Jasper <djasper@google.com>
Fri, 26 Jul 2013 16:56:36 +0000 (16:56 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 26 Jul 2013 16:56:36 +0000 (16:56 +0000)
commite8b10d3d5b90efaf60ad89e96f6500f971ceec41
treea32843e35704097a5258e358a8b23b9e6a273da0
parente9512e2c275bf24295202443452da314fb77270f
clang-format: Add two new style options to support WebKit style.

New options:
* Break before the commas of constructor initializers and align
  the commas with the colon.
* Break before binary operators

Additionally, for styles without column limit, don't just accept
linebreaks done by the user, but instead remove 'invalid' (according
to the current style) linebreaks and add 'required' ones.

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