Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit 22f559c

Browse files
authored
Merge pull request #12 from christinaflach/master
"Do not count/print 'void' as a function argument."
2 parents aa21a4b + 3df142e commit 22f559c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

addon/doxyparse/doxyparse.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,23 @@ static bool checkOverrideArg(ArgumentList *argList, MemberDef *md) {
289289
}
290290

291291
void functionInformation(MemberDef* md) {
292+
std::string temp = "";
292293
int size = md->getEndBodyLine() - md->getStartBodyLine() + 1;
293294
printNumberOfLines(size);
294295
ArgumentList *argList = md->argumentList();
296+
295297
if (argList) {
296-
printNumberOfArguments(argList->count());
298+
ArgumentListIterator iterator(*argList);
299+
Argument * argument = iterator.toFirst();
300+
if(argument != NULL) {
301+
temp = argumentData(argument);
302+
// TODO: This is a workaround; better not include "void" in argList, in the first place.
303+
if(temp != "void") {
304+
printNumberOfArguments(argList->count());
305+
}
306+
}
297307
}
308+
298309
printNumberOfConditionalPaths(md);
299310
MemberSDict *defDict = md->getReferencesMembers();
300311
if (defDict) {

0 commit comments

Comments
 (0)