summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-08-01 13:46:58 +0000
committerDaniel Jasper <djasper@google.com>2013-08-01 13:46:58 +0000
commit9688ff197e99734015c4225de9ffe528c5ffdaec (patch)
tree9d5ddda540486c60881b9a9827c2abaf1d6ea051 /clang/unittests/Format/FormatTest.cpp
parentb1266b5447e566e79252ef2b026b9da142801de0 (diff)
downloadbcm5719-llvm-9688ff197e99734015c4225de9ffe528c5ffdaec.tar.gz
bcm5719-llvm-9688ff197e99734015c4225de9ffe528c5ffdaec.zip
clang-format: Improve line breaks in @property.
Before: @property(nonatomic, assign, readonly) NSString *looooooooooooooooooooooooooooongName; After: @property(nonatomic, assign, readonly) NSString *looooooooooooooooooooooooooooongName; llvm-svn: 187577
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 d5b9f27699d..6a5f0228fc4 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -4663,6 +4663,11 @@ TEST_F(FormatTest, FormatObjCProtocol) {
"@optional\n"
"@property(assign) int madProp;\n"
"@end\n");
+
+ verifyFormat("@property(nonatomic, assign, readonly)\n"
+ " int *looooooooooooooooooooooooooooongNumber;\n"
+ "@property(nonatomic, assign, readonly)\n"
+ " NSString *looooooooooooooooooooooooooooongName;");
}
TEST_F(FormatTest, FormatObjCMethodDeclarations) {
OpenPOWER on IntegriCloud