Skip to content

Commit

Permalink
[sipify] fix static const inline (#42607)
Browse files Browse the repository at this point in the history
* [sipify] fix static const inline

* remove extra match
  • Loading branch information
3nids committed Apr 1, 2021
1 parent 2159f4e commit 6ff14b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sipify.pl
Expand Up @@ -1110,7 +1110,7 @@ sub detect_non_method_member{
$LINE =~ s/\s*\bMAYBE_UNUSED \b//;
$LINE =~ s/\s*\bNODISCARD \b//;
$LINE =~ s/\s*\bQ_DECL_DEPRECATED\b//;
$LINE =~ s/^(\s*)?(const )?(virtual |static )?inline /$1$2$3/;
$LINE =~ s/^(\s*)?(const |virtual |static )*inline /$1$2/;
$LINE =~ s/\bconstexpr\b/const/;
$LINE =~ s/\bnullptr\b/0/g;
$LINE =~ s/\s*=\s*default\b//g;
Expand Down

0 comments on commit 6ff14b5

Please sign in to comment.