X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d83e1982209eb12999bd263289ff46940ed9188d..b760c29144c4d7d86049c079945c33c6d6a9cfc7:/docs/find-missing.py diff --git a/docs/find-missing.py b/docs/find-missing.py index a106d87984..913d595820 100755 --- a/docs/find-missing.py +++ b/docs/find-missing.py @@ -190,14 +190,14 @@ for arg in xml_files: elif kind == "typedef": if compoundname not in doxy_type: doxy_type[compoundname] = [] - doxy_type[compoundname].append(name) + doxy_type[compoundname].append(name) elif kind == "friend": pass # Ignore friendship else: print ("member {}::{} is of kind {}".format(compoundname, name, kind)) # Forget about the declarations that are done in the RST -with os.popen('grep doxygenfunction:: find-missing.ignore source/*rst|sed \'s/^.*doxygenfunction:: //\'') as pse: +with os.popen('grep doxygenfunction:: find-missing.ignore source/*rst|sed \'s/^.*doxygenfunction:: //\'|sed \'s/ *const//\'') as pse: for line in (l.strip() for l in pse): (klass, obj, args) = (None, None, None) if "(" in line: @@ -256,11 +256,11 @@ with os.popen('grep doxygentypedef:: find-missing.ignore source/*rst|sed \'s/^.* if len(doxy_type[klass]) == 0: del doxy_type[klass] -# Dump the undocumented Doxygen declarations +# Dump the undocumented Doxygen declarations for obj in sorted(doxy_funs): for meth in sorted(doxy_funs[obj]): for args in sorted(doxy_funs[obj][meth]): - if obj is '': + if obj == '': print(".. doxygenfunction:: {}{}".format(meth, args)) else: print(".. doxygenfunction:: {}::{}{}".format(obj, meth, args)) @@ -271,8 +271,7 @@ for obj in doxy_vars: for obj in doxy_type: for meth in sorted(doxy_type[obj]): - if obj is '': + if obj == '': print(".. doxygentypedef:: {}".format(meth)) else: print(".. doxygentypedef:: {}::{}".format(obj, meth)) - \ No newline at end of file