File: .indent.pro

package info (click to toggle)
papi 5.7.0+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,856 kB
  • sloc: ansic: 93,265; fortran: 3,338; xml: 2,460; makefile: 815; sh: 290
file content (183 lines) | stat: -rw-r--r-- 3,949 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
/**
 * PAPI - Indent profile. <p>
 *
 * The purpose of this file is to standardize the PAPI's source code style.
 * Every new/modified source should be formatted with indent using this
 * profile before it is checked in again.
 * 
 * @name       .indent.pro
 * 
 * @version    $Revision$ <br>
 *             $Date$ <br>
 *             $Author$
 * 
 * @author     Heike Jagode
 */




/* use tabs */
--use-tabs

/* set tab size to 4 spaces */
--tab-size4

/* set indentation level to 4 spaces, and these will be turned into
 * tabs by default */
--indent-level4

/* don't put variables in column 16 */
//--declaration-indentation16




/* maximum length of a line is 80 */
--line-length80

/* breakup the procedure type */
--procnames-start-lines
// --dont-break-procedure-type

/* break long lines after the boolean operators && and || */
--break-after-boolean-operator

/* if long lines are already broken up, GNU indent won't touch them */
--honour-newlines

/* If a line has a left parenthesis which is not closed on that line,
 * then continuation lines will be lined up to start at the character
 * position just after the left parenthesis */
--continue-at-parentheses

/* NO! (see --continue-at-parentheses) */
--continuation-indentation0




/* put braces on line with if, etc.*/
--braces-on-if-line
//--braces-after-if-line

/* put braces on the line after struct declaration lines */
--braces-after-struct-decl-line

/* put braces on the line after function definition lines */
--braces-after-func-def-line

/* indent braces 0 spaces */
--brace-indent0

/* NO extra struct/union brace indentation */
--struct-brace-indentation0

/* NO extra case brace indentation! */
--case-brace-indentation0

/* put a space after and before every parenthesis */
--space-after-parentheses

/* NO extra parentheses indentation in broken lines */
--paren-indentation0




/* blank line causes problems with multi parameter function prototypes */
--no-blank-lines-after-declarations

/* forces blank line after every procedure body */
--blank-lines-after-procedures

/* NO newline is forced after each comma in a declaration */
--no-blank-lines-after-commas

/* allow optional blank lines */
--leave-optional-blank-lines
// --swallow-optional-blank-lines




/* do not put comment delimiters on blank lines */
--no-comment-delimiters-on-blank-lines

/* the maximum comment column is 79 */
--comment-line-length79

/* do not touch comments starting at column 0 */
--dont-format-first-column-comments

/* no extra line comment indentation */
--line-comments-indentation0

/* dont star comments */
--dont-star-comments
// --start-left-side-of-comments

/* comments to the right of the code start at column 30 */
--comment-indentation30

/* comments after declarations start at column 40 */
--declaration-comment-column40

/* comments after #else #endif start at column 8 */
--else-endif-column8




/* Do not cuddle } and the while of a do {} while; */
--dont-cuddle-do-while

/* Do cuddle } and else */
--cuddle-else
//--dont-cuddle-else

/* a case label indentation of 0 */
--case-indentation0

/* put no space after a cast operator */
//--no-space-after-casts

/* no space after function call names;
 * but space after keywords for, it, while */
--no-space-after-function-call-names
//--no-space-after-for
//--no-space-after-if
//--no-space-after-while

/* Do not force space between special statements and semicolon */
--dont-space-special-semicolon
// --space-special-semicolon

/* put a space between sizeof and its argument :TODO: check */
--blank-before-sizeof

/* enable verbose mode */
--verbose
// --no-verbosity




/* NO space between # and preprocessor directives */
// --leave-preprocessor-space

/* format some comments but not all */
// --dont-format-comments

/* NO gnu style as default */
// --gun_style

/* K&R default style */
--k-and-r-style

/* NO Berkeley default style */
// --original

/* read this profile :-) */
// --ignore-profile