Commit f1c96033 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 739209 - Invalid warning about undocumented C++ function imported from tagfile

parent b4b4c9de
......@@ -2673,7 +2673,7 @@ bool ClassDef::isLinkable() const
}
else
{
return isLinkableInProject() || isReference();
return isReference() || isLinkableInProject();
}
}
......
......@@ -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 &&
......@@ -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());
}
......@@ -263,6 +263,7 @@ class MemberDef : public Definition
QCString documentation() const;
QCString briefDescription(bool abbr=FALSE) const;
QCString fieldType() const;
bool isReference() const;
//-----------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment