|
@@ -3184,6 +3184,12 @@ sub process {
|
|
|
# check we are in a valid C source file if not then ignore this hunk
|
|
|
next if ($realfile !~ /\.(h|c)$/);
|
|
|
|
|
|
+# check for unusual line ending [ or (
|
|
|
+ if ($line =~ /^\+.*([\[\(])\s*$/) {
|
|
|
+ CHK("OPEN_ENDED_LINE",
|
|
|
+ "Lines should not end with a '$1'\n" . $herecurr);
|
|
|
+ }
|
|
|
+
|
|
|
# check if this appears to be the start function declaration, save the name
|
|
|
if ($sline =~ /^\+\{\s*$/ &&
|
|
|
$prevline =~ /^\+(?:(?:(?:$Storage|$Inline)\s*)*\s*$Type\s*)?($Ident)\(/) {
|