File tree Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -4051,34 +4051,14 @@ void MemberDefImpl::warnIfUndocumented() const
4051
4051
}
4052
4052
}
4053
4053
4054
- static QCString removeReturnTypeKeywords (const QCString &s)
4055
- {
4056
- QCString result = s;
4057
- bool done;
4058
- do
4059
- {
4060
- done=true ;
4061
- if (result.stripPrefix (" constexpr " ) ||
4062
- result.stripPrefix (" consteval " ) ||
4063
- result.stripPrefix (" virtual " ) ||
4064
- result.stripPrefix (" static " ) ||
4065
- result.stripPrefix (" volatile " ))
4066
- {
4067
- done=false ;
4068
- }
4069
- }
4070
- while (!done);
4071
- return result;
4072
- }
4073
-
4074
4054
void MemberDefImpl::detectUndocumentedParams (bool hasParamCommand,bool hasReturnCommand) const
4075
4055
{
4076
4056
if (!Config_getBool (WARN_NO_PARAMDOC)) return ;
4077
- QCString returnType = removeReturnTypeKeywords ( typeString () );
4057
+ QCString returnType = typeString ();
4078
4058
bool isPython = getLanguage ()==SrcLangExt_Python;
4079
4059
bool isFortran = getLanguage ()==SrcLangExt_Fortran;
4080
4060
bool isFortranSubroutine = isFortran && returnType.find (" subroutine" )!=-1 ;
4081
- bool isVoidReturn = returnType==" void" ;
4061
+ bool isVoidReturn = ( returnType==" void" ) || (returnType. right ( 5 )== " void " ) ;
4082
4062
4083
4063
if (!m_impl->hasDocumentedParams && hasParamCommand)
4084
4064
{
You can’t perform that action at this time.
0 commit comments