summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-08-20 16:20:42 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-08-20 16:20:42 (GMT)
commit94a797bcafb469d743ca36b153e01eb093efebf4 (patch)
treecb7ab652487635960ce599514567d9ef774064f8 /src
parent5213707f485360bd9145beebe2fab250ca133a02 (diff)
downloadDoxygen-94a797bcafb469d743ca36b153e01eb093efebf4.zip
Doxygen-94a797bcafb469d743ca36b153e01eb093efebf4.tar.gz
Doxygen-94a797bcafb469d743ca36b153e01eb093efebf4.tar.bz2
issue #7212 1.8.16: Function returning void pointer generates warning
Have to see that the argument is not a void pointer but just a void
Diffstat (limited to 'src')
-rw-r--r--src/memberdef.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index 9d6ac51..1e03288 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -4201,19 +4201,19 @@ void MemberDefImpl::detectUndocumentedParams(bool hasParamCommand,bool hasReturn
else if ( // see if return type is documented in a function w/o return type
hasReturnCommand &&
(
- returnType.find("void")!=-1 || // void return type
+ (returnType.find("void")!=-1 && returnType.find('*')==-1) || // void return type
returnType.find("subroutine")!=-1 || // fortran subroutine
isConstructor() || // a constructor
isDestructor() // or destructor
)
)
{
- warn_doc_error(getDefFileName(),getDefLine(),"documented empty return type of %s",
+ warn_doc_error(getDefFileName(),getDefLine(),"documented empty return type of %s",
qualifiedName().data());
}
else if ( // see if return needs to documented
m_impl->hasDocumentedReturnType ||
- returnType.find("void")!=-1 || // void return type
+ (returnType.find("void")!=-1 && returnType.find('*')==-1) || // void return type
returnType.find("subroutine")!=-1 || // fortran subroutine
isConstructor() || // a constructor
isDestructor() // or destructor