diff --git a/tools/build/checkstyle9.pl b/tools/build/checkstyle9.pl index 24e33712ceda..7c2b2c0f5b5b 100755 --- a/tools/build/checkstyle9.pl +++ b/tools/build/checkstyle9.pl @@ -1556,6 +1556,11 @@ sub process { } } +# Check for ){ + if ($rawline =~ /^.*\)\{\n/) { + ERROR("Missing space before brace\n". $herecurr); + } + # check for spaces before a quoted newline if ($rawline =~ /^.*\".*\s\\n/) { ERROR("unnecessary whitespace before a quoted newline\n" . $herecurr);