diff --git a/src/classdef.cpp b/src/classdef.cpp index e6b90640b6e..5c42f578004 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -2673,7 +2673,7 @@ bool ClassDef::isLinkable() const } else { - return isLinkableInProject() || isReference(); + return isReference() || isLinkableInProject(); } } diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 29595cf2287..df984f85834 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -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()); +} + diff --git a/src/memberdef.h b/src/memberdef.h index a669d68f6d6..b68149fdce0 100644 --- a/src/memberdef.h +++ b/src/memberdef.h @@ -263,6 +263,7 @@ class MemberDef : public Definition QCString documentation() const; QCString briefDescription(bool abbr=FALSE) const; QCString fieldType() const; + bool isReference() const; //-----------------------------------------------------------------------------------