From 7cf6e640540954d974374b28f692e4d05ef22049 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Fri, 20 Dec 2019 09:07:27 +0100 Subject: issue #7456: function-like macros generate warnings --- src/memberdef.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 85d1cdf..4a9048a 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -4170,6 +4170,7 @@ void MemberDefImpl::warnIfUndocumentedParams() const !isReference() && !Doxygen::suppressDocWarnings) { + QCString returnType = typeString(); if (!m_impl->hasDocumentedParams) { warn_doc_error(getDefFileName(),getDefLine(), @@ -4177,7 +4178,7 @@ void MemberDefImpl::warnIfUndocumentedParams() const qPrint(qualifiedName())); } if (!m_impl->hasDocumentedReturnType && - isFunction() && hasDocumentation()) + isFunction() && hasDocumentation() && !returnType.isEmpty()) { warn_doc_error(getDefFileName(),getDefLine(), "return type of member %s is not documented", -- cgit v0.12