Re: [patch] Add options to output member names only (without return type and arguments)
"Johann Hanne" <[email protected]>
| Newsgroups | gmane.text.doxygen.devel |
|---|---|
| Message-ID | <[email protected]> |
Well, as always, forgot the attachment... ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Doxygen-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/doxygen-develop
doxygen-nameonly.diff
(text/x-diff, 2.4 KB)
--- doxygen-1.5.5/src/config.l 2008-02-05 22:07:51.000000000 +0100
+++ doxygen-1.5.5.jh1/src/config.l 2008-04-08 10:43:27.000000000 +0200
@@ -3098,6 +3098,19 @@
"used. If set to NO the values of all tags below this one will be ignored. \n",
FALSE
);
+ cb = addBool(
+ "MEMBER_LIST_NAMEONLY",
+ "If the MEMBER_LIST_NAMEONLY tag is set to YES Doxygen will "
+ "not print return type and arguments in the member list.\n",
+ FALSE
+ );
+ cb = addBool(
+ "MEMBER_DESC_NAMEONLY",
+ "If the MEMBER_DESC_NAMEONLY tag is set to YES Doxygen will "
+ "not print return type and arguments in the header of the "
+ "member description.\n",
+ FALSE
+ );
addObsolete("CGI_NAME");
addObsolete("CGI_URL");
addObsolete("DOC_URL");
--- doxygen-1.5.5/src/memberdef.cpp 2008-01-26 19:31:29.000000000 +0100
+++ doxygen-1.5.5.jh1/src/memberdef.cpp 2008-04-08 10:40:21.000000000 +0200
@@ -1244,7 +1244,7 @@
{
ltype="";
}
- else
+ else if (!Config_getBool("MEMBER_LIST_NAMEONLY"))
{
if (isObjCMethod())
{
@@ -1346,12 +1346,14 @@
this); // memberdef
}
- // *** write arguments
- if (argsString() && !isObjCMethod())
- {
- if (!isDefine()) ol.writeString(" ");
- //ol.docify(argsString());
- linkifyText(TextGeneratorOLImpl(ol),d,getBodyDef(),name(),argsString());
+ if (!(Config_getBool("MEMBER_LIST_NAMEONLY") && isFunction())) {
+ // *** write arguments
+ if (argsString() && !isObjCMethod())
+ {
+ if (!isDefine()) ol.writeString(" ");
+ //ol.docify(argsString());
+ linkifyText(TextGeneratorOLImpl(ol),d,getBodyDef(),name(),argsString());
+ }
}
// *** write exceptions
@@ -1778,8 +1780,12 @@
}
else
{
- linkifyText(TextGeneratorOLImpl(ol),container,getBodyDef(),name(),ldef);
- hasParameterList=writeDefArgumentList(ol,cd,scopeName,this);
+ if (Config_getBool("MEMBER_DESC_NAMEONLY")) {
+ ol.docify(name());
+ } else {
+ linkifyText(TextGeneratorOLImpl(ol),container,getBodyDef(),name(),ldef);
+ hasParameterList=writeDefArgumentList(ol,cd,scopeName,this);
+ }
}
if (hasOneLineInitializer()) // add initializer