summaryrefslogtreecommitdiffstats
path: root/src/memberdef.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-05-24 14:35:26 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-05-24 14:35:26 (GMT)
commit3bc881556ef5aac73294a9306580b27f3f198cd3 (patch)
treed670b674c269066642bc40543f6ea4600bf527fd /src/memberdef.cpp
parent09aa9ba7da61c9452523f40719cf07bf36e6c976 (diff)
downloadDoxygen-3bc881556ef5aac73294a9306580b27f3f198cd3.zip
Doxygen-3bc881556ef5aac73294a9306580b27f3f198cd3.tar.gz
Doxygen-3bc881556ef5aac73294a9306580b27f3f198cd3.tar.bz2
Better warning for non documented struct
In case if a 'struct' we get the message about a 'class', by using the 'compoundTypeString' this can be corrected. (message was originally found in #7304)
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r--src/memberdef.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index ac7605d..d857fa6 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -4008,16 +4008,13 @@ void MemberDefImpl::warnIfUndocumented() const
const FileDef *fd = getFileDef();
const GroupDef *gd = getGroupDef();
const Definition *d=0;
- const char *t=0;
+ QCString t;
if (cd)
- t="class", d=cd;
+ t=cd->compoundTypeString(), d=cd;
else if (nd)
{
d=nd;
- if (d->getLanguage() == SrcLangExt_Fortran)
- t="module";
- else
- t="namespace";
+ t=nd->compoundTypeString();
}
else if (gd)
t="group", d=gd;
@@ -4036,7 +4033,7 @@ void MemberDefImpl::warnIfUndocumented() const
)
{
warn_undoc(getDefFileName(),getDefLine(),"Member %s%s (%s) of %s %s is not documented.",
- qPrint(name()),qPrint(argsString()),qPrint(memberTypeName()),t,qPrint(d->name()));
+ qPrint(name()),qPrint(argsString()),qPrint(memberTypeName()),qPrint(t),qPrint(d->name()));
}
else if (!isDetailedSectionLinkable())
{