Skip to content

Commit

Permalink
issue #8905 Documentation: WARN_NO_PARAMDOC not disabled by EXTRACT_ALL?
Browse files Browse the repository at this point in the history
Placing guard around the warning.
Making it consistent with the case that when a return type is needed.
  • Loading branch information
albert-github committed Nov 22, 2021
1 parent e321a87 commit 137e975
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/memberdef.cpp
Expand Up @@ -4003,8 +4003,12 @@ void MemberDefImpl::detectUndocumentedParams(bool hasParamCommand,bool hasReturn
)
)
{
warn_doc_error(getDefFileName(),getDefLine(),"documented empty return type of %s",

if (!Config_getBool(EXTRACT_ALL) && Config_getBool(WARN_IF_UNDOCUMENTED))
{
warn_doc_error(getDefFileName(),getDefLine(),"documented empty return type of %s",
qPrint(qualifiedName()));
}
}
else if ( // see if return needs to documented
m_impl->hasDocumentedReturnType ||
Expand Down

0 comments on commit 137e975

Please sign in to comment.