diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-01-11 21:14:08 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-11 21:14:08 +0000 |
commit | 67015ed2f40d6f69ee9e15d79aa88530f4b4afe2 (patch) | |
tree | 54057d74139ff8186cf6e55b7a497c93de5d14fb /unittests/Format/FormatTest.cpp | |
parent | 3315618561d19c99a7a52c72a31fb182111da716 (diff) |
Formatter: Format ObjC static and instance methods consistently, add a test for that.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index a0cfeee90b..2c1c9ee659 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1388,6 +1388,9 @@ TEST_F(FormatTest, FormatObjCImplementation) { "- (int)answerWith:(int)i {\n" " return i;\n" "}\n" + "+ (int)answerWith:(int)i {\n" + " return i;\n" + "}\n" "@end"); verifyFormat("@implementation Foo\n" @@ -1397,6 +1400,7 @@ TEST_F(FormatTest, FormatObjCImplementation) { verifyFormat("@implementation Foo : Bar\n" "+ (id)init {}\n" + "- (void)foo {}\n" "@end"); verifyFormat("@implementation Foo {\n" |