From ea9c75991ef875cd7c905eec6d41404a98b1dc0e Mon Sep 17 00:00:00 2001 From: Christina von Flach Date: Thu, 30 May 2019 14:17:36 -0400 Subject: [PATCH 1/2] do not count/print 'void' as a function argument. --- addon/doxyparse/doxyparse.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/addon/doxyparse/doxyparse.cpp b/addon/doxyparse/doxyparse.cpp index b0da0f10..1c5efc74 100644 --- a/addon/doxyparse/doxyparse.cpp +++ b/addon/doxyparse/doxyparse.cpp @@ -264,12 +264,22 @@ static bool checkOverrideArg(ArgumentList *argList, MemberDef *md) { } void functionInformation(MemberDef* md) { + std::string temp = ""; int size = md->getEndBodyLine() - md->getStartBodyLine() + 1; printNumberOfLines(size); ArgumentList *argList = md->argumentList(); + if (argList) { - printNumberOfArguments(argList->count()); + ArgumentListIterator iterator(*argList); + Argument * argument = iterator.toFirst(); + if(argument != NULL) { + temp = argumentData(argument); + if(temp != "void") { + printNumberOfArguments(argList->count()); + } + } } + printNumberOfConditionalPaths(md); MemberSDict *defDict = md->getReferencesMembers(); if (defDict) { From 3df142ebb1cbb637b4d34f9608596e46f136d85a Mon Sep 17 00:00:00 2001 From: Christina von Flach Date: Thu, 30 May 2019 14:21:16 -0400 Subject: [PATCH 2/2] do not count/print 'void' as a function argument. --- addon/doxyparse/doxyparse.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/addon/doxyparse/doxyparse.cpp b/addon/doxyparse/doxyparse.cpp index 1c5efc74..43732149 100644 --- a/addon/doxyparse/doxyparse.cpp +++ b/addon/doxyparse/doxyparse.cpp @@ -274,6 +274,7 @@ void functionInformation(MemberDef* md) { Argument * argument = iterator.toFirst(); if(argument != NULL) { temp = argumentData(argument); +// TODO: This is a workaround; better not include "void" in argList, in the first place. if(temp != "void") { printNumberOfArguments(argList->count()); }