From 4f9f4c67d0dcda2c1034c90893bc429ec14f241b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 22 Jan 2012 02:57:22 -0500 Subject: [PATCH] Add .indent.pro configuring GNU indent to use the Linux coding style. I've added the long form of each option in comments to make it easier for me to read off the coding style. I've left the short form of each option in to make it easier to track the `Linux coding style` suggestion in `indent(1L)`. --- src/.indent.pro | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/.indent.pro diff --git a/src/.indent.pro b/src/.indent.pro new file mode 100644 index 0000000..ec97a74 --- /dev/null +++ b/src/.indent.pro @@ -0,0 +1,38 @@ +/* default formatting options for indent + * + * Use the Linux coding style + */ +-nbad /* --no-blank-lines-after-declarations */ +-bap /* --blank-lines-after-procedures */ +-nbc /* --no-blank-lines-after-commas */ +-bbo /* --break-before-boolean-operator */ +-hnl /* --honour-newlines */ +-br /* --braces-on-if-line */ +-brs /* braces-on-struct-decl-line */ +-c33 /* --comment-indentation33 */ +-cd33 /* --declaration-comment-column33 */ +-ncdb /* --no-comment-delimiters-on-blank-lines */ +-ce /* --cuddle-else */ +-ci4 /* --continuation-indentation4 */ +-cli0 /* --case-indentation0 */ +-d0 /* --line-comments-indentation0 */ +-di1 /* --declaration-indentation1 */ +-nfc1 /* --dont-format-first-column-comments */ +-i8 /* --indent-level8 */ +-ip0 /* --parameter-indentation0 */ +-l80 /* --line-length80 */ +-lp /* --continue-at-parentheses */ +-npcs /* --no-space-after-function-call-names */ +-nprs /* --no-space-after-parentheses */ +-npsl /* --dont-break-procedure-type */ +-sai /* --space-after-if */ +-saf /* --space-after-for */ +-saw /* --space-after-while */ +-ncs /* --no-space-after-casts */ +-nsc /* --dont-star-comments */ +-sob /* --swallow-optional-blank-lines */ +-nfca /* --dont-format-comments */ +-cp33 /* --else-endif-column33 */ +-ss /* --space-special-semicolon */ +-ts8 /* --tab-size8 */ +-il1 /* --indent-label1 */ -- 2.26.2