summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-01-13 08:19:51 +0000
committerDaniel Jasper <djasper@google.com>2013-01-13 08:19:51 +0000
commit48cb3b97c7d319b44ecbdd028472c9ef38df6631 (patch)
tree10dbe923658d67547102b62fbf5b9aabe20a82c8 /clang/unittests/Format/FormatTest.cpp
parent5ef433fc0c2262e9ea38ab08081e14608f753291 (diff)
downloadbcm5719-llvm-48cb3b97c7d319b44ecbdd028472c9ef38df6631.tar.gz
bcm5719-llvm-48cb3b97c7d319b44ecbdd028472c9ef38df6631.zip
Always put a space after ",".
I am not aware of a case where that would be wrong. The specific case I am fixing are function parameters wrapped in parenthesis (e.g. in macros). Before: function(a,(b)); After: function(a, (b)); llvm-svn: 172351
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 984732571e0..a46c9b685bc 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -121,6 +121,7 @@ TEST_F(FormatTest, FormatsNestedBlockStatements) {
TEST_F(FormatTest, FormatsNestedCall) {
verifyFormat("Method(f1, f2(f3));");
verifyFormat("Method(f1(f2, f3()));");
+ verifyFormat("Method(f1(f2, (f3())));");
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud