After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 693040 - Preparations for major g-ir-doctool work
Preparations for major g-ir-doctool work
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
: 656444 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-02-01 22:08 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2015-02-07 16:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
girparser: Remove unused method (830 bytes, patch)
2013-02-01 22:08 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
Update .gitignore (709 bytes, patch)
2013-02-01 22:08 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
Remove the insane pre-commit hook (3.25 KB, patch)
2013-02-01 22:08 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
tests: %NULL-terminated is wrong (2.41 KB, patch)
2013-02-01 22:09 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
ast: Track enum members by symbol (870 bytes, patch)
2013-02-01 22:09 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
ast: Track enum/bitfield member parents (2.11 KB, patch)
2013-02-01 22:09 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
giscanner: Apply standard annotations to constant values (4.45 KB, patch)
2013-02-01 22:09 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
girparser: Move <doc> handling to passthrough (2.10 KB, patch)
2013-02-01 22:09 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
girparser: Clean up passthrough handling (1.83 KB, patch)
2013-02-01 22:09 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
girparser: Serialize and read back the instance_parameter (57.72 KB, patch)
2013-02-01 22:09 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
giscanner: Save function macros (29.12 KB, patch)
2013-02-01 22:09 UTC, Jasper St. Pierre (not reading bugmail)
reviewed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2013-02-01 22:08:37 UTC
This is stuff I've done at the DX hackfest.
Comment 1 Jasper St. Pierre (not reading bugmail) 2013-02-01 22:08:41 UTC
Created attachment 235036 [details] [review]
girparser: Remove unused method

pylint was complaining about the non-existent instance member,
self._filename
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-02-01 22:08:48 UTC
Created attachment 235037 [details] [review]
Update .gitignore
Comment 3 Jasper St. Pierre (not reading bugmail) 2013-02-01 22:08:56 UTC
Created attachment 235038 [details] [review]
Remove the insane pre-commit hook

I'm sick and tired of this.
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-02-01 22:09:05 UTC
Created attachment 235039 [details] [review]
tests: %NULL-terminated is wrong

This translates into "None-terminated" in Python, which is bad.
We should eventually strip this phrase entirely for certain languages
with a prefilter.
Comment 5 Jasper St. Pierre (not reading bugmail) 2013-02-01 22:09:15 UTC
Created attachment 235040 [details] [review]
ast: Track enum members by symbol
Comment 6 Jasper St. Pierre (not reading bugmail) 2013-02-01 22:09:19 UTC
Created attachment 235041 [details] [review]
ast: Track enum/bitfield member parents
Comment 7 Jasper St. Pierre (not reading bugmail) 2013-02-01 22:09:27 UTC
Created attachment 235042 [details] [review]
giscanner: Apply standard annotations to constant values
Comment 8 Jasper St. Pierre (not reading bugmail) 2013-02-01 22:09:34 UTC
Created attachment 235043 [details] [review]
girparser: Move <doc> handling to passthrough
Comment 9 Jasper St. Pierre (not reading bugmail) 2013-02-01 22:09:41 UTC
Created attachment 235044 [details] [review]
girparser: Clean up passthrough handling

Instead of remembering to have to set unknown_depth, make a wrapper
function that does it for us.
Comment 10 Jasper St. Pierre (not reading bugmail) 2013-02-01 22:09:47 UTC
Created attachment 235045 [details] [review]
girparser: Serialize and read back the instance_parameter

g-ir-doc-tool wants to use the instance parameter to read docs
and the parameter name, so it needs to be shuttled through the
GIR.
Comment 11 Jasper St. Pierre (not reading bugmail) 2013-02-01 22:09:56 UTC
Created attachment 235046 [details] [review]
giscanner: Save function macros

In order to replace gtk-doc, we need to ensure we add documentation
for function macros. Put these in the GIR file as well, which is another
thing that won't be in the typelib.

We don't save the expansion, as it's hard to do from the parser as far
as I can tell.
Comment 12 Colin Walters 2013-02-02 00:04:28 UTC
Review of attachment 235036 [details] [review]:

Git log isn't very helpful for why this exists, so looks OK.
Comment 13 Colin Walters 2013-02-02 00:09:07 UTC
Review of attachment 235037 [details] [review]:

Sure.
Comment 14 Colin Walters 2013-02-02 00:12:01 UTC
Review of attachment 235038 [details] [review]:

Yeah...this would be an easier story to tell if we had the tests automated.  Though maybe the Ubuntu Jenkins builder is running through g-i make check?  Yep, it is:
https://jenkins.qa.ubuntu.com/view/Raring/view/JHBuild%20Gnome/job/jhbuild-amd64-gobject-introspection/lastBuild/artifact/gobject-introspection.log
Comment 15 Colin Walters 2013-02-02 00:13:26 UTC
Review of attachment 235039 [details] [review]:

Right.
Comment 16 Colin Walters 2013-02-02 00:14:39 UTC
Review of attachment 235040 [details] [review]:

This is OK.
Comment 17 Colin Walters 2013-02-02 00:15:02 UTC
Review of attachment 235041 [details] [review]:

Ok.
Comment 18 Colin Walters 2013-02-02 00:15:49 UTC
Review of attachment 235042 [details] [review]:

Yep, looks right.
Comment 19 Colin Walters 2013-02-02 00:16:13 UTC
Review of attachment 235043 [details] [review]:

Yep, nicer.
Comment 20 Colin Walters 2013-02-02 00:18:12 UTC
Review of attachment 235044 [details] [review]:

::: girepository/girparser.c
@@ +345,3 @@
 
+static void
+passthrough (ParseContext *ctx)

Maybe set_passthrough_mode() or something?  But not a big deal.
Comment 21 Colin Walters 2013-02-02 00:20:22 UTC
Review of attachment 235045 [details] [review]:

Looks right.
Comment 22 Colin Walters 2013-02-02 00:31:33 UTC
Review of attachment 235046 [details] [review]:

So gtk-doc has bits to ignore the standard FOO_IS_BAR macros that we should probably lift before we land this:

http://git.gnome.org/browse/gtk-doc/tree/gtkdoc-scan.in#n847
Comment 23 Jasper St. Pierre (not reading bugmail) 2013-02-02 00:47:37 UTC
Attachment 235036 [details] pushed as 7cfc4ce - girparser: Remove unused method
Attachment 235037 [details] pushed as 4076684 - Update .gitignore
Attachment 235038 [details] pushed as de84ea0 - Remove the insane pre-commit hook
Attachment 235039 [details] pushed as 4f8c0f4 - tests: %NULL-terminated is wrong
Attachment 235040 [details] pushed as 5581554 - ast: Track enum members by symbol
Attachment 235041 [details] pushed as f027b68 - ast: Track enum/bitfield member parents
Attachment 235042 [details] pushed as 0f5f94e - giscanner: Apply standard annotations to constant values
Attachment 235043 [details] pushed as 5a6f6a7 - girparser: Move <doc> handling to passthrough
Attachment 235044 [details] pushed as 93cd5b2 - girparser: Clean up passthrough handling
Attachment 235045 [details] pushed as 9c0bd59 - girparser: Serialize and read back the instance_parameter


I put macros in another branch, and we'll revisit them later.
Comment 24 Simon Feltman 2013-09-13 22:31:22 UTC
*** Bug 656444 has been marked as a duplicate of this bug. ***
Comment 25 André Klapper 2015-02-07 16:48:06 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]