diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-28 13:31:35 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-28 13:31:35 +0000 |
commit | 65585ed86aa23fd5e0ad481e869f0cecbf025b77 (patch) | |
tree | be044ca4e799213d38673c5d47f13c239deeceff /clang/unittests/Format/FormatTest.cpp | |
parent | 0b41cbb5337eda65fa354fc24c22951cd77730a0 (diff) | |
download | bcm5719-llvm-65585ed86aa23fd5e0ad481e869f0cecbf025b77.tar.gz bcm5719-llvm-65585ed86aa23fd5e0ad481e869f0cecbf025b77.zip |
Make continuations in constructor initializers consistent.
Before:
Constructor
: LooooooooooooooooooooongVariable(
LooooooooooooooooooooongValue) {}
After:
Constructor
: LooooooooooooooooooooongVariable(
LooooooooooooooooooooongValue) {}
llvm-svn: 173685
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index c1430193eb6..417dc9e9a24 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -924,6 +924,10 @@ TEST_F(FormatTest, ConstructorInitializers) { " aaaaaaaaaaaaaaaaaaaaaaaaaaa),\n" " aaaaaaaaaaaaaaaaaaaaaaa() {\n}"); + verifyFormat("Constructor()\n" + " : aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" + " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {\n}"); + // Here a line could be saved by splitting the second initializer onto two // lines, but that is not desireable. verifyFormat( |