summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-05-15 09:05:31 +0000
committerDaniel Jasper <djasper@google.com>2015-05-15 09:05:31 +0000
commitcdb58b2e4537a5369015327cf5b210e582b115a5 (patch)
tree2abcb543c4a9e3b33724d514d34a63ef85aa73cf /clang/unittests/Format/FormatTest.cpp
parent7e9776b55949f8fdbfdee1a66ec8aa04289436bc (diff)
downloadbcm5719-llvm-cdb58b2e4537a5369015327cf5b210e582b115a5.tar.gz
bcm5719-llvm-cdb58b2e4537a5369015327cf5b210e582b115a5.zip
clang-format: Add missing space before ObjC selector.
Before: [self aaaaa:(1 + 2)bbbbb:3]; After: [self aaaaa:(1 + 2) bbbbb:3]; llvm-svn: 237424
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index d5614b84305..9661919f517 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -7216,6 +7216,8 @@ TEST_F(FormatTest, FormatObjCMethodExpr) {
verifyFormat("for (id foo in [self getStuffFor:bla]) {\n"
"}");
verifyFormat("[self aaaaa:MACRO(a, b:, c:)];");
+ verifyFormat("[self aaaaa:(1 + 2) bbbbb:3];");
+ verifyFormat("[self aaaaa:(Type)a bbbbb:3];");
verifyFormat("[self stuffWithInt:(4 + 2) float:4.5];");
verifyFormat("[self stuffWithInt:a ? b : c float:4.5];");
OpenPOWER on IntegriCloud