For what it’s worth, I think I got this particular one working, or
thereabouts:
(Salient) Doxyfile:
ALIASES = max_IRQL=“\par Max IRQL:\n”
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = YES
PREDEFINED = “__drv_maxIRQL(x)=//! \max_IRQL x”
HEADER:
//! \brief Function descr
__drv_maxIRQL(PASSIVE_LEVEL)
VOID myFunction1();
HTML:
Functions
VOID
myFunction1 ()
Function descr.
Function Documentation
VOID myFunction1
(
)
Function descr.
Max IRQL:
PASSIVE_LEVEL
Your code (the one that worked):
\! \brief Function descr
\! \max_IRQL PASSIVE_LEVEL
__drv_maxIRQL( PASSIVE_LEVEL )
VOID myFunction();
I assume that your use of ‘\!’ v. ‘//!’ is a typo.
Your ALIAS:
max_IRQL=“\par Max IRQL:\n”).
Mine:
ALIASES = max_IRQL=“\par Max IRQL:\n”
Your PREDEFINED:
\max_IRQL PASSIVE_LEVEL
Mine:
PREDEFINED = “__drv_maxIRQL(x)=//! \max_IRQL x”
I added the Doxygen comment marker ‘//!’ as a prefix. Without it, I’m not
sure what Doxygen thinks that it is.
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Roddy
Sent: Thursday, November 18, 2010 4:23 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Kernel code doc generator
I too gave up several years ago as keeping with changes to doxygen and
to prefast annotations just got intolerable. If anyone comes up with a
good solution please do post it here.
Mark Roddy
On Thu, Nov 18, 2010 at 4:12 PM, Martin O’Brien
wrote:
> Thanks.
>
> I went down the source code route as well, though several years ago. In
the
> end, I just gave up.
>
>
> Good luck,
>
> mm
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> xxxxx@gmail.com
> Sent: Thursday, November 18, 2010 4:08 PM
> To: Windows System Software Devs Interest List
> Subject: RE:[ntdev] Kernel code doc generator
>
> [QUOTE]
> writing a prepreprocessor that translated
> annotations (and some other things) into the appropriate doxygen special
> comments
> [/QUOTE]
>
> I was hoping (read: praying) that I wouldn’t have to resort to that.
> Unfortunately there has been no reply to my thread in the Doxygen forums.
>
> The annoying thing is that the current solution with the macro expansion
is
> so close to what we want… I am looking at the source code now to see
if
> I can understand why it sees the expanded macro as a global comment…
> unfortunately they did not use terms like ‘alias’ or ‘predefined’ in their
> source.
>
> I will post if I find something interesting
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
>
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer