[cfe-commits] r173169 - /cfe/trunk/unittests/Format/FormatTest.cpp
Nico Weber
nicolasweber at gmx.de
Tue Jan 22 08:53:59 PST 2013
Author: nico
Date: Tue Jan 22 10:53:59 2013
New Revision: 173169
URL: http://llvm.org/viewvc/llvm-project?rev=173169&view=rev
Log:
Formatter: Remove a fixme klimek fixed in r173168.
Add a few comments to the ObjC test cases.
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=173169&r1=173168&r2=173169&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Tue Jan 22 10:53:59 2013
@@ -1725,7 +1725,6 @@
}
TEST_F(FormatTest, FormatObjCInterface) {
- // FIXME: Handle comments like in "@interface /* wait for it */ Foo", PR14875
verifyFormat("@interface Foo : NSObject <NSSomeDelegate> {\n"
"@public\n"
" int field1;\n"
@@ -1752,7 +1751,7 @@
"+ (id)init;\n"
"@end");
- verifyFormat("@interface Foo\n"
+ verifyFormat("@interface /* wait for it */ Foo\n"
"+ (id)init;\n"
"// Look, a comment!\n"
"- (int)answerWith:(int)i;\n"
@@ -1767,7 +1766,7 @@
"+ (id)init;\n"
"@end");
- verifyFormat("@interface Foo : Bar <Baz, Quux>\n"
+ verifyFormat("@interface Foo : /**/ Bar /**/ <Baz, /**/ Quux>\n"
"+ (id)init;\n"
"@end");
More information about the cfe-commits
mailing list