Skip to content

Commit

Permalink
[sipify] Catch **ALL** SIP_OUT arguments when generating docstrings a…
Browse files Browse the repository at this point in the history
…nd move them to :returns: directives
  • Loading branch information
nyalldawson committed Oct 9, 2020
1 parent 2141593 commit 0e36265
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/sipify.pl
Expand Up @@ -422,12 +422,18 @@ sub fix_annotations {

# get removed params to be able to drop them out of the API doc
if ( $line =~ m/(\w+)\s+SIP_PYARGREMOVE/ ){
push @SKIPPED_PARAMS_REMOVE, $1;
dbg_info("caught removed param: $SKIPPED_PARAMS_REMOVE[$#SKIPPED_PARAMS_REMOVE]");
my @removed_params = $line =~ m/(\w+)\s+SIP_PYARGREMOVE/g;
foreach ( @removed_params ) {
push @SKIPPED_PARAMS_REMOVE, $_;
dbg_info("caught removed param: $SKIPPED_PARAMS_REMOVE[$#SKIPPED_PARAMS_REMOVE]");
}
}
if ( $line =~ m/(\w+)\s+SIP_OUT/ ){
push @SKIPPED_PARAMS_OUT, $1;
dbg_info("caught removed param: $SKIPPED_PARAMS_OUT[$#SKIPPED_PARAMS_OUT]");
my @out_params = $line =~ m/(\w+)\s+SIP_OUT/g;
foreach ( @out_params ) {
push @SKIPPED_PARAMS_OUT, $_;
dbg_info("caught removed param: $SKIPPED_PARAMS_OUT[$#SKIPPED_PARAMS_OUT]");
}
}

# printed annotations
Expand Down

0 comments on commit 0e36265

Please sign in to comment.