Added doxygen:notranslate feature, to prevent running of automatic comment translation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13517 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6365770c7f
commit
346fdfcab7
4 changed files with 139 additions and 6 deletions
|
|
@ -412,6 +412,16 @@ String *JavaDocConverter::makeDocumentation(Node *node) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (GetFlag(node, "feature:doxygen:notranslate")) {
|
||||
String *comment = NewString("/**\n");
|
||||
Append(comment, documentation);
|
||||
// reformat the comment
|
||||
Replaceall(comment, "\n *", "\n");
|
||||
Replaceall(comment, "\n", "\n * ");
|
||||
Append(comment, "\n */\n");
|
||||
return comment;
|
||||
}
|
||||
|
||||
std::list < DoxygenEntity > entityList = parser.createTree(Char(documentation), Char(Getfile(documentation)), Getline(documentation));
|
||||
|
||||
// entityList.sort(CompareDoxygenEntities()); sorting currently not used,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue