diff options
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r-- | src/memberdef.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 469275c..d79b37e 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -4203,19 +4203,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 |