File: unknown-parameter.h

package info (click to toggle)
gobject-introspection 1.32.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,880 kB
  • sloc: ansic: 33,799; sh: 11,293; python: 7,284; yacc: 1,410; makefile: 400; lex: 329; perl: 254; xml: 178
file content (48 lines) | stat: -rw-r--r-- 1,075 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* See https://bugzilla.gnome.org/show_bug.cgi?id=629708 */

/**
 * test_param_mismatch:
 * @wrong_name: (out):
 *
 */
void test_param_mismatch(int *out);

// EXPECT:5: Warning: Test: test_param_mismatch: unknown parameter 'wrong_name' in documentation comment, should be 'out'

/**
 * test_param_mismatch2:
 * @wrong_name2: (out):
 *
 */
void test_param_mismatch2(int a, int *out2);

// EXPECT:14: Warning: Test: test_param_mismatch2: unknown parameter 'wrong_name2' in documentation comment, should be one of 'a', 'out2'

/**
 * test_param_mismatch3:
 * @a: an integer
 * @wrong_name3: (out):
 *
 */
void test_param_mismatch3(int a, int *out3);

// EXPECT:24: Warning: Test: test_param_mismatch3: unknown parameter 'wrong_name3' in documentation comment, should be 'out3'

/**
 * test_param_missing:
 * @missing: (out):
 *
 */
void test_param_missing(void);

// EXPECT:33: Warning: Test: test_param_missing: unknown parameter 'missing' in documentation comment


/**
 * test_param_vargs:
 * @...: The varargs
 *
 */
void test_param_varargs(int i, ...);

// Should not warn