[cfe-commits] r172335 - /cfe/trunk/unittests/Format/FormatTest.cpp

Nico Weber nicolasweber at gmx.de
Sat Jan 12 15:41:33 PST 2013


Author: nico
Date: Sat Jan 12 17:41:33 2013
New Revision: 172335

URL: http://llvm.org/viewvc/llvm-project?rev=172335&view=rev
Log:
Formatter: Add a test for @selector in an ObjC method expression, which happens to work already.

Modified:
    cfe/trunk/unittests/Format/FormatTest.cpp

Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=172335&r1=172334&r2=172335&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Sat Jan 12 17:41:33 2013
@@ -1532,6 +1532,7 @@
   verifyFormat("[self stuffWithInt:a ? [self foo:bar] : c];");
   verifyFormat("[self stuffWithInt:a ? (e ? f : g) : c];");
   verifyFormat("[cond ? obj1 : obj2 methodWithParam:param]");
+  verifyFormat("[button setAction:@selector(zoomOut:)];");
   
   verifyFormat("arr[[self indexForFoo:a]];");
   verifyFormat("throw [self errorFor:a];");





More information about the cfe-commits mailing list