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 532395 - inline function parsing problems (e.g. in glib api docs)
inline function parsing problems (e.g. in glib api docs)
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: 1.12
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-09 19:18 UTC by Marc-Andre Lureau
Modified: 2009-01-26 08:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marc-Andre Lureau 2008-05-09 19:18:54 UTC
gtkdoc-mkdb --module=glib --source-dir=../../.. --output-format=xml --expand-content-files="" --main-sgml-file=glib-docs.sgml --sgml-mode --output-format=xml 
Use of uninitialized value in concatenation (.) or string at /opt/gnome2/share/gtk-doc/data/gtkdoc-common.pl line 326.
Use of uninitialized value in concatenation (.) or string at /opt/gnome2/share/gtk-doc/data/gtkdoc-common.pl line 326.
:: warning: Parameter description for Returns is missing in source code comment block.
./tmpl/types.sgml:182: warning: Can't parse args for function guint64: *g_thread_gettime) (void

./tmpl/macros_misc.sgml:370: warning: Can't parse args for function G_LIKELY: g_atomic_pointer_get ((void*volatile*) value_location) != NULL)return FALSE;elsereturn g_once_init_enter_impl (value_location

Use of uninitialized value in concatenation (.) or string at /opt/gnome2/share/gtk-doc/data/gtkdoc-common.pl line 326.
Use of uninitialized value in concatenation (.) or string at /opt/gnome2/share/gtk-doc/data/gtkdoc-common.pl line 326.
:: warning: Field description for closure_callback is missing in source code comment block.
Comment 1 Marc-Andre Lureau 2008-05-09 19:19:28 UTC
gtk-doc: Rebuilding template files
cd . && gtkdoc-mktmpl --module=glib 
###Can't parse args for function guint64: *g_thread_gettime) (void

###Can't parse args for function G_LIKELY: g_atomic_pointer_get ((void*volatile*) value_location) != NULL)return FALSE;elsereturn g_once_init_enter_impl (value_location

WARNING: No declaration found for: tm
WARNING: No declaration found for: g_test_config_vars
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2008-05-20 17:29:19 UTC
Regarding comment #1. will cehck those, should be easy to fix. Regarding comment #2 it seems to identify function pointer declarations as functions. will check that too.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2008-06-04 11:46:17 UTC
svn should be improved now. Atleast those "Use of uninitialized value in concatenation (.) or string at" mentioned in comment #1 should be fixed. the parsing issues are a different story.
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2009-01-23 14:36:44 UTC
hmmpf, not very nice things:

Problem 1:
find . -type f -exec grep -Hn "*g_thread_gettime) (void" {} \;
./gthread.c:87:guint64        (*g_thread_gettime) (void) = gettime;
./gthread.h:120:GLIB_VAR guint64   (*g_thread_gettime) (void);

find . -type f -exec grep -Hn "__builtin_clzl(number)) + 1" {} \;
./gutils.h:350:	   ((GLIB_SIZEOF_LONG * 8 - 1) ^ __builtin_clzl(number)) + 1 : 1;
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2009-01-23 15:06:16 UTC
Adding SCAN_OPTIONS=--ignore-decorators="GLIB_VAR" glib's Makefile.am to fix Problem 1 (duplicate of Bug #477532).

Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2009-01-26 08:35:41 UTC
2009-01-26  Stefan Kost  <ensonic@users.sf.net>

	* gtkdoc-scan.in:
	* tests/bugs/docs/tester-sections.txt:
	* tests/bugs/src/tester.c:
	* tests/bugs/src/tester.h:
	  Handle inline functions in headers. Fixes #532395.