]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Help Sphinx to diff C-types for better x-reference
authorZhanna Tsitkov <tsitkova@mit.edu>
Mon, 14 Jan 2013 18:54:25 +0000 (13:54 -0500)
committerZhanna Tsitkov <tsitkova@mit.edu>
Mon, 14 Jan 2013 18:54:25 +0000 (13:54 -0500)
In some cases Doxygen xml output does not provide accurate classification
of the various C-types, thus preventing the full documentation x-referencing.
Give some hints to the Doxy/RST bridge.

doc/tools/doxybuilder_types.py

index 4bb6e1868fc061594cb9c329b2d15de18b0c5947..24e0a57db327d0c85575928b5bf9a3a8c556c23b 100644 (file)
@@ -275,6 +275,10 @@ class DoxyTypes(object):
             elif e.getparent().tag == 'ref':
                 if e.is_tail:
                     result.append(e.strip())
+                elif e.strip().find('(') > 0:
+                    result.append(':c:func:`%s`' % e.strip())
+                elif e.isupper():
+                    result.append(':c:data:`%s`' % e.strip())
                 else:
                     result.append(':c:type:`%s`' % e.strip())
             elif e.getparent().tag == 'emphasis':