Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
f
[simgrid.git] / docs / find-missing.py
index 9ee58b4..ac61890 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/env python3
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2019-2022. The SimGrid Team. All rights reserved.
+# Copyright (c) 2019-2023. The SimGrid Team. All rights reserved.
 
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the license (GNU LGPL) which comes with this package.
@@ -48,7 +48,6 @@ xml_files = [
     'build/xml/host_8h.xml',
     'build/xml/link_8h.xml',
     'build/xml/mailbox_8h.xml',
-    'build/xml/msg_8h.xml',
     'build/xml/mutex_8h.xml',
     'build/xml/semaphore_8h.xml',
     'build/xml/vm_8h.xml',
@@ -95,6 +94,9 @@ def handle_python_module(fullname, englobing, elm):
     elif isinstance(elm, (int, str)): # We do have such a data, directly in the SimGrid top module
         found_decl("data", fullname)
 #        print('.. autodata:: {}'.format(fullname))
+    elif inspect.isclass(type(elm)): # Enum classes are of that kind
+        found_decl("data", fullname)
+        #print('.. autodata:: {}'.format(fullname))
     elif inspect.ismodule(elm) or inspect.isclass(elm):
         for name, data in inspect.getmembers(elm):
             if name.startswith('__'):
@@ -102,7 +104,7 @@ def handle_python_module(fullname, englobing, elm):
 #            print("Recurse on {}.{}".format(fullname, name))
             handle_python_module("{}.{}".format(fullname, name), elm, data)
     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: