Skip to content

Commit

Permalink
Bug 758132 - Brief description of non documented functions (fixes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Dec 28, 2015
1 parent 0b4b2d7 commit 1b402f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/classdef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
8 changes: 3 additions & 5 deletions src/memberdef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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 &&
Expand Down
4 changes: 2 additions & 2 deletions src/memberlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
)
{
//printf("----- writePlainDeclaration() ----\n");
static bool hideUndocMembers = Config_getBool("HIDE_UNDOC_MEMBERS");
countDecMembers();
if (numDecMembers()==0)
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1b402f4

Please sign in to comment.