r175031 - Formatter: And more cast tests (these don't pass yet).
Nico Weber
nicolasweber at gmx.de
Tue Feb 12 20:40:04 PST 2013
Author: nico
Date: Tue Feb 12 22:40:03 2013
New Revision: 175031
URL: http://llvm.org/viewvc/llvm-project?rev=175031&view=rev
Log:
Formatter: And more cast tests (these don't pass yet).
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=175031&r1=175030&r2=175031&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Tue Feb 12 22:40:03 2013
@@ -2415,6 +2415,8 @@ TEST_F(FormatTest, FormatObjCMethodExpr)
verifyFormat("int a = *[foo bar:baz];");
// FIXME: Make casts work, without breaking f()[4].
//verifyFormat("int a = (int)[foo bar:baz];");
+ //verifyFormat("return (int)[foo bar:baz];");
+ //verifyFormat("(void)[foo bar:baz];");
verifyFormat("return (MyType *)[self.tableView cellForRowAtIndexPath:cell];");
// Binary operators.
More information about the cfe-commits
mailing list