indent.sh 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. indent --blank-lines-after-declarations \
  3. --blank-lines-after-procedures \
  4. --swallow-optional-blank-lines \
  5. --blank-lines-before-block-comments \
  6. --format-all-comments \
  7. --format-first-column-comments \
  8. --comment-delimiters-on-blank-lines \
  9. --start-left-side-of-comments \
  10. --braces-after-if-line \
  11. --braces-after-struct-decl-line \
  12. --brace-indent 0 \
  13. --dont-cuddle-else \
  14. --dont-cuddle-do-while \
  15. --case-indentation 4 \
  16. --case-brace-indentation 0 \
  17. --dont-space-special-semicolon \
  18. --no-space-after-function-call-names \
  19. --no-space-after-casts \
  20. --no-space-after-for \
  21. --no-space-after-if \
  22. --no-space-after-while \
  23. --space-after-parentheses \
  24. --no-blank-lines-after-commas \
  25. --break-function-decl-args \
  26. --dont-break-function-decl-args-end \
  27. --dont-break-procedure-type \
  28. --indent-level 4 \
  29. --continue-at-parentheses \
  30. "$@"