Re: [Doxygen-users] Generating documentation without a function definition
Brought to you by:
dimitri
From: Matthew W. <mw_...@us...> - 2008-04-29 20:16:18
|
su...@et... wrote: > On Mon, 28 Apr 2008, Matthew Woehlke wrote: >> su...@et... wrote: >>> c:/Data/mshtml.h:347678: Warning: documented function `protected class >>> CTreePos *__thiscall CTreePos::RightmostDescendant' was not declared or >>> defined. >>> >>> I was just wondering if there's a way to generate documentation for a >>> function with the @fn directive even if it isn't declared/defined.. >> You could always wrap the declaration in a #if that's only enabled when >> parsing with doxygen... > > I'm not sure that I understand your suggestion. The problem is that I > don't have the function definition, only the prototype. Can I just declare > the method with a null body or what? Maybe I am confused what the original question was. I thought doxygen would generate doc with only the declaration available; your question made it sound like you didn't have that either. Declaration (a.k.a. prototype?): 'int foo(int bar, char *message);' If you have that, you should be able to add doxygen doc to it. If that isn't working, maybe you should tell us more about the problem. -- Matthew Yesterday, I thought of the best .sig that has ever been contemplated. Alas, I forgot it before I could write it down. |