Lines Matching full:multi

35 #                        Otherwise for each multi-line comment the indentation of
80 # and false positives (in case of more complex multi-column alignment).
137 my $in_comment; # number of lines so far within multi-line comment, 0 if no comment, < 0…
138 my $leading_comment; # multi-line comment has no code before its beginning delimiter, if $in_…
139 my $formatted_comment; # multi-line comment beginning with "/*-", which indicates/allows specia…
146 my $preproc_offset; # offset to $block_indent within multi-line preprocessor directive, else…
147 my $in_macro_header; # number of open parentheses + 1 in (multi-line) header of #define, if $…
161 my $in_multiline_string; # line starts within multi-line string literal
184 my $expr_indent; # resulting hanging indent within (multi-line) expressions including typ…
337 sub check_indent { # used for lines outside multi-line string literals
370 …# check consistency of indentation within multi-line comment (i.e., between its first, inner, and …
371 if ($in_comment != 0 && $in_comment != 1) { # in multi-line comment but not on its first line
374 report("indent = $count != $comment_indent within multi-line comment")
378 … report("indent = ".($count + $tweak)." != $comment_indent at end of multi-line comment")
382 # do not check indentation of last line of non-leading multi-line comment
388 # $comment_indent will be checked by the below checks for end of multi-line comment
391 # else check indentation of entire-line comment or entire-line end of multi-line comment
393 …if (($in_comment == 0 || $in_comment == 1) # no comment, intra-line comment, or begin of multi-lin…
400 …if (($in_comment == 0 || $in_comment < 0) # (no comment,) intra-line comment or end of multi-line …
409 # else check indentation of leading intra-line comment or end of multi-line comment
413 report("multi-line comment indent = $count != $ref_indent") if $in_comment < 0;
485 # # multi-line expr after 'case'
569 # handle multi-line string literals to avoid confusion on starting/ending '"' and trailing '\'
575 report("multi-line string literal not terminated by '\"' and trailing '\' is missing")
595 # do/prepare checks within multi-line comments
597 if ($in_comment > 0) { # this still includes the last line of multi-line comment
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");
607 …# detect end of comment, must be within multi-line comment, check if it is preceded by non-whitesp…
616 … report("text before '*/' in multi-line comment") if ($head =~ m/[^*\s]/); # non-SPC before '*/'
617 $in_comment = -1; # indicate that multi-line comment ends on current line
619 … # make indentation of end of multi-line comment appear like of leading intra-line comment
622 … $in_comment = -2; # indicate that multi-line comment ends on current line, with tweak
638 report("unexpected '/*' inside multi-line comment");
645 } else { # begin of multi-line comment
647 report("text after '/*' in multi-line comment")
660 if ($in_comment > 1) { # still inside multi-line comment (not at its begin or end)
673 # while allowing trailing (also multi-line) string literals to go past $max_length
703 report("preprocessor directive within multi-line directive");
733 $in_comment != 0 ? " in multi-line comment"
738 … $in_comment != 0 ? "@" : ""; # '@' will match the blinded leading '*' in multi-line comment
740 …# do not check for extra SPC in leading spaces including any '#' (or '*' within multi-line comment)
753 … # check if all extra SPC in $intra is used only for multi-line column alignment with $contents
924 # potential adaptations of indent in first line of macro body in multi-line macro definition
940 …check_indent() if $count >= 0; # not for start of preprocessor directive and not if multi-line str…
945 $in_comment == 0 && !m/^\s*\*?@/ && # not in a multi-line or intra-line comment
959 || $in_comment != 0 || m/^\s*\*?@/; # in multi-line comment or an intra-line comment
963 $in_comment = 0 if $in_comment < 0; # multi-line comment has ended
976 # TODO extend detection from single-line to potentially multi-line statement
1020 # to cope with multi-line expressions, do this also if !($tail =~ m/\{/)
1076 … # on end of non-if/while/for/switch (multi-line) expression (i.e., return/enum/assignment) and
1199 # on begin of multi-line preprocessor directive, adapt indent
1202 if ($in_preproc == 1) { # start of multi-line preprocessor directive
1216 $in_comment == 0 && !m/^\s*\*?@/; # not in a multi-line comment nor in an intra-line comment
1218 # on end of (possibly multi-line) preprocessor directive, adapt indent