From 6917d021fb9955101d428c97a03818e1da2e1e9e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 5 Sep 2015 10:24:04 -0700 Subject: Fix perl warning in whitespce.pl Signed-off-by: Dirk Hohndel --- scripts/whitespace.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/whitespace.pl b/scripts/whitespace.pl index 3131d22d4..6cd808123 100755 --- a/scripts/whitespace.pl +++ b/scripts/whitespace.pl @@ -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*class.*)\n\s*{\s*$/$1 {/img; # 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 $source =~ s/^(\S*::\S*.*)\n\s*: /$1 : /img; # odd indentations from clang-format: -- cgit v1.2.3-70-g09d2