/// \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) &&
" 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]];");