From 3bc13df867552bbd935afcd07b7e3d1494c4de4f Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 20 Nov 2023 21:15:02 +0100 Subject: [PATCH] tiny improvement to find-missing: document missing enumvalues --- docs/find-missing.ignore | 1 + docs/find-missing.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/find-missing.ignore b/docs/find-missing.ignore index f7581519da..bd2d73068c 100644 --- a/docs/find-missing.ignore +++ b/docs/find-missing.ignore @@ -20,6 +20,7 @@ It is only used by find-missing, that will not report any definition linked here # These are used to make the C++ objects visible from the C world .. doxygentypedef:: s4u_Actor +.. doxygentypedef:: s4u_ActivitySet .. doxygentypedef:: s4u_Barrier .. doxygentypedef:: s4u_Comm .. doxygentypedef:: s4u_ConditionVariable diff --git a/docs/find-missing.py b/docs/find-missing.py index 7d370d5ba0..d9d3849992 100755 --- a/docs/find-missing.py +++ b/docs/find-missing.py @@ -100,8 +100,11 @@ def handle_python_module(fullname, englobing, elm): continue # print("Recurse on {}.{}".format(fullname, name)) handle_python_module("{}.{}".format(fullname, name), elm, data) + elif inspect.isclass(type(elm)): + found_decl("enumvalue", fullname) + print('.. autoenumvalue:: {}'.format(fullname)) else: - print('UNHANDLED TYPE {} : {!r} Type: {}'.format(fullname, elm, type(elm))) + print('UNHANDLED TYPE {} : {!r} Type: {} Englobing: {} str: {} Members: \n{}\n'.format(fullname, elm, type(elm), englobing, str(elm), inspect.getmembers(elm))) # Start the recursion on the provided Python modules for name in python_modules: -- 2.20.1