Aquileo | Recent changes to 18: invalid warning when hierarchically documenting class methodhttps://sourceforge.net/p/docpp/bugs/18/2003-04-20T01:20:41ZRecent changes to 18: invalid warning when hierarchically documenting class methodAquileo | invalid warning when hierarchically documenting class method2003-04-20T01:20:41Z2003-04-20T01:20:41ZM. Serkan Apaydinhttps://sourceforge.net/u/apaydin/https://sourceforge.net00a0b57b65adb6dac064ab1e9b34e2a1b2f4f94c<div class="markdown_content"><p>Hi,</p>
<p>I am receiving an invalid warning from doc++ when I <br />
am trying to document the methods of a class <br />
hierarchically. Here is an example:<br />
/**@name protein.C */<br />
//@{</p>
<p>// start methods and functions</p>
<p>/**@name constructor, destructor, and node creation */</p>
<p>//@{<br />
///constructor<br />
Protein::Protein(int _index)<br />
{<br />
// the constructor code<br />
}</p>
<p>///destructor<br />
Protein::~Protein()<br />
{<br />
// some code here.<br />
}</p>
<p>//@}</p>
<p>/** setup related */</p>
<p>//@{<br />
///setup code.<br />
void Protein::doSetup()<br />
{<br />
//other code here<br />
}<br />
//@}</p>
<p>//@}</p>
<p>And then run doc++ with the parameter file containing:<br />
showFilenames true<br />
verboseOperation true<br />
HTMLSyntax true<br />
useTablesWithBorders true<br />
outputDir html<br />
sortEntries true</p>
<p>I get such warnings:<br />
Warning: no parent `protein.C ::constructor, destructor, <br />
and node creation ::Protein' for ` protein.C ::constructor, <br />
destructor, and node creation ::Protein::Protein(int <br />
_index)' found</p>
<p>if I add a line just before the constructor <br />
having /**@name protein*/, the warning disappears, but <br />
then the documentation does not contain anything for <br />
the constructor method (it instead contains a link with <br />
title protein, and then all following methods in that <br />
scope (such as the destructor) appear after clicking that <br />
link. </p>
<p>I think the reason is the use of &quot;::&quot; within doc++ itself for <br />
denoting structure (as can be seen from the warning) <br />
and when I use &quot;::&quot; in my code for my class methods, it <br />
confuses doc++ and makes it look for a protein parent, <br />
which it cannot find, and thus gives a warning.</p>
<p>Although the warning appears, the resulting <br />
documentation is as I want, but the warnings are <br />
nevertheless annoying.</p></div>