checksrc: disable SPACEBEFOREPAREN for case statement.

The case keyword may be followed by a constant expression and thus should
allow it to start with an open parenthesis.
This commit is contained in:
Patrick Monnerat 2017-09-02 12:58:55 +01:00
parent 989e4d4a31
commit ea4e7bdc81
1 changed files with 3 additions and 0 deletions

View File

@ -345,6 +345,9 @@ sub scanfile {
elsif($3 eq "return") {
# return must have a space
}
elsif($3 eq "case") {
# case must have a space
}
elsif($4 eq "*") {
# (* beginning makes the space OK!
}