mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
[sipify] detect multiple variable declarations oneliners
This commit is contained in:
parent
1df3c51606
commit
d93d0a8066
@ -579,10 +579,10 @@ while ($line_idx < $line_count){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# skip non-method member declaration in non-public sections
|
# 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 &&
|
if ( $SIP_RUN != 1 &&
|
||||||
$ACCESS[$#ACCESS] != PUBLIC &&
|
$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");
|
dbg_info("skip non-method member declaration in non-public sections");
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user