From d93d0a80660b5ab2da09592a0c5d6d632835245c Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Mon, 22 May 2017 10:17:51 +0200 Subject: [PATCH] [sipify] detect multiple variable declarations oneliners --- scripts/sipify.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sipify.pl b/scripts/sipify.pl index df91c481ae5..01d98f6241a 100755 --- a/scripts/sipify.pl +++ b/scripts/sipify.pl @@ -579,10 +579,10 @@ while ($line_idx < $line_count){ } # skip non-method member declaration in non-public sections - # https://regex101.com/r/gUBZUk/8 + # https://regex101.com/r/gUBZUk/9 if ( $SIP_RUN != 1 && $ACCESS[$#ACCESS] != PUBLIC && - $line =~ m/^\s*(?:template<\w+>\s+)?(?:(const|mutable|static|friend|unsigned)\s+)*\w+(::\w+)?(<([\w<> *&,()]|::)+>)? \*?\w+( = (-?\d+(\.\d+)?|\w+(\([^()]+\))?)|\[\d+\])?;/){ + $line =~ m/^\s*(?:template<\w+>\s+)?(?:(const|mutable|static|friend|unsigned)\s+)*\w+(::\w+)?(<([\w<> *&,()]|::)+>)?(,?\s+\*?\w+( = (-?\d+(\.\d+)?|\w+(\([^()]+\))?)|\[\d+\])?)+;/){ dbg_info("skip non-method member declaration in non-public sections"); next; }