From 3faf538b20dcffc3ea645e459c3f9445f129a051 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 9 Jun 2020 00:09:50 +0200 Subject: [PATCH] documentation/doxygen: don't set is_final=False for non-classes. --- documentation/doxygen.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/documentation/doxygen.py b/documentation/doxygen.py index cde5914a..21b8ee32 100755 --- a/documentation/doxygen.py +++ b/documentation/doxygen.py @@ -2228,10 +2228,8 @@ def extract_metadata(state: State, xml): break # Final classes - if compound.kind in ['struct', 'class', 'union'] and compounddef.attrib.get('final') == 'yes': - compound.is_final = True - else: - compound.is_final = False + if compound.kind in ['struct', 'class', 'union']: + compound.is_final = compounddef.attrib.get('final') == 'yes' if compound.kind in ['class', 'struct', 'union']: # Fix type spacing @@ -2542,10 +2540,8 @@ def parse_xml(state: State, xml: str): state.current_prefix = [] # Final classes - if compound.kind in ['struct', 'class', 'union'] and compounddef.attrib.get('final') == 'yes': - compound.is_final = True - else: - compound.is_final = False + if compound.kind in ['struct', 'class', 'union']: + compound.is_final = compounddef.attrib.get('final') == 'yes' # Decide about the include file for this compound. Classes get it always, # namespaces without any members too. -- 2.30.2