GNOME Bugzilla – Bug 697625
giscanner: only parse GTK-Doc comment blocks, ignore the rest
Last modified: 2015-02-07 17:02:38 UTC
For example, GTK+ has over 15.000 comment blocks (/* ... */) of which only about 5.000 are GTK-Doc comment blocks (/** ... */). No need to store and parse those +-10.000 comment blocks just to find out we don't care about them anyway.
Created attachment 241041 [details] [review] giscanner: only parse GTK-Doc comment blocks, ignore the rest
Review of attachment 241041 [details] [review]: Good catch, yes.
Comment on attachment 241041 [details] [review] giscanner: only parse GTK-Doc comment blocks, ignore the rest Committed, thanks for the review!
Is there any way to use lex to parse the comment rather than custom code like this?
(In reply to comment #4) > Is there any way to use lex to parse the comment rather than custom code like > this? Not sure it can be done without breaking https://git.gnome.org/browse/gobject-introspection/tree/giscanner/scannerlexer.l?id=c0e748e1cdf8cf0803266f94c3c5ad154df504a8#n80 ? Uhm, looking at that, parse_trigraph() does not parse trigraphs but GTK-Doc stuct field/enum value (private, public) and glib-mkenums (flags) "annotations"... Also, the "protected" alias for "private" is missing: https://git.gnome.org/browse/gtk-doc/tree/gtkdoc-mkdb.in?id=8972559fcaafd05ebad7284790d20c33ff316181#n1506
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]