diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2013-01-07 16:07:07 +0000 | 
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-07 16:07:07 +0000 | 
| commit | 803d61d1435183083999ce4ffc4a0267c653aeb8 (patch) | |
| tree | a37e1be4cd5be5cdbd3aba6e7cc22efe0f8d0868 /clang/unittests/Format | |
| parent | 12d5babba0e41d18d60ee2b4e900d3e945e2e896 (diff) | |
| download | bcm5719-llvm-803d61d1435183083999ce4ffc4a0267c653aeb8.tar.gz bcm5719-llvm-803d61d1435183083999ce4ffc4a0267c653aeb8.zip  | |
Test all @keywords. Turns out some of them are not formatted correctly yet.
llvm-svn: 171752
Diffstat (limited to 'clang/unittests/Format')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 27 | 
1 files changed, 26 insertions, 1 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 3c056cd994e..34b31d42d2d 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -1022,8 +1022,33 @@ TEST_F(FormatTest, FormatForObjectiveCMethodDecls) {  }  TEST_F(FormatTest, ObjCAt) { -  verifyFormat("@interface"); +  // FIXME: Make the uncommented lines pass. +  verifyFormat("@autoreleasepool"); +  //verifyFormat("@catch"); +  //verifyFormat("@class"); +  verifyFormat("@compatibility_alias"); +  verifyFormat("@defs");    verifyFormat("@dynamic"); +  verifyFormat("@encode"); +  verifyFormat("@end"); +  verifyFormat("@finally"); +  verifyFormat("@implementation"); +  verifyFormat("@import"); +  verifyFormat("@interface"); +  verifyFormat("@optional"); +  verifyFormat("@package"); +  //verifyFormat("@private"); +  verifyFormat("@property"); +  //verifyFormat("@protected"); +  verifyFormat("@protocol"); +  //verifyFormat("@public"); +  verifyFormat("@required"); +  verifyFormat("@selector"); +  verifyFormat("@synchronized"); +  verifyFormat("@synthesize"); +  //verifyFormat("@throw"); +  //verifyFormat("@try"); +    EXPECT_EQ("@interface", format("@ interface"));    // The precise formatting of this doesn't matter, nobody writes code like  | 

