summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-01-22 16:53:59 +0000
committerNico Weber <nicolasweber@gmx.de>2013-01-22 16:53:59 +0000
commit6029d4f3aeb711000bb9c07a6ec806248ca141bf (patch)
tree244224de400f878d1b034d27ce974d6178b37712 /clang/unittests/Format/FormatTest.cpp
parentf92f7bc5406d9d81779a4d6466d6eef1d01079d7 (diff)
downloadbcm5719-llvm-6029d4f3aeb711000bb9c07a6ec806248ca141bf.tar.gz
bcm5719-llvm-6029d4f3aeb711000bb9c07a6ec806248ca141bf.zip
Formatter: Remove a fixme klimek fixed in r173168.
Add a few comments to the ObjC test cases. llvm-svn: 173169
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index b0f0fdba360..3065a836ddf 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -1725,7 +1725,6 @@ TEST_F(FormatTest, FormatObjCBlocks) {
}
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 @@ TEST_F(FormatTest, FormatObjCInterface) {
"+ (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 @@ TEST_F(FormatTest, FormatObjCInterface) {
"+ (id)init;\n"
"@end");
- verifyFormat("@interface Foo : Bar <Baz, Quux>\n"
+ verifyFormat("@interface Foo : /**/ Bar /**/ <Baz, /**/ Quux>\n"
"+ (id)init;\n"
"@end");
OpenPOWER on IntegriCloud