summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhanna Tsitkov <tsitkova@mit.edu>2013-01-14 13:54:25 -0500
committerZhanna Tsitkov <tsitkova@mit.edu>2013-01-14 13:54:25 -0500
commit7364136c8fb95b1fd096bd62293b3dc4367ce424 (patch)
treec2f8df333a9412574a5df9ef5ed7151a50eb8a95
parent0d4305e5a988acde70952966eec2b6b6b46eedd8 (diff)
downloadkrb5-7364136c8fb95b1fd096bd62293b3dc4367ce424.tar.gz
krb5-7364136c8fb95b1fd096bd62293b3dc4367ce424.tar.xz
krb5-7364136c8fb95b1fd096bd62293b3dc4367ce424.zip
Help Sphinx to diff C-types for better x-reference
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.
-rw-r--r--doc/tools/doxybuilder_types.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/tools/doxybuilder_types.py b/doc/tools/doxybuilder_types.py
index 4bb6e1868f..24e0a57db3 100644
--- a/doc/tools/doxybuilder_types.py
+++ b/doc/tools/doxybuilder_types.py
@@ -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':