Skip to content

Commit d18f2d8

Browse files
committed
issue #10209 UML diagrams do not honor HIDE_UNDOC_MEMBERS
In case `HIDE_UNDOC_MEMBERS` is set hide undocumented members also in UML diagrams.
1 parent 682b594 commit d18f2d8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/dotnode.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,14 @@ static void writeBoxMemberList(TextStream &t,
125125
constexpr auto br = "<BR ALIGN=\"LEFT\"/>";
126126
if (ml)
127127
{
128+
auto hideUndocMembers = Config_getEnum(HIDE_UNDOC_MEMBERS);
128129
int totalCount=0;
129130
for (const auto &mma : *ml)
130131
{
131132
if (mma->getClassDef()==scope &&
132-
(skipNames==nullptr || skipNames->find(mma->name().str())==std::end(*skipNames)))
133+
(skipNames==nullptr || skipNames->find(mma->name().str())==std::end(*skipNames)) &&
134+
!(hideUndocMembers && !mma->hasDocumentation())
135+
)
133136
{
134137
totalCount++;
135138
}
@@ -140,7 +143,9 @@ static void writeBoxMemberList(TextStream &t,
140143
for (const auto &mma : *ml)
141144
{
142145
if (mma->getClassDef() == scope &&
143-
(skipNames==nullptr || skipNames->find(mma->name().str())==std::end(*skipNames)))
146+
(skipNames==nullptr || skipNames->find(mma->name().str())==std::end(*skipNames)) &&
147+
!(hideUndocMembers && !mma->hasDocumentation())
148+
)
144149
{
145150
int numFields = Config_getInt(UML_LIMIT_NUM_FIELDS);
146151
if (numFields>0 && (totalCount>numFields*3/2 && count>=numFields))

0 commit comments

Comments
 (0)