Skip to content

Commit a09a774

Browse files
committed
issue #10235 separator in warning for C#
Setting correct separator in identified warnings for C#.
1 parent a996a63 commit a09a774

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/memberdef.cpp

+8-3
Original file line numberDiff line numberDiff line change
@@ -3975,8 +3975,11 @@ void MemberDefImpl::warnIfUndocumented() const
39753975
!isReference() && !isDeleted()
39763976
)
39773977
{
3978+
SrcLangExt lang = getLanguage();
3979+
QCString sep = getLanguageSpecificSeparator(lang,TRUE);
39783980
warn_undoc(getDefFileName(),getDefLine(),"Member %s%s (%s) of %s %s is not documented.",
3979-
qPrint(name()),qPrint(argsString()),qPrint(memberTypeName()),qPrint(t),qPrint(d->name()));
3981+
qPrint(name()),qPrint(argsString()),qPrint(memberTypeName()),qPrint(t),
3982+
qPrint(sep=="::"?d->name():substitute(d->name(),"::",sep)));
39803983
}
39813984
else if (!hasDetailedDescription())
39823985
{
@@ -3990,8 +3993,10 @@ void MemberDefImpl::warnIfUndocumented() const
39903993
{
39913994
if (!fmd->isLinkableInProject())
39923995
{
3993-
warn(fmd->getDefFileName(),fmd->getDefLine(), "Documentation for enum member '%s::%s' is missing.",
3994-
qPrint(qualifiedName()), qPrint(fmd->name()));
3996+
SrcLangExt lang = getLanguage();
3997+
QCString sep = getLanguageSpecificSeparator(lang,TRUE);
3998+
warn(fmd->getDefFileName(),fmd->getDefLine(), "Documentation for enum member '%s%s%s' is missing.",
3999+
qPrint(qualifiedName()),qPrint(sep),qPrint(fmd->name()));
39954000
}
39964001
}
39974002
}

0 commit comments

Comments
 (0)