Skip to content

Commit

Permalink
issue #10235 separator in warning for C#
Browse files Browse the repository at this point in the history
Setting correct separator in identified warnings for C#.
  • Loading branch information
albert-github committed Aug 16, 2023
1 parent a996a63 commit a09a774
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/memberdef.cpp
Expand Up @@ -3975,8 +3975,11 @@ void MemberDefImpl::warnIfUndocumented() const
!isReference() && !isDeleted()
)
{
SrcLangExt lang = getLanguage();
QCString sep = getLanguageSpecificSeparator(lang,TRUE);
warn_undoc(getDefFileName(),getDefLine(),"Member %s%s (%s) of %s %s is not documented.",
qPrint(name()),qPrint(argsString()),qPrint(memberTypeName()),qPrint(t),qPrint(d->name()));
qPrint(name()),qPrint(argsString()),qPrint(memberTypeName()),qPrint(t),
qPrint(sep=="::"?d->name():substitute(d->name(),"::",sep)));
}
else if (!hasDetailedDescription())
{
Expand All @@ -3990,8 +3993,10 @@ void MemberDefImpl::warnIfUndocumented() const
{
if (!fmd->isLinkableInProject())
{
warn(fmd->getDefFileName(),fmd->getDefLine(), "Documentation for enum member '%s::%s' is missing.",
qPrint(qualifiedName()), qPrint(fmd->name()));
SrcLangExt lang = getLanguage();
QCString sep = getLanguageSpecificSeparator(lang,TRUE);
warn(fmd->getDefFileName(),fmd->getDefLine(), "Documentation for enum member '%s%s%s' is missing.",
qPrint(qualifiedName()),qPrint(sep),qPrint(fmd->name()));
}
}
}
Expand Down

0 comments on commit a09a774

Please sign in to comment.