1 // RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -Wdocumentation -Wdocumentation-pedantic -verify %s
5 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
8 // expected-warning@+2 {{empty paragraph passed to '\brief' command}}
14 + (NSString *)test1:(NSString *)aaa suffix:(NSString *)bbb;
16 // expected-warning@+2 {{parameter 'aab' not found in the function declaration}} expected-note@+2 {{did you mean 'aaa'?}}
20 + (NSString *)test2:(NSString *)aaa;
22 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
24 @property int test3; // a property: ObjCPropertyDecl
26 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
28 @property int test4; // a property: ObjCPropertyDecl
31 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
36 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
38 @implementation Test1 // a class implementation : ObjCImplementationDecl
39 + (NSString *)test1:(NSString *)aaa suffix:(NSString *)bbb {
43 + (NSString *)test2:(NSString *)aaa {
47 @synthesize test3; // a property implementation: ObjCPropertyImplDecl
48 @dynamic test4; // a property implementation: ObjCPropertyImplDecl
50 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
55 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
57 @interface Test1(Test1Category) // a category: ObjCCategoryDecl
58 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
60 + (NSString *)test3:(NSString *)aaa;
63 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
65 @implementation Test1(Test1Category) // a category implementation: ObjCCategoryImplDecl
66 + (NSString *)test3:(NSString *)aaa {
71 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
73 @protocol TestProto1 // a protocol: ObjCProtocolDecl
78 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
85 @interface TestReturns1
87 - (int)test1:(NSString *)aaa;
89 // expected-warning@+1 {{'\returns' command used in a comment that is attached to a method returning void}}
91 - (void)test2:(NSString *)aaa;