r223850 - clang-format: Add a test for PR19603 which seems fixed (maybe by r221338?).

Nico Weber nicolasweber at gmx.de
Tue Dec 9 15:22:35 PST 2014


Author: nico
Date: Tue Dec  9 17:22:35 2014
New Revision: 223850

URL: http://llvm.org/viewvc/llvm-project?rev=223850&view=rev
Log:
clang-format: Add a test for PR19603 which seems fixed (maybe by r221338?).

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=223850&r1=223849&r2=223850&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Tue Dec  9 17:22:35 2014
@@ -2624,6 +2624,9 @@ TEST_F(FormatTest, MacrosWithoutTrailing
   EXPECT_EQ("SOME_WEIRD_LOG_MACRO << SomeThing;",
             format("SOME_WEIRD_LOG_MACRO\n"
                    "<< SomeThing;"));
+
+  verifyFormat("VISIT_GL_CALL(GenBuffers, void, (GLsizei n, GLuint* buffers), "
+               "(n, buffers))\n", getChromiumStyle(FormatStyle::LK_Cpp));
 }
 
 TEST_F(FormatTest, MacroCallsWithoutTrailingSemicolon) {





More information about the cfe-commits mailing list