diff options
author | Alban Browaeys <prahal@yahoo.com> | 2012-04-10 01:06:45 +0200 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-04-17 11:12:24 -0400 |
commit | f41525d54f53edd9b0d665397f7c6c755ee3616b (patch) | |
tree | ae6361d314066027ac13f801fa7fece311cc993b /tests | |
parent | a847eb8017259f0ba2e5a1be3afdd2016d2a2542 (diff) | |
download | gobject-introspection-f41525d54f53edd9b0d665397f7c6c755ee3616b.tar.gz |
annotationparser: indent _parse_comment_block gtkdoc code
The current logic in _parse_comment_block of the annotationparser
check the identifier and use variables that only makes sense if a
result was returned (column_offset, original_line). This patch
indent the logic so it is only triggered if a result is found.
Otherwise it returns None as expected by call chain
"parse > parse_comment_block > _parse_comment_block":
ie in "parse":
comment_block = self.parse_comment_block(comment)
if comment_block is not None:
This still raises a lot of warnings but does not abort while generating
gir for libgnomekbd, mutter or telepathy-glib (those thus have to be
tweaked not to call g-ir-scanner with --warn-error at least until the
parser mask those false positives or the doc from those projects is
fixed to comply with the behaviour expected by giscanner).
https://bugzilla.gnome.org/show_bug.cgi?id=673806
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/regress.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h index 1740145f..43d9bd36 100644 --- a/tests/scanner/regress.h +++ b/tests/scanner/regress.h @@ -786,4 +786,12 @@ void regress_test_struct_fixed_array_frob (RegressTestStructFixedArray *str); void regress_has_parameter_named_attrs (int foo, gpointer attributes); +/** + + * regress_test_invalid_comment: + * @foo: a param + * + * invalid comment with a line without + * https://bugzilla.gnome.org/show_bug.cgi?id=673806 + */ #endif /* __GITESTTYPES_H__ */ |