Skip to content

Commit 2aef0e0

Browse files
bug_121547 extern variable is being referenced in documentation incorrectly (#7792)
It is made clear that where the variable is declared "extern" that it is also shown at that place in the documentation
1 parent fce24d0 commit 2aef0e0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/memberdef.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,7 +2733,7 @@ void MemberDefImpl::getLabels(QStrList &sl,const Definition *container) const
27332733
isFriend() || isRelated() ||
27342734
(isInline() && inlineInfo) ||
27352735
isSignal() || isSlot() ||
2736-
isStatic() ||
2736+
isStatic() || isExternal() ||
27372737
(getClassDef() && getClassDef()!=container && container->definitionType()==TypeClass) ||
27382738
(m_impl->memSpec & ~Entry::Inline)!=0
27392739
)
@@ -2745,7 +2745,7 @@ void MemberDefImpl::getLabels(QStrList &sl,const Definition *container) const
27452745
//ol.docify(" [");
27462746
SrcLangExt lang = getLanguage();
27472747
bool optVhdl = lang==SrcLangExt_VHDL;
2748-
bool extractPrivate = Config_getBool(EXTRACT_PRIVATE);
2748+
static bool extractPrivate = Config_getBool(EXTRACT_PRIVATE);
27492749
if (optVhdl)
27502750
{
27512751
sl.append(theTranslator->trVhdlType(getMemberSpecifiers(),TRUE));
@@ -2756,7 +2756,8 @@ void MemberDefImpl::getLabels(QStrList &sl,const Definition *container) const
27562756
else if (isRelated()) sl.append("related");
27572757
else
27582758
{
2759-
if (Config_getBool(INLINE_INFO) && isInline()) sl.append("inline");
2759+
if (isExternal()) sl.append("extern");
2760+
if (inlineInfo && isInline()) sl.append("inline");
27602761
if (isExplicit()) sl.append("explicit");
27612762
if (isMutable()) sl.append("mutable");
27622763
if (isStatic()) sl.append("static");

0 commit comments

Comments
 (0)