Blame src/.indent.pro

Packit 577717
/**
Packit 577717
 * PAPI - Indent profile. 

Packit 577717
 *
Packit 577717
 * The purpose of this file is to standardize the PAPI's source code style.
Packit 577717
 * Every new/modified source should be formatted with indent using this
Packit 577717
 * profile before it is checked in again.
Packit 577717
 * 
Packit 577717
 * @name       .indent.pro
Packit 577717
 * 
Packit 577717
 * @version    $Revision$ 
Packit 577717
 *             $Date$ 
Packit 577717
 *             $Author$
Packit 577717
 * 
Packit 577717
 * @author     Heike Jagode
Packit 577717
 */
Packit 577717
Packit 577717
Packit 577717
Packit 577717
Packit 577717
/* use tabs */
Packit 577717
--use-tabs
Packit 577717
Packit 577717
/* set tab size to 4 spaces */
Packit 577717
--tab-size4
Packit 577717
Packit 577717
/* set indentation level to 4 spaces, and these will be turned into
Packit 577717
 * tabs by default */
Packit 577717
--indent-level4
Packit 577717
Packit 577717
/* don't put variables in column 16 */
Packit 577717
//--declaration-indentation16
Packit 577717
Packit 577717
Packit 577717
Packit 577717
Packit 577717
/* maximum length of a line is 80 */
Packit 577717
--line-length80
Packit 577717
Packit 577717
/* breakup the procedure type */
Packit 577717
--procnames-start-lines
Packit 577717
// --dont-break-procedure-type
Packit 577717
Packit 577717
/* break long lines after the boolean operators && and || */
Packit 577717
--break-after-boolean-operator
Packit 577717
Packit 577717
/* if long lines are already broken up, GNU indent won't touch them */
Packit 577717
--honour-newlines
Packit 577717
Packit 577717
/* If a line has a left parenthesis which is not closed on that line,
Packit 577717
 * then continuation lines will be lined up to start at the character
Packit 577717
 * position just after the left parenthesis */
Packit 577717
--continue-at-parentheses
Packit 577717
Packit 577717
/* NO! (see --continue-at-parentheses) */
Packit 577717
--continuation-indentation0
Packit 577717
Packit 577717
Packit 577717
Packit 577717
Packit 577717
/* put braces on line with if, etc.*/
Packit 577717
--braces-on-if-line
Packit 577717
//--braces-after-if-line
Packit 577717
Packit 577717
/* put braces on the line after struct declaration lines */
Packit 577717
--braces-after-struct-decl-line
Packit 577717
Packit 577717
/* put braces on the line after function definition lines */
Packit 577717
--braces-after-func-def-line
Packit 577717
Packit 577717
/* indent braces 0 spaces */
Packit 577717
--brace-indent0
Packit 577717
Packit 577717
/* NO extra struct/union brace indentation */
Packit 577717
--struct-brace-indentation0
Packit 577717
Packit 577717
/* NO extra case brace indentation! */
Packit 577717
--case-brace-indentation0
Packit 577717
Packit 577717
/* put a space after and before every parenthesis */
Packit 577717
--space-after-parentheses
Packit 577717
Packit 577717
/* NO extra parentheses indentation in broken lines */
Packit 577717
--paren-indentation0
Packit 577717
Packit 577717
Packit 577717
Packit 577717
Packit 577717
/* blank line causes problems with multi parameter function prototypes */
Packit 577717
--no-blank-lines-after-declarations
Packit 577717
Packit 577717
/* forces blank line after every procedure body */
Packit 577717
--blank-lines-after-procedures
Packit 577717
Packit 577717
/* NO newline is forced after each comma in a declaration */
Packit 577717
--no-blank-lines-after-commas
Packit 577717
Packit 577717
/* allow optional blank lines */
Packit 577717
--leave-optional-blank-lines
Packit 577717
// --swallow-optional-blank-lines
Packit 577717
Packit 577717
Packit 577717
Packit 577717
Packit 577717
/* do not put comment delimiters on blank lines */
Packit 577717
--no-comment-delimiters-on-blank-lines
Packit 577717
Packit 577717
/* the maximum comment column is 79 */
Packit 577717
--comment-line-length79
Packit 577717
Packit 577717
/* do not touch comments starting at column 0 */
Packit 577717
--dont-format-first-column-comments
Packit 577717
Packit 577717
/* no extra line comment indentation */
Packit 577717
--line-comments-indentation0
Packit 577717
Packit 577717
/* dont star comments */
Packit 577717
--dont-star-comments
Packit 577717
// --start-left-side-of-comments
Packit 577717
Packit 577717
/* comments to the right of the code start at column 30 */
Packit 577717
--comment-indentation30
Packit 577717
Packit 577717
/* comments after declarations start at column 40 */
Packit 577717
--declaration-comment-column40
Packit 577717
Packit 577717
/* comments after #else #endif start at column 8 */
Packit 577717
--else-endif-column8
Packit 577717
Packit 577717
Packit 577717
Packit 577717
Packit 577717
/* Do not cuddle } and the while of a do {} while; */
Packit 577717
--dont-cuddle-do-while
Packit 577717
Packit 577717
/* Do cuddle } and else */
Packit 577717
--cuddle-else
Packit 577717
//--dont-cuddle-else
Packit 577717
Packit 577717
/* a case label indentation of 0 */
Packit 577717
--case-indentation0
Packit 577717
Packit 577717
/* put no space after a cast operator */
Packit 577717
//--no-space-after-casts
Packit 577717
Packit 577717
/* no space after function call names;
Packit 577717
 * but space after keywords for, it, while */
Packit 577717
--no-space-after-function-call-names
Packit 577717
//--no-space-after-for
Packit 577717
//--no-space-after-if
Packit 577717
//--no-space-after-while
Packit 577717
Packit 577717
/* Do not force space between special statements and semicolon */
Packit 577717
--dont-space-special-semicolon
Packit 577717
// --space-special-semicolon
Packit 577717
Packit 577717
/* put a space between sizeof and its argument :TODO: check */
Packit 577717
--blank-before-sizeof
Packit 577717
Packit 577717
/* enable verbose mode */
Packit 577717
--verbose
Packit 577717
// --no-verbosity
Packit 577717
Packit 577717
Packit 577717
Packit 577717
Packit 577717
/* NO space between # and preprocessor directives */
Packit 577717
// --leave-preprocessor-space
Packit 577717
Packit 577717
/* format some comments but not all */
Packit 577717
// --dont-format-comments
Packit 577717
Packit 577717
/* NO gnu style as default */
Packit 577717
// --gun_style
Packit 577717
Packit 577717
/* K&R default style */
Packit 577717
--k-and-r-style
Packit 577717
Packit 577717
/* NO Berkeley default style */
Packit 577717
// --original
Packit 577717
Packit 577717
/* read this profile :-) */
Packit 577717
// --ignore-profile
Packit 577717