summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-01-04 07:29:07 +0000
committerDaniel Jasper <djasper@google.com>2016-01-04 07:29:07 +0000
commit06a269574c35f4d36236893e5cb00e466ed738c5 (patch)
treecfa13072d432c638d67094ffb3a1ad3fddd76d20 /clang/unittests/Format/FormatTest.cpp
parentffbad0e8aa36c7e0cc7026a989b21177dc1fb255 (diff)
downloadbcm5719-llvm-06a269574c35f4d36236893e5cb00e466ed738c5.tar.gz
bcm5719-llvm-06a269574c35f4d36236893e5cb00e466ed738c5.zip
clang-format: Fix corner-case in ObjC method declaration formatting
Before: - (void)shortf:(GTMFoo *)theFoo longKeyword:(NSRect)theRect longerKeyword:(float)theInterval error:(NSError **)theError { } After: - (void)shortf:(GTMFoo *)theFoo longKeyword:(NSRect)theRect longerKeyword:(float)theInterval error:(NSError **)theError { } llvm-svn: 256738
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 3899eda4067..22c469815b1 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -7281,6 +7281,11 @@ TEST_F(FormatTest, FormatObjCMethodDeclarations) {
" interval:(float)theInterval {\n"
"}");
verifyFormat("- (void)shortf:(GTMFoo *)theFoo\n"
+ " longKeyword:(NSRect)theRect\n"
+ " longerKeyword:(float)theInterval\n"
+ " error:(NSError **)theError {\n"
+ "}");
+ verifyFormat("- (void)shortf:(GTMFoo *)theFoo\n"
" longKeyword:(NSRect)theRect\n"
" evenLongerKeyword:(float)theInterval\n"
" error:(NSError **)theError {\n"
OpenPOWER on IntegriCloud