summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-12-28 18:24:07 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-12-28 18:24:07 (GMT)
commit1b402f49a0638dd0eec2a123462862c6d4c4084d (patch)
tree9c039804927fdd559d2c23364a1f34dbcd7eb61b /src
parent0b4b2d76e4cc8fcb85d9b3ad7252e676e5a1d784 (diff)
downloadDoxygen-1b402f49a0638dd0eec2a123462862c6d4c4084d.zip
Doxygen-1b402f49a0638dd0eec2a123462862c6d4c4084d.tar.gz
Doxygen-1b402f49a0638dd0eec2a123462862c6d4c4084d.tar.bz2
Bug 758132 - Brief description of non documented functions (fixes)
Diffstat (limited to 'src')
-rw-r--r--src/classdef.cpp2
-rw-r--r--src/memberdef.cpp8
-rw-r--r--src/memberlist.cpp4
3 files changed, 6 insertions, 8 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index 7d9e118..88f9a70 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -1849,7 +1849,7 @@ void ClassDef::writeDeclarationLink(OutputList &ol,bool &found,const char *heade
//static bool fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN");
//static bool vhdlOpt = Config_getBool("OPTIMIZE_OUTPUT_VHDL");
SrcLangExt lang = getLanguage();
- if (visibleInParentsDeclList() && hasDocumentation())
+ if (visibleInParentsDeclList())
{
if (!found) // first class
{
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index c99bf3c..7b2eb20 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -1422,7 +1422,6 @@ void MemberDef::writeDeclaration(OutputList &ol,
Definition *d=0;
ASSERT (cd!=0 || nd!=0 || fd!=0 || gd!=0); // member should belong to something
if (cd) d=cd; else if (nd) d=nd; else if (fd) d=fd; else d=gd;
- if (!hasDocumentation()) return;
//_writeTagData(compoundType);
_addToSearchIndex();
@@ -3228,10 +3227,9 @@ void MemberDef::warnIfUndocumented()
t="file", d=fd;
static bool extractAll = Config_getBool("EXTRACT_ALL");
- //printf("warnIfUndoc: d->isLinkable()=%d isLinkable()=%d "
- // "isDocumentedFriendClass()=%d name()=%s prot=%d isReference=%d\n",
- // d->isLinkable(),isLinkable(),isDocumentedFriendClass(),
- // name().data(),m_impl->prot,isReference());
+ //printf("%s:warnIfUndoc: hasUserDocs=%d isFriendClass=%d protection=%d isRef=%d isDel=%d\n",
+ // name().data(),
+ // hasUserDocumentation(),isFriendClass(),protectionLevelVisible(m_impl->prot),isReference(),isDeleted());
if ((!hasUserDocumentation() && !extractAll) &&
!isFriendClass() &&
name().find('@')==-1 && d && d->name().find('@')==-1 &&
diff --git a/src/memberlist.cpp b/src/memberlist.cpp
index b253682..f58ade4 100644
--- a/src/memberlist.cpp
+++ b/src/memberlist.cpp
@@ -324,6 +324,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
)
{
//printf("----- writePlainDeclaration() ----\n");
+ static bool hideUndocMembers = Config_getBool("HIDE_UNDOC_MEMBERS");
countDecMembers();
if (numDecMembers()==0)
{
@@ -387,8 +388,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
}
// if this is an anonymous enum and there are variables of this
// enum type (i.e. enumVars>0), then we do not show the enum here.
- if ((enumVars==0) // show enum here
- && md->hasDocumentation())
+ if (enumVars==0 && !hideUndocMembers) // show enum here
{
//printf("Enum!!\n");
if (first)