File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ void DocParser::checkUnOrMultipleDocumentedParams()
373
373
}
374
374
else
375
375
{
376
- if (! context.paramsFound .size () && Config_getBool (WARN_IF_DOC_ERROR))
376
+ if (context.paramsFound .empty () && Config_getBool (WARN_IF_DOC_ERROR))
377
377
{
378
378
warn_doc_error (context.memberDef ->docFile (),
379
379
context.memberDef ->docLine (),
@@ -1999,7 +1999,10 @@ IDocNodeASTPtr validatingParseDoc(IDocParser &parserIntf,
1999
1999
std::visit (PrintDocVisitor{},ast->root );
2000
2000
}
2001
2001
2002
- parser->checkUnOrMultipleDocumentedParams ();
2002
+ if (md && md->isFunction ())
2003
+ {
2004
+ parser->checkUnOrMultipleDocumentedParams ();
2005
+ }
2003
2006
if (parser->context .memberDef ) parser->context .memberDef ->detectUndocumentedParams (parser->context .hasParamCommand ,parser->context .hasReturnCommand );
2004
2007
2005
2008
// TODO: These should be called at the end of the program.
You can’t perform that action at this time.
0 commit comments