|
@@ -2108,6 +2108,11 @@ sub process {
|
|
ERROR("trailing statements should be on next line\n" . $herecurr);
|
|
ERROR("trailing statements should be on next line\n" . $herecurr);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+# if should not continue a brace
|
|
|
|
+ if ($line =~ /}\s*if\b/) {
|
|
|
|
+ ERROR("trailing statements should be on next line\n" .
|
|
|
|
+ $herecurr);
|
|
|
|
+ }
|
|
# case and default should not have general statements after them
|
|
# case and default should not have general statements after them
|
|
if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
|
|
if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
|
|
$line !~ /\G(?:
|
|
$line !~ /\G(?:
|