mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Fix perl warning in whitespce.pl
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f9c32a5883
commit
6917d021fb
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ $source =~ s/^(\s*union[^()\n]*)\n\s*{\s*$/$1 {/img;
|
||||||
$source =~ s/^(\s*static\s+union[^()\n]*)\n\s*{\s*$/$1 {/img;
|
$source =~ s/^(\s*static\s+union[^()\n]*)\n\s*{\s*$/$1 {/img;
|
||||||
$source =~ s/^(\s*class.*)\n\s*{\s*$/$1 {/img;
|
$source =~ s/^(\s*class.*)\n\s*{\s*$/$1 {/img;
|
||||||
# a namespace shouldn't look like a function
|
# a namespace shouldn't look like a function
|
||||||
$source =~ s/(?:\G|^)(namespace.*)\n{/$1 {/img;
|
$source =~ s/(?:\G|^)(namespace.*)\n\{/$1 {/img;
|
||||||
# colon goes at the end of a line
|
# colon goes at the end of a line
|
||||||
$source =~ s/^(\S*::\S*.*)\n\s*: /$1 : /img;
|
$source =~ s/^(\S*::\S*.*)\n\s*: /$1 : /img;
|
||||||
# odd indentations from clang-format:
|
# odd indentations from clang-format:
|
||||||
|
|
Loading…
Reference in a new issue