diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-20 08:07:27 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-20 08:07:27 (GMT) |
commit | 7cf6e640540954d974374b28f692e4d05ef22049 (patch) | |
tree | ceeb09715481b59d0035280e8f659c15d9be185b /src | |
parent | 742927e23a728fffe53e7bfd1d220f7df4c6f552 (diff) | |
download | Doxygen-7cf6e640540954d974374b28f692e4d05ef22049.zip Doxygen-7cf6e640540954d974374b28f692e4d05ef22049.tar.gz Doxygen-7cf6e640540954d974374b28f692e4d05ef22049.tar.bz2 |
issue #7456: function-like macros generate warnings
Diffstat (limited to 'src')
-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 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", |