[cfe-commits] r172334 - in /cfe/trunk: lib/Format/Format.cpp unittests/Format/FormatTest.cpp
Nico Weber
nicolasweber at gmx.de
Sat Jan 12 14:51:13 PST 2013
Author: nico
Date: Sat Jan 12 16:51:13 2013
New Revision: 172334
URL: http://llvm.org/viewvc/llvm-project?rev=172334&view=rev
Log:
Formatter: Remove debugging junk I accidentally landed in r172333.
Modified:
cfe/trunk/lib/Format/Format.cpp
cfe/trunk/unittests/Format/FormatTest.cpp
Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=172334&r1=172333&r2=172334&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Sat Jan 12 16:51:13 2013
@@ -190,7 +190,7 @@
/// \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) &&
Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=172334&r1=172333&r2=172334&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Sat Jan 12 16:51:13 2013
@@ -1544,9 +1544,6 @@
" 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]];");
More information about the cfe-commits
mailing list