Reduce verbosity of Java API generators
This commit is contained in:
parent
b8adc04545
commit
70234433d3
@ -987,14 +987,14 @@ extern "C" {
|
|||||||
msg = "// Return type '%s' is not supported, skipping the function\n\n" % fi.ctype
|
msg = "// Return type '%s' is not supported, skipping the function\n\n" % fi.ctype
|
||||||
self.skipped_func_list.append(c_decl + "\n" + msg)
|
self.skipped_func_list.append(c_decl + "\n" + msg)
|
||||||
j_code.write( " "*4 + msg )
|
j_code.write( " "*4 + msg )
|
||||||
print "SKIP:", c_decl, "\n\tdue to RET type", fi.ctype
|
print "SKIP:", c_decl.strip(), "\t due to RET type", fi.ctype
|
||||||
return
|
return
|
||||||
for a in fi.args:
|
for a in fi.args:
|
||||||
if a.ctype not in type_dict:
|
if a.ctype not in type_dict:
|
||||||
msg = "// Unknown type '%s' (%s), skipping the function\n\n" % (a.ctype, a.out or "I")
|
msg = "// Unknown type '%s' (%s), skipping the function\n\n" % (a.ctype, a.out or "I")
|
||||||
self.skipped_func_list.append(c_decl + "\n" + msg)
|
self.skipped_func_list.append(c_decl + "\n" + msg)
|
||||||
j_code.write( " "*4 + msg )
|
j_code.write( " "*4 + msg )
|
||||||
print "SKIP:", c_decl, "\n\tdue to ARG type", a.ctype, "/" + (a.out or "I")
|
print "SKIP:", c_decl.strip(), "\t due to ARG type", a.ctype, "/" + (a.out or "I")
|
||||||
return
|
return
|
||||||
|
|
||||||
self.ported_func_list.append(c_decl)
|
self.ported_func_list.append(c_decl)
|
||||||
|
@ -222,7 +222,6 @@ class JavadocGenerator(object):
|
|||||||
return (doc + " */").replace("::",".")
|
return (doc + " */").replace("::",".")
|
||||||
|
|
||||||
def printSummary(self):
|
def printSummary(self):
|
||||||
print
|
|
||||||
print "Javadoc Generator Summary:"
|
print "Javadoc Generator Summary:"
|
||||||
print " Total markers: %s" % self.markers_processed
|
print " Total markers: %s" % self.markers_processed
|
||||||
print " Undocumented markers: %s" % (self.markers_processed - self.markers_documented)
|
print " Undocumented markers: %s" % (self.markers_processed - self.markers_documented)
|
||||||
@ -256,7 +255,6 @@ if __name__ == "__main__":
|
|||||||
parser.print_help()
|
parser.print_help()
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
print "Parsing documentation..."
|
|
||||||
parser = rst_parser.RstParser(hdr_parser.CppHeaderParser())
|
parser = rst_parser.RstParser(hdr_parser.CppHeaderParser())
|
||||||
for m in options.modules:
|
for m in options.modules:
|
||||||
parser.parse(m, os.path.join(selfpath, "../../" + m))
|
parser.parse(m, os.path.join(selfpath, "../../" + m))
|
||||||
@ -268,7 +266,6 @@ if __name__ == "__main__":
|
|||||||
generator.show_warnings = options.warnings
|
generator.show_warnings = options.warnings
|
||||||
generator.show_errors = options.errors
|
generator.show_errors = options.errors
|
||||||
|
|
||||||
print "Generating javadoc comments for " + ", ".join(options.modules)
|
|
||||||
for path in args:
|
for path in args:
|
||||||
folder = os.path.abspath(path)
|
folder = os.path.abspath(path)
|
||||||
for jfile in [f for f in glob.glob(os.path.join(folder,"*.java")) if not f.endswith("-jdoc.java")]:
|
for jfile in [f for f in glob.glob(os.path.join(folder,"*.java")) if not f.endswith("-jdoc.java")]:
|
||||||
|
@ -612,7 +612,6 @@ class RstParser(object):
|
|||||||
return s
|
return s
|
||||||
|
|
||||||
def printSummary(self):
|
def printSummary(self):
|
||||||
print
|
|
||||||
print "RST Parser Summary:"
|
print "RST Parser Summary:"
|
||||||
print " Total sections: %s" % self.sections_total
|
print " Total sections: %s" % self.sections_total
|
||||||
print " Skipped sections: %s" % self.sections_skipped
|
print " Skipped sections: %s" % self.sections_skipped
|
||||||
|
Loading…
x
Reference in New Issue
Block a user