[cfe-commits] r172785 - /cfe/trunk/unittests/Format/FormatTest.cpp
Nico Weber
nicolasweber at gmx.de
Thu Jan 17 21:11:47 PST 2013
Author: nico
Date: Thu Jan 17 23:11:47 2013
New Revision: 172785
URL: http://llvm.org/viewvc/llvm-project?rev=172785&view=rev
Log:
Formatter: Enable @encode test.
This doesn't work right with pointers to pointers, but that's likely just a
dupe of PR14884.
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=172785&r1=172784&r2=172785&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Thu Jan 17 23:11:47 2013
@@ -1860,13 +1860,15 @@
}
TEST_F(FormatTest, ObjCSnippets) {
- // FIXME: Make the uncommented lines below pass.
verifyFormat("@autoreleasepool {\n"
" foo();\n"
"}");
verifyFormat("@class Foo, Bar;");
verifyFormat("@compatibility_alias AliasName ExistingClass;");
verifyFormat("@dynamic textColor;");
+ verifyFormat("char *buf1 = @encode(int *);");
+ verifyFormat("char *buf1 = @encode(typeof(4 * 5));");
+ // FIXME: Enable once PR14884 is fixed:
//verifyFormat("char *buf1 = @encode(int **);");
verifyFormat("Protocol *proto = @protocol(p1);");
verifyFormat("SEL s = @selector(foo:);");
More information about the cfe-commits
mailing list