diff options
author | Daniel Jasper <djasper@google.com> | 2013-11-07 17:52:51 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-11-07 17:52:51 +0000 |
commit | dbfb5f37f4d003ae6935b87a103b7827d5069690 (patch) | |
tree | cdc2ca6c3745390de556e5984bc34c2ec2fc85b6 /unittests/Format | |
parent | 59875ac81b97de87ac6c4c7cb256ab71b75114f2 (diff) | |
download | clang-dbfb5f37f4d003ae6935b87a103b7827d5069690.tar.gz |
clang-format: Improve formatting of constructor initializers.
Before:
Constructor()
: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaa(aaaa,
aaaa)) {}
After:
Constructor()
: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(
aaaaaaaaaaaaaaaaaaaaaaaaa(aaaa, aaaa)) {}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 43f5634131..63fe4a6a4e 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -2711,6 +2711,9 @@ TEST_F(FormatTest, ConstructorInitializers) { " : aaaaaaaaaaaaaaaaaaaa(a), bbbbbbbbbbbbbbbbbbbbbbbb(b) {\n" "}", getLLVMStyleWithColumns(60)); + verifyFormat("Constructor()\n" + " : aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" + " aaaaaaaaaaaaaaaaaaaaaaaaa(aaaa, aaaa)) {}"); // Here a line could be saved by splitting the second initializer onto two // lines, but that is not desireable. |