From 8c02f1e963682edfebfd0da619c65112cf30448b Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 16 Jul 2020 19:25:44 +0200 Subject: 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 --- src/memberdef.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", -- cgit v0.12