GNOME Bugzilla – Bug 573332
Allow annotation of enums as bitfields
Last modified: 2015-02-07 16:55:30 UTC
Useful for cases where the scanner heuristic fails (e.g. if people don't use the '<<' bitshift operator).
Created attachment 129619 [details] [review] Allow annotation of enums as bitfields Add support for a `(type bitfield)' annotation for enums. Signed-off-by: Andreas Rottmann <a.rottmann@gmx.at>
I like the annotation style, but will it confuse gtk-doc? Can you change the hardcoded 'bitfield' string to be OPT_BITFIELD like the other options above? Also can you split it into two commits? One for the new doc style, and one for the change to use bitfields.
Created attachment 130021 [details] [review] Introduce documentation-block options Allow a documentation block to have options, e.g.: /* * SomeType: (OPT-NAME VALUE) ... */ Signed-off-by: Andreas Rottmann <a.rottmann@gmx.at>
Created attachment 130022 [details] [review] Bug 573332 - Allow annotation of enums as bitfields Add support for a `(type bitfield)' annotation for enums. Signed-off-by: Andreas Rottmann <a.rottmann@gmx.at>
(In reply to comment #2) > I like the annotation style, but will it confuse gtk-doc? > I haven't checked yet, but maybe gtk-doc indeed needs to be tweaked to understand/ignore the options. > Can you change the hardcoded 'bitfield' string to be OPT_BITFIELD like the > other options above? > Done. > Also can you split it into two commits? One for the new doc style, and one for > the change to use bitfields. > Done.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]