dhodovsk / source-git / pacemaker

Forked from source-git/pacemaker 3 years ago
Clone

Blame p-indent

rpm-build 3ee90c
#!/bin/sh
rpm-build 3ee90c
#
rpm-build 3ee90c
# This is a copy of the linux kernel's Lindent because
rpm-build 3ee90c
# we use the same formatting. No point re-inventing that
rpm-build 3ee90c
# wheel.
rpm-build 3ee90c
#
rpm-build 3ee90c
# Differences to kernel style:
rpm-build 3ee90c
# --dont-break-procedure-type -> --break-procedure-type
rpm-build 3ee90c
#
rpm-build 3ee90c
rpm-build 3ee90c
OPTS=""
rpm-build 3ee90c
OPTS="$OPTS --linux-style"
rpm-build 3ee90c
rpm-build 3ee90c
#OPTS="$OPTS --blank-lines-after-commas"
rpm-build 3ee90c
OPTS="$OPTS --blank-lines-after-declarations"
rpm-build 3ee90c
#OPTS="$OPTS --blank-lines-after-procedures"
rpm-build 3ee90c
#OPTS="$OPTS --blank-lines-before-block-comments"
rpm-build 3ee90c
#OPTS="$OPTS --braces-after-if-line"
rpm-build 3ee90c
#OPTS="$OPTS --braces-after-func-def-line"
rpm-build 3ee90c
#OPTS="$OPTS --brace-indent"
rpm-build 3ee90c
#OPTS="$OPTS --braces-after-struct-decl-line"
rpm-build 3ee90c
#OPTS="$OPTS --braces-on-if-line"
rpm-build 3ee90c
#OPTS="$OPTS --braces-on-func-def-line"
rpm-build 3ee90c
#OPTS="$OPTS --braces-on-struct-decl-line"
rpm-build 3ee90c
#OPTS="$OPTS --break-after-boolean-operator"
rpm-build 3ee90c
OPTS="$OPTS --break-before-boolean-operator"
rpm-build 3ee90c
#OPTS="$OPTS --break-function-decl-args"
rpm-build 3ee90c
#OPTS="$OPTS --break-function-decl-args-end"
rpm-build 3ee90c
OPTS="$OPTS --case-indentation4"
rpm-build 3ee90c
OPTS="$OPTS --case-brace-indentation4"
rpm-build 3ee90c
#OPTS="$OPTS --comment-delimiters-on-blank-lines"
rpm-build 3ee90c
#OPTS="$OPTS --comment-indentation33"
rpm-build 3ee90c
OPTS="$OPTS --continuation-indentation4"
rpm-build 3ee90c
#OPTS="$OPTS --continue-at-parentheses"
rpm-build 3ee90c
#OPTS="$OPTS --cuddle-do-while"
rpm-build 3ee90c
#OPTS="$OPTS --cuddle-else"
rpm-build 3ee90c
#OPTS="$OPTS --declaration-comment-column33"
rpm-build 3ee90c
#OPTS="$OPTS --declaration-indentation16"
rpm-build 3ee90c
#OPTS="$OPTS --dont-break-function-decl-args"
rpm-build 3ee90c
#OPTS="$OPTS --dont-break-function-decl-args-end"
rpm-build 3ee90c
#OPTS="$OPTS --dont-break-procedure-type"
rpm-build 3ee90c
#OPTS="$OPTS --dont-cuddle-do-while"
rpm-build 3ee90c
#OPTS="$OPTS --dont-cuddle-else"
rpm-build 3ee90c
#OPTS="$OPTS --dont-format-comments"
rpm-build 3ee90c
#OPTS="$OPTS --dont-format-first-column-comments"
rpm-build 3ee90c
#OPTS="$OPTS --dont-line-up-parentheses"
rpm-build 3ee90c
#OPTS="$OPTS --dont-left-justify-declarations"
rpm-build 3ee90c
#OPTS="$OPTS --dont-space-special-semicolon"
rpm-build 3ee90c
#OPTS="$OPTS --dont-star-comments"
rpm-build 3ee90c
#OPTS="$OPTS --else-endif-column1"
rpm-build 3ee90c
#OPTS="$OPTS --format-all-comments"
rpm-build 3ee90c
#OPTS="$OPTS --format-first-column-comments"
rpm-build 3ee90c
#OPTS="$OPTS --gnu-style"
rpm-build 3ee90c
OPTS="$OPTS --honour-newlines"
rpm-build 3ee90c
#OPTS="$OPTS --ignore-newlines"
rpm-build 3ee90c
#OPTS="$OPTS --ignore-profile"
rpm-build 3ee90c
OPTS="$OPTS --indent-label2"
rpm-build 3ee90c
OPTS="$OPTS --indent-level4"
rpm-build 3ee90c
#OPTS="$OPTS --k-and-r-style"
rpm-build 3ee90c
#OPTS="$OPTS --leave-optional-blank-lines"
rpm-build 3ee90c
#OPTS="$OPTS --leave-preprocessor-space"
rpm-build 3ee90c
#OPTS="$OPTS --left-justify-declarations"
rpm-build 3ee90c
#OPTS="$OPTS --line-comments-indentation0"
rpm-build 3ee90c
OPTS="$OPTS --line-length100"
rpm-build 3ee90c
#OPTS="$OPTS --linux-style"
rpm-build 3ee90c
#OPTS="$OPTS --no-blank-lines-after-commas"
rpm-build 3ee90c
#OPTS="$OPTS --no-blank-lines-after-declarations"
rpm-build 3ee90c
#OPTS="$OPTS --no-blank-lines-after-procedures"
rpm-build 3ee90c
#OPTS="$OPTS --no-blank-lines-before-block-comments"
rpm-build 3ee90c
#OPTS="$OPTS --no-comment-delimiters-on-blank-lines"
rpm-build 3ee90c
#OPTS="$OPTS --no-space-after-casts"
rpm-build 3ee90c
#OPTS="$OPTS --no-parameter-indentation"
rpm-build 3ee90c
#OPTS="$OPTS --no-space-after-for"
rpm-build 3ee90c
#OPTS="$OPTS --no-space-after-function-call-names"
rpm-build 3ee90c
#OPTS="$OPTS --no-space-after-if"
rpm-build 3ee90c
#OPTS="$OPTS --no-space-after-parentheses"
rpm-build 3ee90c
#OPTS="$OPTS --no-space-after-while"
rpm-build 3ee90c
OPTS="$OPTS --no-tabs"
rpm-build 3ee90c
#OPTS="$OPTS --no-verbosity"
rpm-build 3ee90c
#OPTS="$OPTS --original"
rpm-build 3ee90c
#OPTS="$OPTS --parameter-indentation0"
rpm-build 3ee90c
#OPTS="$OPTS --paren-indentation"
rpm-build 3ee90c
#OPTS="$OPTS --preserve-mtime"
rpm-build 3ee90c
OPTS="$OPTS --preprocessor-indentation2"
rpm-build 3ee90c
OPTS="$OPTS --procnames-start-lines"
rpm-build 3ee90c
#OPTS="$OPTS --remove-preprocessor-space"
rpm-build 3ee90c
#OPTS="$OPTS --space-after-cast"
rpm-build 3ee90c
#OPTS="$OPTS --space-after-for"
rpm-build 3ee90c
#OPTS="$OPTS --space-after-if"
rpm-build 3ee90c
#OPTS="$OPTS --space-after-parentheses"
rpm-build 3ee90c
#OPTS="$OPTS --space-after-procedure-calls"
rpm-build 3ee90c
#OPTS="$OPTS --space-after-while"
rpm-build 3ee90c
#OPTS="$OPTS --space-special-semicolon"
rpm-build 3ee90c
#OPTS="$OPTS --standard-output"
rpm-build 3ee90c
#OPTS="$OPTS --start-left-side-of-comments"
rpm-build 3ee90c
#OPTS="$OPTS --struct-brace-indentation"
rpm-build 3ee90c
#OPTS="$OPTS --swallow-optional-blank-lines"
rpm-build 3ee90c
OPTS="$OPTS --tab-size8"
rpm-build 3ee90c
#OPTS="$OPTS --use-tabs"
rpm-build 3ee90c
#OPTS="$OPTS --verbose"
rpm-build 3ee90c
rpm-build 3ee90c
indent $OPTS "$@"
rpm-build 3ee90c
rpm-build 3ee90c
# Lookup table
rpm-build 3ee90c
#            --blank-lines-after-commas                      -bc
rpm-build 3ee90c
#            --blank-lines-after-declarations                -bad
rpm-build 3ee90c
#            --blank-lines-after-procedures                  -bap
rpm-build 3ee90c
#            --blank-lines-before-block-comments             -bbb
rpm-build 3ee90c
#            --braces-after-if-line                          -bl
rpm-build 3ee90c
#            --braces-after-func-def-line                    -blf
rpm-build 3ee90c
#            --brace-indent                                  -bli
rpm-build 3ee90c
#            --braces-after-struct-decl-line                 -bls
rpm-build 3ee90c
#            --braces-on-if-line                             -br
rpm-build 3ee90c
#            --braces-on-func-def-line                       -brf
rpm-build 3ee90c
#            --braces-on-struct-decl-line                    -brs
rpm-build 3ee90c
#            --break-after-boolean-operator                  -nbbo
rpm-build 3ee90c
#            --break-before-boolean-operator                 -bbo
rpm-build 3ee90c
#            --break-function-decl-args                      -bfda
rpm-build 3ee90c
#            --break-function-decl-args-end                  -bfde
rpm-build 3ee90c
#            --case-indentation                              -clin
rpm-build 3ee90c
#            --case-brace-indentation                        -cbin
rpm-build 3ee90c
#            --comment-delimiters-on-blank-lines             -cdb
rpm-build 3ee90c
#            --comment-indentation                           -cn
rpm-build 3ee90c
#            --continuation-indentation                      -cin
rpm-build 3ee90c
#            --continue-at-parentheses                       -lp
rpm-build 3ee90c
#            --cuddle-do-while                               -cdw
rpm-build 3ee90c
#            --cuddle-else                                   -ce
rpm-build 3ee90c
#            --declaration-comment-column                    -cdn
rpm-build 3ee90c
#            --declaration-indentation                       -din
rpm-build 3ee90c
#            --dont-break-function-decl-args                 -nbfda
rpm-build 3ee90c
#            --dont-break-function-decl-args-end             -nbfde
rpm-build 3ee90c
#            --dont-break-procedure-type                     -npsl
rpm-build 3ee90c
#            --dont-cuddle-do-while                          -ncdw
rpm-build 3ee90c
#            --dont-cuddle-else                              -nce
rpm-build 3ee90c
#            --dont-format-comments                          -nfca
rpm-build 3ee90c
#            --dont-format-first-column-comments             -nfc1
rpm-build 3ee90c
#            --dont-line-up-parentheses                      -nlp
rpm-build 3ee90c
#            --dont-left-justify-declarations                -ndj
rpm-build 3ee90c
#            --dont-space-special-semicolon                  -nss
rpm-build 3ee90c
#            --dont-star-comments                            -nsc
rpm-build 3ee90c
#            --else-endif-column                             -cpn
rpm-build 3ee90c
#            --format-all-comments                           -fca
rpm-build 3ee90c
#            --format-first-column-comments                  -fc1
rpm-build 3ee90c
#            --gnu-style                                     -gnu
rpm-build 3ee90c
#            --honour-newlines                               -hnl
rpm-build 3ee90c
#            --ignore-newlines                               -nhnl
rpm-build 3ee90c
#            --ignore-profile                                -npro
rpm-build 3ee90c
#            --indent-label                                  -iln
rpm-build 3ee90c
#            --indent-level                                  -in
rpm-build 3ee90c
#            --k-and-r-style                                 -kr
rpm-build 3ee90c
#            --leave-optional-blank-lines                    -nsob
rpm-build 3ee90c
#            --leave-preprocessor-space                      -lps
rpm-build 3ee90c
#            --left-justify-declarations                     -dj
rpm-build 3ee90c
#            --line-comments-indentation                     -dn
rpm-build 3ee90c
#            --line-length                                   -ln
rpm-build 3ee90c
#            --linux-style                                   -linux
rpm-build 3ee90c
#            --no-blank-lines-after-commas                   -nbc
rpm-build 3ee90c
#            --no-blank-lines-after-declarations             -nbad
rpm-build 3ee90c
#            --no-blank-lines-after-procedures               -nbap
rpm-build 3ee90c
#            --no-blank-lines-before-block-comments          -nbbb
rpm-build 3ee90c
#            --no-comment-delimiters-on-blank-lines          -ncdb
rpm-build 3ee90c
#            --no-space-after-casts                          -ncs
rpm-build 3ee90c
#            --no-parameter-indentation                      -nip
rpm-build 3ee90c
#            --no-space-after-for                    -nsaf
rpm-build 3ee90c
#            --no-space-after-function-call-names            -npcs
rpm-build 3ee90c
#            --no-space-after-if                -nsai
rpm-build 3ee90c
#            --no-space-after-parentheses                    -nprs
rpm-build 3ee90c
#            --no-space-after-while                  -nsaw
rpm-build 3ee90c
#            --no-tabs                                       -nut
rpm-build 3ee90c
#            --no-verbosity                                  -nv
rpm-build 3ee90c
#            --original                                      -orig
rpm-build 3ee90c
#            --parameter-indentation                         -ipn
rpm-build 3ee90c
#            --paren-indentation                             -pin
rpm-build 3ee90c
#            --preserve-mtime                   -pmt
rpm-build 3ee90c
#            --preprocessor-indentation                      -ppin
rpm-build 3ee90c
#            --procnames-start-lines                         -psl
rpm-build 3ee90c
#            --remove-preprocessor-space                     -nlps
rpm-build 3ee90c
#            --space-after-cast                              -cs
rpm-build 3ee90c
#            --space-after-for                  -saf
rpm-build 3ee90c
#            --space-after-if                   -sai
rpm-build 3ee90c
#            --space-after-parentheses                       -prs
rpm-build 3ee90c
#            --space-after-procedure-calls                   -pcs
rpm-build 3ee90c
#            --space-after-while                -saw
rpm-build 3ee90c
#            --space-special-semicolon                       -ss
rpm-build 3ee90c
#            --standard-output                               -st
rpm-build 3ee90c
#            --start-left-side-of-comments                   -sc
rpm-build 3ee90c
#            --struct-brace-indentation                      -sbin
rpm-build 3ee90c
#            --swallow-optional-blank-lines                  -sob
rpm-build 3ee90c
#            --tab-size                                      -tsn
rpm-build 3ee90c
#            --use-tabs                                      -ut
rpm-build 3ee90c
#            --verbose                                       -v
rpm-build 3ee90c