diff options
| -rw-r--r-- | clang/lib/Format/Format.cpp | 2 | ||||
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index de870900b41..94119325410 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -190,7 +190,7 @@ static bool fitsIntoLimit(const AnnotatedToken &RootToken, unsigned Limit) { /// \brief Returns if a token is an Objective-C selector name. /// -/// For example, "bar" is a selector name in [foo bar:(4 + 5)] +/// For example, "bar" is a selector name in [foo bar:(4 + 5)]. static bool isObjCSelectorName(const AnnotatedToken &Tok) { return Tok.is(tok::identifier) && !Tok.Children.empty() && Tok.Children[0].is(tok::colon) && diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index cba25fcf8f4..758bb3e967f 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -1544,9 +1544,6 @@ TEST_F(FormatTest, FormatObjCMethodExpr) { " if ((self = [super initWithContentRect:contentRect styleMask:styleMask\n" " backing:NSBackingStoreBuffered defer:YES]))"); - verifyFormat("[foo setasdfasdffffffffffffadfasdfasdf:\n" - " [bar dowith:asdfdsfasdfasdfasfasfasfsafasdfsfad]];"); - verifyFormat("[foo checkThatBreakingAfterColonWorksOk:\n" " [bar ifItDoes:reduceOverallLineLengthLikeInThisCase]];"); |

