[Libphidget-devel] More on indent
Status: Alpha
Brought to you by:
jstrohm
|
From: Vadim T. <vt...@fr...> - 2002-09-10 17:21:37
|
Hello, Indeed, indent is fragile. Some options break the code altogether (--dont-break-procedure-type). Some options cause the results to be different on each run (--braces-on-struct-decl-line). Some options, though, yield a repeatable result. After some fiddling, I've found the set that I can live with: --no-blank-lines-after-declarations --blank-lines-after-procedures --no-blank-lines-after-commas --break-before-boolean-operator --braces-on-if-line --brace-indent4 --braces-after-struct-decl-line --no-comment-delimiters-on-blank-lines --cuddle-else --else-endif-column1 --space-after-cast --declaration-indentation4 -ndj --dont-format-first-column-comments --dont-format-comments --honour-newlines --indent-level4 --parameter-indentation5 --continue-at-parentheses --no-space-after-function-call-names --no-space-after-parentheses --procnames-start-lines --dont-star-comments --leave-optional-blank-lines --line-length128 Cut'n'paste it into ./indent.rules in INDENT branch and see if it is OK with you, and if so, let's stop right there - enough time wasted. It's all my fault ;/ --vt |