diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-18 23:45:52 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-18 23:45:52 +0000 |
| commit | abbcbaeb4ce5b28bf188ce406e3541c00063db12 (patch) | |
| tree | fe6785d2ab41291bf6abc87555e6a0e4772e816c /clang/test/Sema/warn-documentation.m | |
| parent | b6970267ade3effc12d95c9ef123a4b4562f3cee (diff) | |
| download | bcm5719-llvm-abbcbaeb4ce5b28bf188ce406e3541c00063db12.tar.gz bcm5719-llvm-abbcbaeb4ce5b28bf188ce406e3541c00063db12.zip | |
documentation comment parsing. Added couple of
top-level HeaderDoc tags @functiongroup and
@methodgroup to doc. tags recognized.
// rdar://12379114
llvm-svn: 177358
Diffstat (limited to 'clang/test/Sema/warn-documentation.m')
| -rw-r--r-- | clang/test/Sema/warn-documentation.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation.m b/clang/test/Sema/warn-documentation.m index 98c49935618..1e3acf1d723 100644 --- a/clang/test/Sema/warn-documentation.m +++ b/clang/test/Sema/warn-documentation.m @@ -123,6 +123,20 @@ typedef id OBJ; } @end +// rdar://12379114 +// expected-warning@+4 {{'@methodgroup' command should be used in a comment attached to an Objective-C method declaration}} +// expected-warning@+6 {{'@method' command should be used in a comment attached to an Objective-C method declaratio}} +@interface rdar12379114 +/*! + @methodgroup Creating a request +*/ +/*! + @method initWithTimeout is the 2nd method +*/ +typedef unsigned int NSTimeInterval; +- (id)initWithTimeout:(NSTimeInterval)timeout; +@end + // expected-warning@+2 {{'@protocol' command should not be used in a comment attached to a non-protocol declaration}} /*! @protocol PROTO |

