summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-12-09 23:22:35 +0000
committerNico Weber <nicolasweber@gmx.de>2014-12-09 23:22:35 +0000
commit238462627ea4f11fb63ffd379d71011d66d206cb (patch)
tree9ba2c2a153791ff74ee653eaf7e1a703040b5c57 /clang
parentd167eac023c6f96ecd8f92ca6965eca68e7b026d (diff)
downloadbcm5719-llvm-238462627ea4f11fb63ffd379d71011d66d206cb.tar.gz
bcm5719-llvm-238462627ea4f11fb63ffd379d71011d66d206cb.zip
clang-format: Add a test for PR19603 which seems fixed (maybe by r221338?).
llvm-svn: 223850
Diffstat (limited to 'clang')
-rw-r--r--clang/unittests/Format/FormatTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 7ca7978fd19..fdcfe79d135 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -2624,6 +2624,9 @@ TEST_F(FormatTest, MacrosWithoutTrailingSemicolon) {
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) {
OpenPOWER on IntegriCloud