chiark / gitweb /
doxygen: name the function better.
authorVladimír Vondruš <mosra@centrum.cz>
Tue, 16 Jan 2018 22:22:24 +0000 (23:22 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 17 Jan 2018 00:46:31 +0000 (01:46 +0100)
doxygen/dox2html5.py

index 08728a9ba977cea54da1d897b323d09a5fd54a54..510f86fe3f60d17c5d7749c73cf9f9f18dae1cd6 100755 (executable)
@@ -1150,7 +1150,7 @@ def extract_metadata(state: State, xml):
     compound.brief = parse_desc(state, compounddef.find('briefdescription'))
     compound.has_details = compound.brief or compounddef.find('detaileddescription')
     compound.children = []
-    compound.parent = None # is filled in by build_tree()
+    compound.parent = None # is filled in by postprocess_state()
 
     if compound.kind in ['class', 'struct', 'union']:
         # Fix type spacing
@@ -1177,7 +1177,7 @@ def extract_metadata(state: State, xml):
 
     state.compounds[compound.id] = compound
 
-def build_tree(state: State):
+def postprocess_state(state: State):
     for _, compound in state.compounds.items():
         for child in compound.children:
             if child in state.compounds:
@@ -1942,7 +1942,7 @@ def run(doxyfile, templates=default_templates, wildcard=default_wildcard, index_
     for file in xml_files_metadata:
         extract_metadata(state, file)
 
-    build_tree(state)
+    postprocess_state(state)
 
     for file in xml_files:
         if os.path.basename(file) == 'index.xml':