Skip to content

Commit d93d0a8

Browse files
committedMay 22, 2017
[sipify] detect multiple variable declarations oneliners
1 parent 1df3c51 commit d93d0a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎scripts/sipify.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,10 @@ sub detect_comment_block{
579579
}
580580

581581
# skip non-method member declaration in non-public sections
582-
# https://regex101.com/r/gUBZUk/8
582+
# https://regex101.com/r/gUBZUk/9
583583
if ( $SIP_RUN != 1 &&
584584
$ACCESS[$#ACCESS] != PUBLIC &&
585-
$line =~ m/^\s*(?:template<\w+>\s+)?(?:(const|mutable|static|friend|unsigned)\s+)*\w+(::\w+)?(<([\w<> *&,()]|::)+>)? \*?\w+( = (-?\d+(\.\d+)?|\w+(\([^()]+\))?)|\[\d+\])?;/){
585+
$line =~ m/^\s*(?:template<\w+>\s+)?(?:(const|mutable|static|friend|unsigned)\s+)*\w+(::\w+)?(<([\w<> *&,()]|::)+>)?(,?\s+\*?\w+( = (-?\d+(\.\d+)?|\w+(\([^()]+\))?)|\[\d+\])?)+;/){
586586
dbg_info("skip non-method member declaration in non-public sections");
587587
next;
588588
}

0 commit comments

Comments
 (0)
Please sign in to comment.