summaryrefslogtreecommitdiffstats
path: root/doc/tools/doxybuilder_funcs.py
diff options
context:
space:
mode:
authorBen Kaduk <kaduk@mit.edu>2012-11-21 11:31:06 -0500
committerBen Kaduk <kaduk@mit.edu>2012-11-27 17:52:54 -0500
commitf17cc2c9edc4f36c96391d438ddeaf5bab5b2b65 (patch)
tree59b1dbc64c56671d4129ddacf79adb2275528410 /doc/tools/doxybuilder_funcs.py
parent484ac9228b317b96a81c9e88778c521c54d49213 (diff)
downloadkrb5-f17cc2c9edc4f36c96391d438ddeaf5bab5b2b65.tar.gz
krb5-f17cc2c9edc4f36c96391d438ddeaf5bab5b2b65.tar.xz
krb5-f17cc2c9edc4f36c96391d438ddeaf5bab5b2b65.zip
Exclude lists for doxygen API docs
Doxygen will pick up every function, macro, and typedef defined in krb5.h; some of these may not actually be part of the public API for one reason or another. Provide hardcoded exclude lists for macro/function/type names for which we do not want to emit reStructuredText documentation, and check these lists when processing the Doxygen XML output. Seed these lists with the macros TRUE, FALSE, KRB5_OLD_CRYPTO, KRB5_GENERAL__, KRB5_CALLCONV, KRB5_CALLCONV_C, KRB5_CALLCONV_WRONG, KRB5INT_BEGIN_DECLS, KRB5INT_END_DECLS, and KRB5_ATTR_DEPRECATED, and typedefs krb5_cc_ops and krb5_responder_context. The booleans are compatibility cruft that we do not want to advertise, and the other macros are for internal use for signalling and platform compatibility. The typedefs are functioning just as forward declarations. For consistency, remove KRB5_OLD_CRYPTO.rst from the macros index; it had no content even when we did generate it. ticket: 7447 tags: pullup target_version: 1.11
Diffstat (limited to 'doc/tools/doxybuilder_funcs.py')
-rw-r--r--doc/tools/doxybuilder_funcs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/tools/doxybuilder_funcs.py b/doc/tools/doxybuilder_funcs.py
index 7e54750c8b..b1ef8ac805 100644
--- a/doc/tools/doxybuilder_funcs.py
+++ b/doc/tools/doxybuilder_funcs.py
@@ -29,6 +29,8 @@ from xml.sax import make_parser
from xml.sax.handler import ContentHandler
from docmodel import *
+exclude_funcs = []
+
class DocNode(object):
"""
Represents the structure of xml node.
@@ -177,6 +179,8 @@ class DoxyFuncs(XML2AST):
print 'not processing node: %s' % node_type
return
+ if 'name' in data and data['name'] in exclude_funcs:
+ return
self.objects.append(DocModel(**data))
def save(self, templates, target_dir):