diff options
author | Daniel Jasper <djasper@google.com> | 2015-12-14 08:41:18 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-12-14 08:41:18 +0000 |
commit | 870d1bcdf97da993175e8ba7a30f4cf8e25e67b6 (patch) | |
tree | 52d3384b148c4b12d5626eb1541d0a63fc96c722 /lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/main.cpp | |
parent | 96cbb502b796018f407882cc3686a695ac972489 (diff) | |
download | bcm5719-llvm-870d1bcdf97da993175e8ba7a30f4cf8e25e67b6.tar.gz bcm5719-llvm-870d1bcdf97da993175e8ba7a30f4cf8e25e67b6.zip |
clang-format: Add test for AlignAfterOpenBracket = AlwaysBreak in C++.
Revision 251405 added AlwaysBreak to support Google's JavaScript style. This
changeset complete existing AlignsAfterOpenBracket tests to exercise
AlwaysBreak for C++.
I thought this would be worthwhile. With this option we can support request
from http://lists.llvm.org/pipermail/cfe-dev/2015-May/042942.html, that had
been requested a few times. This also partially solve related Bug 23422 and is
probably sufficient for most people.
AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak;
BinPackArguments = false;
BinPackParameters = false;
With these setting we obtain this formatting:
void fooWithAVeryLongParamList(
int firstParameter,
int secondParameter
int lastParameter)
{
object.alsoThisDoenstFitSoIBreakImmidiatly(
firstParameter,
secondParameter,
lastParameter);
}
Patch by Jean-Philippe Dufraigne, thank you.
llvm-svn: 255486
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/main.cpp')
0 files changed, 0 insertions, 0 deletions