Lines Matching refs:report
317 sub report { subroutine
374 report("indent = $count != $comment_indent within multi-line comment")
378 … report("indent = ".($count + $tweak)." != $comment_indent at end of multi-line comment")
412 report("intra-line comment indent = $count != $ref_indent") if $in_comment == 0;
413 report("multi-line comment indent = $count != $ref_indent") if $in_comment < 0;
431 report("indent = $count != $ref_indent for $ref_desc".
497 report("unexpected '$c' @ ".($in_paren_expr ? "(expr)" : "expr"));
503 report("unexpected '}'");
513 report("code after (expr)")
526 report("unclosed '$symbol' in $position");
551 report(($2 eq "\x09" ? "TAB" : $2 eq "\x0D" ? "CR " : $2 =~ m/[\x00-\x1F]/ ? "non-printable"
556 report("trailing whitespace at EOL") if m/\s\n$/;
575 report("multi-line string literal not terminated by '\"' and trailing '\' is missing")
600 …report("missing space or '*' after leading '*' in multi-line comment") if $cmt_text =~ m|^[^*\s/$s…
602 report("missing leading '*' in multi-line comment");
609 report("missing space or '*' before '*/'") if $head =~ m/[^*\s]$/;
610 …report("missing space (or ',', ';', ')', '}', ']') after '*/'") if $tail =~ m/^[^\s,;)}\]]/; # no …
613 report("unexpected '*/' outside comment");
616 … report("text before '*/' in multi-line comment") if ($head =~ m/[^*\s]/); # non-SPC before '*/'
633 report("missing space before '/*'")
635 …report("missing space, '*', or '!' after '/*$opt_minus'") if $tail =~ m/^[^\s*!$self_test_exceptio…
638 report("unexpected '/*' inside multi-line comment");
640 report("unexpected '/*' inside intra-line comment") if $1 =~ /\/\*/;
647 report("text after '/*' in multi-line comment")
680 report("line length = $len > ".MAX_LINE_LENGTH);
685 report("'//' end-of-line comment"); # the '//' comment style is not allowed for C90
703 report("preprocessor directive within multi-line directive");
707 report("indent = $count != 0 for '#'") if $count != 0;
708 report("'#$preproc_directive' with constant condition")
713 report("unexpected '#$preproc_directive' according to '#if' nesting");
716 …report("'#if' nesting indent = $space_count != $preproc_if_nesting") if $space_count != $preproc_i…
767 report(extra_SPC($intra_line)) if $intra_line =~ m/\s\s\S/ && eof
770 report(extra_SPC($intra_line)) if $intra_line =~ m/\s\s\S/;
774 report("missing space before '$2'")
802 …report("space before '$1'") if $intra_line =~ m/[\w)\]]\s+(\+\+|--)/; # postfix ++/-- with preced…
803 …report("space after '$1'") if $intra_line =~ m/(\+\+|--)\s+[a-zA-Z_(]/; # prefix ++/-- with follo…
805 …report("space before '$1'") if $intra_line =~ m/\s(\.|->)/; # '.' or '->' with precedin…
806 …report("space after '$1'") if $intra_line =~ m/(\.|->)\s/; # '.' or '->' with followin…
808 …report("space before '$1'") if $intra_line =~ m/[^:)]\s+(;)/; # space before ';' but not …
810 report("space before '$1'") if $intra_line =~ m/\s([,)\]])/; # space before ,)]
811 report("space after '$1'") if $intra_line =~ m/([(\[~!])\s/; # space after ([~!
812 … report("space after '$1'") if $intra_line =~ m/(defined)\s/; # space after 'defined'
813 …report("missing space before '$1'") if $intra_line =~ m/\S([|\/%<>^\?])/; # |/%<>^? without prec…
815 …report("missing space before binary '$2'") if $intra_line =~ m/([^\s{()\[e])([+\-])/; # '+'/'-' w…
817 …report("missing space before binary '$1'") if $intra_line =~ m/[^\s{()\[*!]([*])/; # '*' without …
818 …report("missing space before binary '$1'") if $intra_line =~ m/[^\s{()\[]([&])/; # '&' without p…
819 …report("missing space after ternary '$1'") if $intra_line =~ m/(:)[^\s\d]/; # ':' without followin…
820 …report("missing space after '$1'") if $intra_line =~ m/([,;=|\/%<>^\?])\S/; # ,;=|/%<>^? without…
821 …report("missing space after binary '$1'") if $intra_line=~m/[^{(\[]([*])[^\sa-zA-Z_(),*]/;# '*' w/…
823 …report("missing space after binary '$1'") if $intra_line=~m/([&])[^\sa-zA-Z_(]/; # '&' w/o follow…
825 …report("missing space after binary '$1'") if $intra_line=~m/[^{(\[]([+\-])[^\s\d(]/; # +/- w/o fo…
827 …report("missing space after '$2'") if $intra_line =~ m/(^|\W)(if|while|for|switch|case)[^\w\s]/;…
828 …report("missing space after '$2'") if $intra_line =~ m/(^|\W)(return)[^\w\s;]/; # return w/o SP…
829 report("space after function/macro name")
833 …report("missing space before '{'") if $intra_line =~ m/[^\s{(\[]\{/; # '{' without precedin…
834 …report("missing space after '}'") if $intra_line =~ m/\}[^\s,;\])}]/; # '}' without followin…
861 report("code before '}'");
871 report("unexpected 'else'");
884 … report("code after '}'") unless $tail eq "" || $tail =~ m/(else|while|OSSL_TRACE_END)(\W|$)/;
893 report("code before '}'");
914 report("code after $keyword: ") if $2 =~ /:.*[^\s@].*$/;
969 …report("more than one stmt") if !m/(^|\W)(for|(OSSL_)?LIST_FOREACH(_\w+)?)(\W.*|$)/ && # no 'for' …
990 …report("single-letter name '$2'") if (m/(^|.*\W)([IO])(\W.*|$)/); # single-letter name 'I' or 'O' …
992 report("constant on LHS of '$3'")
1039 report("code before '$mid'") if $code_before;
1040 …report("code after '$mid'" ) if $tail =~ m/[^\s\@{]/# trailing non-whitespace non-comment non-'{' …
1134 …report("'{' not at line start") if length($head) != $preproc_offset && $head =~ m/\)\s*/; # at end…
1146 … report("code after '{'") if $tail=~ m/[^\s\@]/ && # trailing non-whitespace non-comment (non-'\')
1157 report("'{' not on same line as preceding '$mid'") if !$brace_after;
1165 report("missing '{' on same line after '} else'");
1179 report("'while' not on same line as preceding '}'");
1190 report("'else' not on same line as preceding '}'");
1192 report("missing '}' on same line before 'else ... {'") if $brace_after;
1195 report("missing '{' on same line after '} else'") if $brace_before && !$brace_after;
1226 … report("leading ".($1 eq "" ? "blank" :"whitespace")." line") if $line == 1 && !$sloppy_SPC;
1230 report("$linediff blank lines before") if $linediff > 1 && !$sloppy_SPC;
1253 report(($1 eq "\n" ? "blank line" : $2 ne "" ? "'\\'" : "whitespace")." at EOF")