GNOME Bugzilla – Bug 740875
gtk-doc.make should have a "make check" rule failing if there are undocumented symbols
Last modified: 2014-12-12 15:12:21 UTC
It should be easy for projects to assert that they have 100% documentation coverage. telepathy-glib does it and I'm working on doing in glib/gobject/gio in bug #740814
Created attachment 291754 [details] [review] gtk-doc.make: Add ENABLE_GTK_DOC_CHECK option When enabled, "make check" will fail if some symbols are unused/undocumented/undeclared. Based on code from telepathy-glib, written by Simon McVittie <simon.mcvittie@collabora.co.uk>
Hm, that patch would break all projects that does not add an AM_CONDITIONAL(ENABLE_GTK_DOC_CHECK, []) in their configure.ac I don't know how this can be made conditional, the idea is that in glib we want to enable it only on linux. Any autotools guru who can help?
Created attachment 292313 [details] [review] gtk-doc.make: Add ENABLE_GTK_DOC_CHECK option When enabled, "make check" will fail if some symbols are unused/undocumented/undeclared. Based on code from telepathy-glib, written by Simon McVittie <simon.mcvittie@collabora.co.uk>
Like that, it seems to work, projects can redefine ENABLE_GTK_DOC_CHECK after the call to GTK_DOC_CHECK in their configure.ac.
Created attachment 292320 [details] [review] gtk-doc.make: Add ENABLE_GTK_DOC_CHECK option When enabled, "make check" will fail if some symbols are unused/undocumented/undeclared. Based on code from telepathy-glib, written by Simon McVittie <simon.mcvittie@collabora.co.uk>
Can't use use gtkdoc-check? See https://git.gnome.org/browse/gtk-doc/tree/examples/Makefile.am#n96
Yep, that seems to be exactly that, thanks !