aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/warn-documentation.m
blob: 0a02f7bb26c1b774538f2b31bc69b37992217329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// RUN: %clang_cc1 -fsyntax-only -Wdocumentation -Wdocumentation-pedantic -verify %s

@class NSString;

// expected-warning@+2 {{empty paragraph passed to '\brief' command}}
/**
 * \brief\brief Aaa
 */
@interface A
// expected-warning@+2 {{empty paragraph passed to '\brief' command}}
/**
 * \brief\brief Aaa
 * \param aaa Aaa
 * \param bbb Bbb
 */
+ (NSString *)test1:(NSString *)aaa suffix:(NSString *)bbb;

// expected-warning@+2 {{parameter 'aab' not found in the function declaration}} expected-note@+2 {{did you mean 'aaa'?}}
/**
 * \param aab Aaa
 */
+ (NSString *)test2:(NSString *)aaa;
@end