4 * test_symbol_twice_documented:
6 * Documenting the same thing multiple times can lead to subtle bugs.
7 * For example, one comment block might have correct annotations...
9 void test_symbol_twice_documented();
12 * test_symbol_twice_documented:
14 * ...and a different comment block (out of sync with the above) might have
15 * no annotations at all. The last comment block seen by the parser "wins".
18 // EXPECT:12: Warning: Test: multiple comment blocks documenting 'test_symbol_twice_documented:' identifier.
22 * test_symbol_missing_colon
24 * Forgotten colon above will result in a warning.
27 // EXPECT:22: Warning: Test: missing ':' at column 29:
28 //+ * test_symbol_missing_colon
33 * GtkWidget:test_property_missing_colon
35 * Forgotten colon above will result in a warning.
38 // EXPECT:33: Warning: Test: missing ':' at column 41:
39 //+ * GtkWidget:test_property_missing_colon
44 * GtkWidget::test_signal_missing_colon
46 * Forgotten colon above will result in a warning.
49 // EXPECT:44: Warning: Test: missing ':' at column 40:
50 //+ * GtkWidget::test_signal_missing_colon
55 * This is not a valid section identifier
56 * SECTION:test_invalid_section_idetifier
58 * Above identifier will result in a warning.
61 // EXPECT:55: Warning: Test: ignoring unrecognized GTK-Doc comment block, identifier not found:
62 //+ * This is not a valid section identifier
67 * test_unexpected_parameter:
68 * @param1: first parameter
70 * Parameters should come before the comment block description
73 * @param2: second parameter
76 // EXPECT:73: Warning: Test: '@param2' parameter unexpected at this location:
77 //+ * @param2: second parameter
82 * test_multiple_returns_tag_and_parameter:
84 * Multiple return value warnings are checked for when a returns
85 * parameter is encountered.
87 * Return Value: something
91 // EXPECT:88: Warning: Test: '@returns' parameter unexpected at this location:
92 //+ * @returns: something
94 // EXPECT:88: Warning: Test: encountered multiple 'Returns' parameters or tags for 'test_multiple_returns_tag_and_parameter'.
98 * test_multiple_parameters:
99 * @param1: first parameter
100 * @param1: first parameter
103 // EXPECT:100: Warning: Test: multiple '@param1' parameters for identifier 'test_multiple_parameters':
104 //+ * @param1: first parameter
109 * test_unexpected_tag:
110 * @param1: first parameter
113 * Tags should go after the comment block description
116 // EXPECT:111: Warning: Test: 'Returns:' tag unexpected at this location:
117 //+ * Returns: something
122 * test_multiple_returns_tag:
123 * @returns: something
125 * Multiple return value warnings are checked for when returns tag is used
128 * Return value: whatever
131 // EXPECT:127: Warning: Test: encountered multiple 'Returns' parameters or tags for 'test_multiple_returns_tag'.
132 // EXPECT:128: Warning: Test: encountered multiple 'Returns' parameters or tags for 'test_multiple_returns_tag'.
136 * test_multiple_tags:
142 // EXPECT:139: Warning: Test: multiple 'Since:' tags for identifier 'test_multiple_tags':
148 * test_tag_annotatable:
150 * There's currently 2 tags that can be annotated, so these don't emit warnings
152 * Returns: (allow-none): something
153 * Attributes: (free) (form) (annotations)
157 * test_tag_not_annotatable:
159 * Tags (except Returns: and Attributes:) don't have annotations
161 * Since: (allow-none): 2.24
164 // EXPECT:161: Warning: Test: annotations not supported for tag 'Since:'.
168 * test_multiline_annotations_on_parameter:
169 * @param1: (allow-none)
170 * (transfer full): first parameter
172 * Annotations spanning multiple lines are not valid
175 // EXPECT:170: Warning: Test: ignoring invalid multiline annotation continuation:
176 //+ * (transfer full): first parameter
181 * test_multiline_annotations_on_tag:
183 * Annotations spanning multiple lines are not valid
185 * Returns: (allow-none)
186 * (transfer full): something
189 // EXPECT:186: Warning: Test: ignoring invalid multiline annotation continuation:
190 //+ * (transfer full): something
196 * regress_test_invalid_comment:
199 * invalid comment with a line without
200 * https://bugzilla.gnome.org/show_bug.cgi?id=673806
203 // EXPECT:195: Warning: Test: ignoring unrecognized GTK-Doc comment block, identifier not found:
208 * regress_test_invalid_comment_end:
211 * invalid comment with a line without
212 * https://bugzilla.gnome.org/show_bug.cgi?id=689354 */
214 // EXPECT:212: Warning: Test: Comments should end with */ on a new line:
215 //+ * https://bugzilla.gnome.org/show_bug.cgi?id=689354 */