Fixed enum comments generation, added testcases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13184 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
72b23954fb
commit
b88de2aa89
14 changed files with 470 additions and 45 deletions
|
|
@ -33,6 +33,19 @@ public class doxygen_parsing_runme {
|
|||
parsedComments.put(classes[i].name(), classes[i].getRawCommentText());
|
||||
|
||||
MethodDoc[] methods = classes[i].methods();
|
||||
FieldDoc[] fields = classes[i].fields();
|
||||
FieldDoc[] constants = classes[i].enumConstants();
|
||||
|
||||
for (int j = 0; j < constants.length; j++) {
|
||||
FieldDoc f = constants[j];
|
||||
if (f.getRawCommentText().length() > 0)
|
||||
parsedComments.put(f.name(), f.getRawCommentText());
|
||||
}
|
||||
for (int j = 0; j < fields.length; j++) {
|
||||
FieldDoc f = fields[j];
|
||||
if (f.getRawCommentText().length() > 0)
|
||||
parsedComments.put(f.name(), f.getRawCommentText());
|
||||
}
|
||||
for (int j = 0; j < methods.length; j++) {
|
||||
MethodDoc m = methods[j];
|
||||
if (m.getRawCommentText().length() > 0)
|
||||
|
|
@ -84,6 +97,11 @@ public class doxygen_parsing_runme {
|
|||
}
|
||||
}
|
||||
|
||||
if (parsedComments.size() != wantedComments.size()) {
|
||||
System.out.println("Found " + (wantedComments.size()-parsedComments.size()) + " missed comment(s)!");
|
||||
errorCount++;
|
||||
}
|
||||
|
||||
System.exit(errorCount);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue