Skip to content

Commit 154c8f5

Browse files
committed
[sipify] fix body detection*
1 parent 7435d34 commit 154c8f5

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
@@ -130,9 +130,9 @@ sub processDoxygenLine {
130130
}
131131

132132
sub detect_and_remove_following_body_or_initializerlist {
133-
# https://regex101.com/r/ZaP3tC/7
133+
# https://regex101.com/r/ZaP3tC/8
134134
do {no warnings 'uninitialized';
135-
if ( $LINE =~ m/^(\s*)?((?:(?:explicit|static|const|unsigned|virtual)\s+)*)(([\w:]+(<.*?>)?\s+[*&]?)?(~?\w+|(\w+::)?operator.{1,2})\s*\(([\w=()\/ ,&*<>."-]|::)*\)( +(?:const|SIP_[A-Z_]*?))*)\s*((\s*[:,]\s+\w+\(.*\))*\s*\{.*\};?|(?!;))(\s*\/\/.*)?$/
135+
if ( $LINE =~ m/^(\s*)?((?:(?:explicit|static|const|unsigned|virtual)\s+)*)(([\w:]+(<.*?>)?\s+[*&]?)?(~?\w+|(\w+::)?operator.{1,2})\s*\(([\w=()\/ ,&*<>."-]|::)*\)( +(?:const|SIP_[\w_]+?))*)\s*((\s*[:,]\s+\w+\(.*\))*\s*\{.*\}\s*(?:SIP_[\w_]+)?;?|(?!;))(\s*\/\/.*)?$/
136136
|| $LINE =~ m/SIP_SKIP\s*(?!;)\s*(\/\/.*)?$/
137137
|| $LINE =~ m/^\s*class.*SIP_SKIP/ ){
138138
dbg_info("remove constructor definition, function bodies, member initializing list");

0 commit comments

Comments
 (0)