Made swig strip out all structural comments

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13622 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dmitry Kabak 2012-08-16 11:35:02 +00:00
commit a9cdb000ba

View file

@ -3469,19 +3469,18 @@ doxygen_comment_item : DOXYGENSTRING {
DohReplace($1, "//!", "", 0);
DohReplace($1, "*/", "", 0);
/* isStructuralDoxygen() is disabled, since no comment
appears in such case. Need to fix. (most commands are
not translatable to javadoc anyway) */
if(0 && isStructuralDoxygen($1)){
$$ = new_node("doxycomm");
set_comment($$, $1);
}
else {
$$ = $1;
/* Throw out all structural comments */
if (isStructuralDoxygen($1)) {
Delete($1);
$1 = 0;
}
$$ = $1;
}
| doxygen_comment_item doxygen_comment_item {
Append($1, $2);
if ($1)
Append($1, $2);
else
$1 = $2;
$$ = $1;
}
;