Skip to content

Commit 147d6cc

Browse files
committed
Incorrect warnings due to WARN_IF_DOC_ERROR=NO
In case we have a simple file like: ``` /// \file /// \brief void fie /// /// \param a first arg /// \param b second arg /// \param c third arg void fie0(int a, int b, int c){} ``` and set: ``` WARN_IF_DOC_ERROR=NO ``` we get the warnings: ``` ..../aa.h:8: warning: The following parameters of fie0(int a, int b, int c) are not documented: parameter 'a' parameter 'b' parameter 'c' ``` This is due to the new setting `WARN_IF_INCOMPLETE_DOC` (since 1.9.2) and this needs `paramsFound` which is set in `checkArgumentName` but was skipped due to `WARN_IF_DOC_ERROR=NO`.
1 parent c838133 commit 147d6cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docparser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ QCString DocParser::findAndCopyImage(const QCString &fileName, DocImage::Type ty
379379
*/
380380
void DocParser::checkArgumentName()
381381
{
382-
if (!Config_getBool(WARN_IF_DOC_ERROR)) return;
382+
if (!(Config_getBool(WARN_IF_DOC_ERROR) || Config_getBool(WARN_IF_INCOMPLETE_DOC))) return;
383383
if (context.memberDef==0) return; // not a member
384384
std::string name = context.token->name.str();
385385
const ArgumentList &al=context.memberDef->isDocsForDefinition() ?

0 commit comments

Comments
 (0)