diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-01-18 02:43:57 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-18 02:43:57 +0000 |
commit | 6a21a556a728325e1fae4387128d149927a4fbff (patch) | |
tree | 8511ccb514da8a6b64bd6c11d7a4e8a5fcc1d5a4 /unittests/Format/FormatTest.cpp | |
parent | f373c5d0b7f04fc3fa4e34bdfb868d118de6a641 (diff) |
Formatter: The contents of @selector() should be formatted as a selector.
Before: @selector(foo: )
Now: @selector(foo:)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 7b57e858a4..a762068ce9 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -533,7 +533,7 @@ TEST_F(FormatTest, NestedStaticInitializers) { "static A x = { { { init1, init2, init3, init4 },\n" " { init1, init2, init3, init4 } } };"); - // FIXME: Fix this in general an verify that it works in LLVM style again. + // FIXME: Fix this in general and verify that it works in LLVM style again. verifyGoogleFormat( "somes Status::global_reps[3] = {\n" " { kGlobalRef, OK_CODE, NULL, NULL, NULL },\n" @@ -545,7 +545,7 @@ TEST_F(FormatTest, NestedStaticInitializers) { " { rect.fRight - rect.fLeft, rect.fBottom - rect.fTop" " } };"); - // FIXME: We might at some point want to handle this similar to parameters + // FIXME: We might at some point want to handle this similar to parameter // lists, where we have an option to put each on a single line. verifyFormat("struct {\n" " unsigned bit;\n" @@ -1869,7 +1869,7 @@ TEST_F(FormatTest, ObjCSnippets) { verifyFormat("@dynamic textColor;"); //verifyFormat("char *buf1 = @encode(int **);"); verifyFormat("Protocol *proto = @protocol(p1);"); - //verifyFormat("SEL s = @selector(foo:);"); + verifyFormat("SEL s = @selector(foo:);"); verifyFormat("@synchronized(self) {\n" " f();\n" "}"); |