Permalink
Browse files

Bug 758132 - Brief description of non documented functions (fixes)

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Dec 28, 2015
1 parent 0b4b2d7 commit 1b402f49a0638dd0eec2a123462862c6d4c4084d
Showing with 6 additions and 8 deletions.
  1. +1 −1 src/classdef.cpp
  2. +3 −5 src/memberdef.cpp
  3. +2 −2 src/memberlist.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
{
@@ -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 &&
@@ -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)

0 comments on commit 1b402f4

Please sign in to comment.