diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index 27957d9ab..ddcdc5477 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -193,15 +193,15 @@ static void set_comment(Node *n, String *comment) { if (!n || !comment) return; - if (Getattr(n, "DoxygenComment")) - Append(Getattr(n, "DoxygenComment"), comment); + if (Getattr(n, "doxygen")) + Append(Getattr(n, "doxygen"), comment); else { - Setattr(n, "DoxygenComment", comment); + Setattr(n, "doxygen", comment); /* This is the first comment, populate it with @params, if any */ p = Getattr(n, "parms"); while (p) { - if (Getattr(p, "DoxygenComment")) - Printv(comment, "\n@param ", Getattr(p, "name"), Getattr(p, "DoxygenComment"), NIL); + if (Getattr(p, "doxygen")) + Printv(comment, "\n@param ", Getattr(p, "name"), Getattr(p, "doxygen"), NIL); p=nextSibling(p); } } @@ -212,7 +212,7 @@ static void set_comment(Node *n, String *comment) { return; n = nextSibling(n); while (n && Getattr(n, "name") && Strcmp(Getattr(n, "name"), name) == 0) { - Setattr(n, "DoxygenComment", comment); + Setattr(n, "doxygen", comment); n = nextSibling(n); } } @@ -3474,7 +3474,7 @@ doxygen_comment_item : DOXYGENSTRING { not translatable to javadoc anyway) */ if(0 && isStructuralDoxygen($1)){ $$ = new_node("doxycomm"); - Setattr($$,"DoxygenComment",$1); + set_comment($$, $1); } else { $$ = $1; diff --git a/Source/DoxygenTranslator/src/DoxygenTranslator.cpp b/Source/DoxygenTranslator/src/DoxygenTranslator.cpp index 51df52f59..d9bf5f059 100644 --- a/Source/DoxygenTranslator/src/DoxygenTranslator.cpp +++ b/Source/DoxygenTranslator/src/DoxygenTranslator.cpp @@ -25,7 +25,7 @@ bool DoxygenTranslator::hasDocumentation(Node *node) { } String *DoxygenTranslator::getDoxygenComment(Node *node) { - return Getattr(node, "DoxygenComment"); + return Getattr(node, "doxygen"); }