Skip to content

Commit

Permalink
Merge pull request #12 from christinaflach/master
Browse files Browse the repository at this point in the history
"Do not count/print 'void' as a function argument."
  • Loading branch information
joenio authored Aug 4, 2019
2 parents aa21a4b + 3df142e commit 22f559c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion addon/doxyparse/doxyparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,23 @@ 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);
// TODO: This is a workaround; better not include "void" in argList, in the first place.
if(temp != "void") {
printNumberOfArguments(argList->count());
}
}
}

printNumberOfConditionalPaths(md);
MemberSDict *defDict = md->getReferencesMembers();
if (defDict) {
Expand Down

0 comments on commit 22f559c

Please sign in to comment.