Skip to content

Commit

Permalink
Bug 739209 - Invalid warning about undocumented C++ function imported…
Browse files Browse the repository at this point in the history
… from tagfile
  • Loading branch information
Dimitri van Heesch committed Dec 23, 2014
1 parent b4b4c9d commit f1c9603
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/classdef.cpp
Expand Up @@ -2673,7 +2673,7 @@ bool ClassDef::isLinkable() const
}
else
{
return isLinkableInProject() || isReference();
return isReference() || isLinkableInProject();
}
}

Expand Down
10 changes: 8 additions & 2 deletions src/memberdef.cpp
Expand Up @@ -3210,9 +3210,9 @@ void MemberDef::warnIfUndocumented()
static bool extractAll = Config_getBool("EXTRACT_ALL");

//printf("warnIfUndoc: d->isLinkable()=%d isLinkable()=%d "
// "isDocumentedFriendClass()=%d name()=%s prot=%d\n",
// "isDocumentedFriendClass()=%d name()=%s prot=%d isReference=%d\n",
// d->isLinkable(),isLinkable(),isDocumentedFriendClass(),
// name().data(),prot);
// name().data(),m_impl->prot,isReference());
if ((!hasUserDocumentation() && !extractAll) &&
!isFriendClass() &&
name().find('@')==-1 && d && d->name().find('@')==-1 &&
Expand Down Expand Up @@ -5092,3 +5092,9 @@ bool MemberDef::isRelatedOrFriend() const
return isRelated() || isForeign() || (isFriend() && !isFriendToHide());
}

bool MemberDef::isReference() const
{
return Definition::isReference() ||
(m_impl->templateMaster && m_impl->templateMaster->isReference());
}

1 change: 1 addition & 0 deletions src/memberdef.h
Expand Up @@ -263,6 +263,7 @@ class MemberDef : public Definition
QCString documentation() const;
QCString briefDescription(bool abbr=FALSE) const;
QCString fieldType() const;
bool isReference() const;


//-----------------------------------------------------------------------------------
Expand Down

0 comments on commit f1c9603

Please sign in to comment.