Lines Matching full:multi
35 # Otherwise for each multi-line comment the indentation of
81 # and false positives (in case of more complex multi-column alignment).
139 my $in_comment; # number of lines so far within multi-line comment, 0 if no comment, < 0…
140 my $leading_comment; # multi-line comment has no code before its beginning delimiter, if $in_…
141 my $formatted_comment; # multi-line comment beginning with "/*-", which indicates/allows specia…
148 my $preproc_offset; # offset to $block_indent within multi-line preprocessor directive, else…
149 my $in_macro_header; # number of open parentheses + 1 in (multi-line) header of #define, if $…
163 my $in_multiline_string; # line starts within multi-line string literal
186 my $expr_indent; # resulting hanging indent within (multi-line) expressions including typ…
339 sub check_indent { # used for lines outside multi-line string literals
372 …# check consistency of indentation within multi-line comment (i.e., between its first, inner, and …
373 if ($in_comment != 0 && $in_comment != 1) { # in multi-line comment but not on its first line
376 report("indent = $count != $comment_indent within multi-line comment")
380 … report("indent = ".($count + $tweak)." != $comment_indent at end of multi-line comment")
384 # do not check indentation of last line of non-leading multi-line comment
390 # $comment_indent will be checked by the below checks for end of multi-line comment
393 # else check indentation of entire-line comment or entire-line end of multi-line comment
395 …if (($in_comment == 0 || $in_comment == 1) # no comment, intra-line comment, or begin of multi-lin…
402 …if (($in_comment == 0 || $in_comment < 0) # (no comment,) intra-line comment or end of multi-line …
411 # else check indentation of leading intra-line comment or end of multi-line comment
415 report("multi-line comment indent = $count != $ref_indent") if $in_comment < 0;
489 # # multi-line expr after 'case'
573 # handle multi-line string literals to avoid confusion on starting/ending '"' and trailing '\'
579 report("multi-line string literal not terminated by '\"' and trailing '\' is missing")
599 # do/prepare checks within multi-line comments
601 if ($in_comment > 0) { # this still includes the last line of multi-line comment
604 …report("missing space or '*' after leading '*' in multi-line comment") if $cmt_text =~ m|^[^*\s/$s…
606 report("missing leading '*' in multi-line comment");
611 …# detect end of comment, must be within multi-line comment, check if it is preceded by non-whitesp…
620 … report("text before '*/' in multi-line comment") if ($head =~ m/[^*\s]/); # non-SPC before '*/'
621 $in_comment = -1; # indicate that multi-line comment ends on current line
623 … # make indentation of end of multi-line comment appear like of leading intra-line comment
626 … $in_comment = -2; # indicate that multi-line comment ends on current line, with tweak
642 report("unexpected '/*' inside multi-line comment");
649 } else { # begin of multi-line comment
651 report("text after '/*' in multi-line comment")
664 if ($in_comment > 1) { # still inside multi-line comment (not at its begin or end)
677 # while allowing trailing (also multi-line) string literals to go past $max_length
707 report("preprocessor directive within multi-line directive");
737 $in_comment != 0 ? " in multi-line comment"
742 … $in_comment != 0 ? "@" : ""; # '@' will match the blinded leading '*' in multi-line comment
744 …# do not check for extra SPC in leading spaces including any '#' (or '*' within multi-line comment)
757 … # check if all extra SPC in $intra is used only for multi-line column alignment with $contents
930 # potential adaptations of indent in first line of macro body in multi-line macro definition
946 …check_indent() if $count >= 0; # not for start of preprocessor directive and not if multi-line str…
951 $in_comment == 0 && !m/^\s*\*?@/ && # not in a multi-line or intra-line comment
965 || $in_comment != 0 || m/^\s*\*?@/; # in multi-line comment or an intra-line comment
969 $in_comment = 0 if $in_comment < 0; # multi-line comment has ended
982 # TODO extend detection from single-line to potentially multi-line statement
1027 # to cope with multi-line expressions, do this also if !($tail =~ m/\{/)
1083 … # on end of non-if/while/for/switch (multi-line) expression (i.e., return/enum/assignment) and
1206 # on begin of multi-line preprocessor directive, adapt indent
1209 if ($in_preproc == 1) { # start of multi-line preprocessor directive
1223 $in_comment == 0 && !m/^\s*\*?@/; # not in a multi-line comment nor in an intra-line comment
1225 # on end of (possibly multi-line) preprocessor directive, adapt indent