diff options
author | albert-github <albert.tests@gmail.com> | 2020-07-16 17:25:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 17:25:44 (GMT) |
commit | 8c02f1e963682edfebfd0da619c65112cf30448b (patch) | |
tree | 4effa6ac988b51a7a6b0b3b57c362ec02315cbdf | |
parent | a528fab88593ffa5b7d50f4297d32e933725a254 (diff) | |
download | Doxygen-8c02f1e963682edfebfd0da619c65112cf30448b.zip Doxygen-8c02f1e963682edfebfd0da619c65112cf30448b.tar.gz Doxygen-8c02f1e963682edfebfd0da619c65112cf30448b.tar.bz2 |
issue #6846 Doxygen parsing global variable as function in certain cases (#7903)
A parameter can only be present for a function, so we should test on the member being a function it as well.
This fix is for the problem as reported by @tgpfeiffer
-rw-r--r-- | src/memberdef.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 2b8bbbc..7d6acb5 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -4167,6 +4167,7 @@ void MemberDefImpl::warnIfUndocumentedParams() const if (!Config_getBool(EXTRACT_ALL) && Config_getBool(WARN_IF_UNDOCUMENTED) && Config_getBool(WARN_NO_PARAMDOC) && + isFunction() && !isDeleted() && !isReference() && !Doxygen::suppressDocWarnings) @@ -4179,7 +4180,7 @@ void MemberDefImpl::warnIfUndocumentedParams() const qPrint(qualifiedName())); } if (!m_impl->hasDocumentedReturnType && - isFunction() && hasDocumentation() && !returnType.isEmpty()) + hasDocumentation() && !returnType.isEmpty()) { warn_doc_error(getDefFileName(),getDefLine(), "return type of member %s is not documented", |