From: Alexander Kornienko Date: Wed, 4 Dec 2013 13:58:27 +0000 (+0000) Subject: Added a regression test for the change in r196380 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2817ac2c755a9e74fa350c011ed99cfaf3dc2b04;p=clang Added a regression test for the change in r196380 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196384 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index f5a0bdd634..b7b6b832f4 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -4891,6 +4891,14 @@ TEST_F(FormatTest, PullTrivialFunctionDefinitionsIntoSingleLine) { verifyFormat("void f() {}", getLLVMStyleWithColumns(11)); verifyFormat("void f() {\n}", getLLVMStyleWithColumns(10)); + verifyFormat("class C {\n" + " C()\n" + " : iiiiiiii(nullptr),\n" + " kkkkkkk(nullptr),\n" + " mmmmmmm(nullptr),\n" + " nnnnnnn(nullptr) {}\n" + "};", + getGoogleStyle()); FormatStyle NoColumnLimit = getLLVMStyle(); NoColumnLimit.ColumnLimit = 0;