diff options
author | Manuel Klimek <klimek@google.com> | 2013-01-11 19:17:44 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-01-11 19:17:44 +0000 |
commit | d5688cf3e314819ca196053ac245c19a7c321332 (patch) | |
tree | 182eb99e52888583f6e40a29537b85a23eca049a /test/Index/comment-objc-decls.m | |
parent | d465843f5376c7c1574fe61338cbf3dc50684d5b (diff) |
Fix single-line optimization for ObjC.
Puts blocks always into multiple lines when they start with an ObjC
keyword or minus.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/comment-objc-decls.m')
-rw-r--r-- | test/Index/comment-objc-decls.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Index/comment-objc-decls.m b/test/Index/comment-objc-decls.m index 58e65e4ca5..ae3b0bbf41 100644 --- a/test/Index/comment-objc-decls.m +++ b/test/Index/comment-objc-decls.m @@ -45,7 +45,7 @@ id IvarNSObject; } @end -// CHECK: Declaration>@interface NSObject { id IvarNSObject; }\n@end</Declaration> +// CHECK: Declaration>@interface NSObject {\n id IvarNSObject;\n}\n@end</Declaration> // CHECK: <Declaration>id IvarNSObject</Declaration> /** @@ -73,7 +73,7 @@ */ @property (copy) id PropertyMyClass; @end -// CHECK: <Declaration>@interface MyClass : NSObject <MyProto> { id IvarMyClass; }\n@end</Declaration> +// CHECK: <Declaration>@interface MyClass : NSObject <MyProto> {\n id IvarMyClass;\n}\n@end</Declaration> // CHECK: <Declaration>id IvarMyClass</Declaration> // CHECK: <Declaration>- (id)MethodMyClass;</Declaration> // CHECK: <Declaration>+ (id)ClassMethodMyClass;</Declaration> @@ -90,7 +90,7 @@ id IvarMyClassExtension; } @end -// CHECK: <Declaration>@interface MyClass () { id IvarMyClassExtension; }\n@end</Declaration> +// CHECK: <Declaration>@interface MyClass () {\n id IvarMyClassExtension;\n}\n@end</Declaration> // CHECK: <Declaration>id IvarMyClassExtension</Declaration> |