Permalink
Browse files

Bug 739209 - Invalid warning about undocumented C++ function imported…

… from tagfile
  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Dec 23, 2014
1 parent b4b4c9d commit f1c96033bcea28e3ff4528299459b39488831669
Showing with 10 additions and 3 deletions.
  1. +1 −1 src/classdef.cpp
  2. +8 −2 src/memberdef.cpp
  3. +1 −0 src/memberdef.h
View
@@ -2673,7 +2673,7 @@ bool ClassDef::isLinkable() const
}
else
{
return isLinkableInProject() || isReference();
return isReference() || isLinkableInProject();
}
}
View
@@ -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());
}
View
@@ -263,6 +263,7 @@ class MemberDef : public Definition
QCString documentation() const;
QCString briefDescription(bool abbr=FALSE) const;
QCString fieldType() const;
bool isReference() const;
//-----------------------------------------------------------------------------------

0 comments on commit f1c9603

Please sign in to comment.