r196384 - Added a regression test for the change in r196380

Alexander Kornienko alexfh at google.com
Wed Dec 4 05:58:27 PST 2013


Author: alexfh
Date: Wed Dec  4 07:58:27 2013
New Revision: 196384

URL: http://llvm.org/viewvc/llvm-project?rev=196384&view=rev
Log:
Added a regression test for the change in r196380

Modified:
    cfe/trunk/unittests/Format/FormatTest.cpp

Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=196384&r1=196383&r2=196384&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Wed Dec  4 07:58:27 2013
@@ -4891,6 +4891,14 @@ TEST_F(FormatTest, PullTrivialFunctionDe
 
   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;





More information about the cfe-commits mailing list