# Return value is separated from the text flow
if i.attrib['kind'] == 'return':
- assert not out.return_value
- out.return_value = parse_desc(state, i)
+ if out.return_value:
+ logging.warning("{}: superfluous @return section found, ignoring: {} ".format(state.current, parse_desc(state, i)))
+ else:
+ out.return_value = parse_desc(state, i)
# Ignore the RCS strings for now
elif i.attrib['kind'] == 'rcs':
logging.warning("{}: ignoring {} kind of <simplesect>".format(state.current, i.attrib['kind']))
/**
@brief Wrong
@param wrong This parameter is not here
+@return Returns nothing.
+@return Returns nothing, but second time. This is ignored.
*/
void bar();
<h2><a href="#func-members">Functions</a></h3>
<dl class="m-dox">
<dt>
- <span class="m-dox-wrap-bumper">void <a href="#a084dfc535219dee446df1c710e215839" class="m-dox-self" name="a084dfc535219dee446df1c710e215839">bar</a>(</span><span class="m-dox-wrap">)</span>
+ <span class="m-dox-wrap-bumper">void <a href="#a084dfc535219dee446df1c710e215839" class="m-dox">bar</a>(</span><span class="m-dox-wrap">)</span>
</dt>
<dd>Wrong.</dd>
</dl>
</section>
+ <section>
+ <h2>Function documentation</h2>
+ <section class="m-dox-details" id="a084dfc535219dee446df1c710e215839"><div>
+ <h3>
+ <span class="m-dox-wrap-bumper">void Warning::<wbr /></span><span class="m-dox-wrap"><span class="m-dox-wrap-bumper"><a href="#a084dfc535219dee446df1c710e215839" class="m-dox-self">bar</a>(</span><span class="m-dox-wrap">)</span></span>
+ </h3>
+ <p>Wrong.</p>
+ <table class="m-table m-fullwidth m-flat">
+ <tfoot>
+ <tr>
+ <th style="width: 1%">Returns</th>
+ <td>Returns nothing.</td>
+ </tr>
+ </tfoot>
+ </table>
+ </div></section>
+ </section>
</div>
</div>
</div>