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

Commit

Permalink
fix doxyparse segfault for python source files
Browse files Browse the repository at this point in the history
functions signatures on python source doesn't have type for argument list,
then we added the arguments names instead of it's types
  • Loading branch information
joenio committed Dec 28, 2017
1 parent 422587c commit 36c6d52
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions addon/doxyparse/doxyparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,15 @@ std::string functionSignature(MemberDef* md) {
signature += "(";
Argument * argument = iterator.toFirst();
if(argument != NULL) {
signature += argument->type.data();
for(++iterator; (argument = iterator.current()) ;++iterator){
signature += std::string(",") + argument->type.data();
if (argument->type != NULL)
signature += argument->type.data();
else if (argument->name != NULL)
signature += argument->name.data();
for(++iterator; (argument = iterator.current()); ++iterator){
if (argument->type != NULL)
signature += std::string(",") + argument->type.data();
else if (argument->name != NULL)
signature += std::string(",") + argument->name.data();
}
}
signature += ")";
Expand Down

0 comments on commit 36c6d52

Please sign in to comment.