diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-07-29 12:29:40 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-10-08 20:56:50 +0200 |
commit | fca124199a3dc7bc9477b999644df0b93db20b13 (patch) | |
tree | 8a6e42b07e88cd36cc14d902da9721d3425c541c /tests | |
parent | 66c52d09102da8f8d808bfbf2c420dda4e7e8ee3 (diff) | |
download | gobject-introspection-fca124199a3dc7bc9477b999644df0b93db20b13.tar.gz |
giscanner: Fix GtkDocBlock.position...
... so it points to the start of the GTK-Doc comment
block instead of the position of the identifier field.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/warn/annotationparser.h | 4 | ||||
-rw-r--r-- | tests/warn/callback-invalid-scope.h | 4 | ||||
-rw-r--r-- | tests/warn/invalid-element-type.h | 6 | ||||
-rw-r--r-- | tests/warn/return-gobject.h | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/warn/annotationparser.h b/tests/warn/annotationparser.h index db04b5a0..12dc4cc7 100644 --- a/tests/warn/annotationparser.h +++ b/tests/warn/annotationparser.h @@ -15,7 +15,7 @@ void test_symbol_thrice_documented(); * no annotations at all. The last comment block seen by the parser "wins"... **/ -// EXPECT:12: Warning: Test: multiple comment blocks documenting 'test_symbol_thrice_documented:' identifier (already seen at annotationparser.h:4). +// EXPECT:11: Warning: Test: multiple comment blocks documenting 'test_symbol_thrice_documented:' identifier (already seen at annotationparser.h:3). /** @@ -24,4 +24,4 @@ void test_symbol_thrice_documented(); * ...and yet another one. **/ -// EXPECT:22: Warning: Test: multiple comment blocks documenting 'test_symbol_thrice_documented:' identifier (already seen at annotationparser.h:12). +// EXPECT:21: Warning: Test: multiple comment blocks documenting 'test_symbol_thrice_documented:' identifier (already seen at annotationparser.h:11). diff --git a/tests/warn/callback-invalid-scope.h b/tests/warn/callback-invalid-scope.h index d07f172e..34292a89 100644 --- a/tests/warn/callback-invalid-scope.h +++ b/tests/warn/callback-invalid-scope.h @@ -28,5 +28,5 @@ void test_callback_invalid3(GCallback *callback, gpointer user_data); // EXPECT:23: Warning: Test: "scope" annotation needs one option, 2 given // EXPECT:23: Warning: Test: invalid "scope" annotation option: "invalid" -// EXPECT:13: Warning: Test: test_callback_invalid2: argument callback: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async) -// EXPECT:22: Warning: Test: test_callback_invalid3: argument callback: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async) +// EXPECT:12: Warning: Test: test_callback_invalid2: argument callback: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async) +// EXPECT:21: Warning: Test: test_callback_invalid3: argument callback: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async) diff --git a/tests/warn/invalid-element-type.h b/tests/warn/invalid-element-type.h index 8028fb71..f7e86ca4 100644 --- a/tests/warn/invalid-element-type.h +++ b/tests/warn/invalid-element-type.h @@ -8,8 +8,8 @@ void test_invalid_list_element_type(GList *l1, GList *l2); -// EXPECT:4: Warning: Test: test_invalid_list_element_type: argument l1: Missing (element-type) annotation -// EXPECT:4: Warning: Test: test_invalid_list_element_type: argument l2: Missing (element-type) annotation +// EXPECT:3: Warning: Test: test_invalid_list_element_type: argument l1: Missing (element-type) annotation +// EXPECT:3: Warning: Test: test_invalid_list_element_type: argument l2: Missing (element-type) annotation // EXPECT:6: Warning: Test: "element-type" annotation for a list must have exactly one option, not 2 options // EXPECT:5: Warning: Test: "element-type" annotation takes at least one option, none given // EXPECT:5: Warning: Test: "element-type" annotation for a list must have exactly one option, not 0 options @@ -81,7 +81,7 @@ GPtrArray* test_unresolved_value_element_type(void); // EXPECT:30: Warning: Test: "element-type" annotation for a hash table must have exactly two options, not 1 option(s) // EXPECT:31: Warning: Test: "element-type" annotation for a hash table must have exactly two options, not 3 option(s) // EXPECT:43: Warning: Test: invalid (element-type) for a GByteArray, must be one of guint8, gint8 or gchar -// EXPECT:52: Warning: Test: test_invalid_ptrarray_element_type: argument p1: Missing (element-type) annotation +// EXPECT:51: Warning: Test: test_invalid_ptrarray_element_type: argument p1: Missing (element-type) annotation // EXPECT:54: Warning: Test: invalid (element-type) for a GPtrArray, must be a pointer // EXPECT:65: Warning: Test: test_unresolved_element_type: Unknown type: 'Unresolved' // EXPECT:73: Warning: Test: test_unresolved_value_element_type: Unknown type: 'GLib.Value' diff --git a/tests/warn/return-gobject.h b/tests/warn/return-gobject.h index b6c63045..5e621c3a 100644 --- a/tests/warn/return-gobject.h +++ b/tests/warn/return-gobject.h @@ -10,4 +10,4 @@ GObject * test_get_object(void); */ GObject * test_get_object2(void); -// EXPECT:8: Warning: Test: test_get_object2: return value: Missing (transfer) annotation +// EXPECT:7: Warning: Test: test_get_object2: return value: Missing (transfer) annotation |