Lines Matching full:indentation

34 #  -c | --sloppy-comment do not report indentation of comments
35 # Otherwise for each multi-line comment the indentation of
38 # indentation must be as for normal code, while in case it
41 # -m | --sloppy-macro allow missing extra indentation of macro bodies
42 # -h | --sloppy-hang when checking hanging indentation, do not report
43 # * same indentation as on line before
44 # * same indentation as non-hanging indent level
45 # * indentation moved left (not beyond non-hanging indent)
55 # but in some situations the indentation checks for subsequent lines go wrong.
83 # considered bad programming style, indentation false positives occur, e.g.:
143 my $preproc_if_nesting; # currently required indentation of preprocessor directive according to #if(n)(def)
153 # indentation state
173 my $block_indent; # currently required normal indentation at block/statement level
193 my $num_indent_reports = 0;# total number of indentation issues found
335 # submodule for indentation checking/reporting @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
362 # allow normal stmt indentation level for hanging initializer/enum expressions after trailing '{'
365 # decide depending on current actual indentation, preventing forth and back
370 # check consistency of indentation within multi-line comment (i.e., between its first, inner, and last lines)
382 # do not check indentation of last line of non-leading multi-line comment
391 # else check indentation of entire-line comment or entire-line end of multi-line comment
399 # ... but allow normal indentation for the current line, else above check will be done for the line before
402 if ($count == $ref_indent) { # indentation is like for (normal) code in this line
409 # else check indentation of leading intra-line comment or end of multi-line comment
419 # do not report same indentation as on the line before (potentially due to same violations)
422 # do not report indentation at normal indentation level while hanging expression indent would be required
438 # submodules handling indentation within expressions @@@@@@@@@@@@@@@@@@@@@@@@@@@
473 ? $i + 1 + length($1) # actual indentation of following non-space non-comment
558 # assign to $count the actual indentation level of the current line
561 $count = length($1); # actual indentation
573 $count = -1; # do not check indentation
619 # make indentation of end of multi-line comment appear like of leading intra-line comment
650 # adapt to actual indentation of first line
700 $_ = "$lead$space$preproc_directive$_" if $preproc_directive =~ m/^(define|include)$/; # yet do not blank #define or #include to prevent confusing the indentation or whitespace checks, resp.
715 my $space_count = length($space); # maybe could also use indentation before '#'
720 # handle indentation of preprocessor directive independently of surrounding normal code
721 $count = -1; # do not check indentation of first line of preprocessor directive
837 # adapt required indentation @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
930 if ($count == $block_indent - $preproc_offset # body began with same indentation as preceding code
938 # check required indentation @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
999 # adapt required indentation for following lines @@@@@@@@@@@@@@@@@@@@@@@@@@@
1273 print "$num_reports ($num_indent_reports indentation, $num_nesting_issues '#if' nesting indent, ".