Lines Matching refs:report
318 sub report { subroutine
375 report("indent = $count != $comment_indent within multi-line comment")
379 … report("indent = ".($count + $tweak)." != $comment_indent at end of multi-line comment")
413 report("intra-line comment indent = $count != $ref_indent") if $in_comment == 0;
414 report("multi-line comment indent = $count != $ref_indent") if $in_comment < 0;
432 report("indent = $count != $ref_indent for $ref_desc".
498 report("unexpected '$c' @ ".($in_paren_expr ? "(expr)" : "expr"));
504 report("unexpected '}'");
514 report("code after (expr)")
527 report("unclosed '$symbol' in $position");
552 report(($2 eq "\x09" ? "TAB" : $2 eq "\x0D" ? "CR " : $2 =~ m/[\x00-\x1F]/ ? "non-printable"
557 report("trailing whitespace at EOL") if m/\s\n$/;
576 report("multi-line string literal not terminated by '\"' and trailing '\' is missing")
601 …report("missing space or '*' after leading '*' in multi-line comment") if $cmt_text =~ m|^[^*\s/$s…
603 report("missing leading '*' in multi-line comment");
610 report("missing space or '*' before '*/'") if $head =~ m/[^*\s]$/;
611 …report("missing space (or ',', ';', ')', '}', ']') after '*/'") if $tail =~ m/^[^\s,;)}\]]/; # no …
614 report("unexpected '*/' outside comment");
617 … report("text before '*/' in multi-line comment") if ($head =~ m/[^*\s]/); # non-SPC before '*/'
634 report("missing space before '/*'")
636 …report("missing space, '*', or '!' after '/*$opt_minus'") if $tail =~ m/^[^\s*!$self_test_exceptio…
639 report("unexpected '/*' inside multi-line comment");
641 report("unexpected '/*' inside intra-line comment") if $1 =~ /\/\*/;
648 report("text after '/*' in multi-line comment")
681 report("line length = $len > ".$max_length);
686 report("'//' end-of-line comment"); # the '//' comment style is not allowed for C90
704 report("preprocessor directive within multi-line directive");
708 report("indent = $count != 0 for '#'") if $count != 0;
709 report("'#$preproc_directive' with constant condition")
714 report("unexpected '#$preproc_directive' according to '#if' nesting");
717 …report("'#if' nesting indent = $space_count != $preproc_if_nesting") if $space_count != $preproc_i…
768 report(extra_SPC($intra_line)) if $intra_line =~ m/\s\s\S/ && eof
771 report(extra_SPC($intra_line)) if $intra_line =~ m/\s\s\S/;
775 report("missing space before '$2'")
803 …report("space before '$1'") if $intra_line =~ m/[\w)\]]\s+(\+\+|--)/; # postfix ++/-- with preced…
804 …report("space after '$1'") if $intra_line =~ m/(\+\+|--)\s+[a-zA-Z_(]/; # prefix ++/-- with follo…
806 …report("space before '$1'") if $intra_line =~ m/\s(\.|->)/; # '.' or '->' with precedin…
807 …report("space after '$1'") if $intra_line =~ m/(\.|->)\s/; # '.' or '->' with followin…
809 …report("space before '$1'") if $intra_line =~ m/[^:)]\s+(;)/; # space before ';' but not …
811 report("space before '$1'") if $intra_line =~ m/\s([,)\]])/; # space before ,)]
812 report("space after '$1'") if $intra_line =~ m/([(\[~!])\s/; # space after ([~!
813 … report("space after '$1'") if $intra_line =~ m/(defined)\s/; # space after 'defined'
814 …report("missing space before '$1'") if $intra_line =~ m/\S([|\/%<>^\?])/; # |/%<>^? without prec…
816 …report("missing space before binary '$2'") if $intra_line =~ m/([^\s{()\[e])([+\-])/; # '+'/'-' w…
818 …report("missing space before binary '$1'") if $intra_line =~ m/[^\s{()\[*!]([*])/; # '*' without …
819 …report("missing space before binary '$1'") if $intra_line =~ m/[^\s{()\[]([&])/; # '&' without p…
820 …report("missing space after ternary '$1'") if $intra_line =~ m/(:)[^\s\d]/; # ':' without followin…
821 …report("missing space after '$1'") if $intra_line =~ m/([,;=|\/%<>^\?])\S/; # ,;=|/%<>^? without…
822 …report("missing space after binary '$1'") if $intra_line=~m/[^{(\[]([*])[^\sa-zA-Z_(),*]/;# '*' w/…
824 …report("missing space after binary '$1'") if $intra_line=~m/([&])[^\sa-zA-Z_(]/; # '&' w/o follow…
826 …report("missing space after binary '$1'") if $intra_line=~m/[^{(\[]([+\-])[^\s\d(]/; # +/- w/o fo…
828 …report("missing space after '$2'") if $intra_line =~ m/(^|\W)(if|while|for|switch|case)[^\w\s]/;…
829 …report("missing space after '$2'") if $intra_line =~ m/(^|\W)(return)[^\w\s;]/; # return w/o SP…
830 report("space after function/macro name")
834 …report("missing space before '{'") if $intra_line =~ m/[^\s{(\[]\{/; # '{' without precedin…
835 …report("missing space after '}'") if $intra_line =~ m/\}[^\s,;\])}]/; # '}' without followin…
862 report("code before '}'");
872 report("unexpected 'else'");
885 … report("code after '}'") unless $tail eq "" || $tail =~ m/(else|while|OSSL_TRACE_END)(\W|$)/;
894 report("code before '}'");
915 report("code after $keyword: ") if $2 =~ /:.*[^\s@].*$/;
970 …report("more than one stmt") if !m/(^|\W)(for|(OSSL_)?LIST_FOREACH(_\w+)?)(\W.*|$)/ && # no 'for' …
991 …report("single-letter name '$2'") if (m/(^|.*\W)([IO])(\W.*|$)/); # single-letter name 'I' or 'O' …
993 report("constant on LHS of '$3'")
1040 report("code before '$mid'") if $code_before;
1041 …report("code after '$mid'" ) if $tail =~ m/[^\s\@{]/# trailing non-whitespace non-comment non-'{' …
1135 …report("'{' not at line start") if length($head) != $preproc_offset && $head =~ m/\)\s*/; # at end…
1147 … report("code after '{'") if $tail=~ m/[^\s\@]/ && # trailing non-whitespace non-comment (non-'\')
1158 report("'{' not on same line as preceding '$mid'") if !$brace_after;
1166 report("missing '{' on same line after '} else'");
1180 report("'while' not on same line as preceding '}'");
1191 report("'else' not on same line as preceding '}'");
1193 report("missing '}' on same line before 'else ... {'") if $brace_after;
1196 report("missing '{' on same line after '} else'") if $brace_before && !$brace_after;
1227 … report("leading ".($1 eq "" ? "blank" :"whitespace")." line") if $line == 1 && !$sloppy_SPC;
1231 report("$linediff blank lines before") if $linediff > 1 && !$sloppy_SPC;
1254 report(($1 eq "\n" ? "blank line" : $2 ne "" ? "'\\'" : "whitespace")." at EOF")