GNOME Bugzilla – Bug 303337
gtk-doc doesn't parse and handle functions returning explicit enums
Last modified: 2005-09-15 14:59:03 UTC
Please describe the problem: A function like: enum FooEnum my_function () { } is not parsed by gtk-doc. So, the comments for such functions are not reported in the documentation produced by gtk-doc. Functions with arguments of type "enum foo an_argument" are not parsed either. gtk-doc expects that enums are defined as: typedef enum _FooEnum { /*blah*/ } FooEnum ; Steps to reproduce: 1. 2. 3. Actual results: Expected results: I would expect gtk-doc to correctly parse declarations where the enum keyword is explicitely specified. Does this happen every time? yes Other information:
Created attachment 46122 [details] [review] A patch that fixes the bug for me This patch seems to fix the problem for me. It just completes the regexps used to parse function declarations and arguments so that they accepts enums where the 'enum' keyword is explicitely specified.
this is still an issue in CVS HEAD, marking version 1.4, GNOME Version 2.11/2.12 patch is a little bit out of date, marking priority high to get patch reviewed.
patch applied. thanks