You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1376 lines
60 KiB

10 years ago
8 years ago
  1. #
  2. # General options
  3. #
  4. # The type of line endings
  5. newlines = lf # auto/lf/crlf/cr
  6. # The original size of tabs in the input
  7. input_tab_size = 8 # number
  8. # The size of tabs in the output (only used if align_with_tabs=true)
  9. output_tab_size = 8 # number
  10. # The ASCII value of the string escape char, usually 92 (\) or 94 (^). (Pawn)
  11. string_escape_char = 92 # number
  12. # Alternate string escape char for Pawn. Only works right before the quote char.
  13. string_escape_char2 = 0 # number
  14. #
  15. # Indenting
  16. #
  17. # The number of columns to indent per level.
  18. # Usually 2, 3, 4, or 8.
  19. indent_columns = 4 # number
  20. # The continuation indent. If non-zero, this overrides the indent of '(' and '=' continuation indents.
  21. # For FreeBSD, this is set to 4.
  22. indent_continue = 0 # number
  23. # How to use tabs when indenting code
  24. # 0=spaces only
  25. # 1=indent with tabs to brace level, align with spaces
  26. # 2=indent and align with tabs, using spaces when not on a tabstop
  27. indent_with_tabs = 0 # number
  28. # Comments that are not a brace level are indented with tabs on a tabstop.
  29. # Requires indent_with_tabs=2. If false, will use spaces.
  30. indent_cmt_with_tabs = false # false/true
  31. # Whether to indent strings broken by '\' so that they line up
  32. indent_align_string = true # false/true
  33. # The number of spaces to indent multi-line XML strings.
  34. # Requires indent_align_string=True
  35. indent_xml_string = 0 # number
  36. # Spaces to indent '{' from level
  37. indent_brace = 0 # number
  38. # Whether braces are indented to the body level
  39. indent_braces = false # false/true
  40. # Disabled indenting function braces if indent_braces is true
  41. indent_braces_no_func = false # false/true
  42. # Disabled indenting class braces if indent_braces is true
  43. indent_braces_no_class = false # false/true
  44. # Disabled indenting struct braces if indent_braces is true
  45. indent_braces_no_struct = false # false/true
  46. # Indent based on the size of the brace parent, i.e. 'if' => 3 spaces, 'for' => 4 spaces, etc.
  47. indent_brace_parent = false # false/true
  48. # Whether the 'namespace' body is indented
  49. indent_namespace = false # false/true
  50. # The number of spaces to indent a namespace block
  51. indent_namespace_level = 0 # number
  52. # If the body of the namespace is longer than this number, it won't be indented.
  53. # Requires indent_namespace=true. Default=0 (no limit)
  54. indent_namespace_limit = 0 # number
  55. # Whether the 'extern "C"' body is indented
  56. indent_extern = false # false/true
  57. # Whether the 'class' body is indented
  58. indent_class = false # false/true
  59. # Whether to indent the stuff after a leading class colon
  60. indent_class_colon = false # false/true
  61. # False=treat 'else\nif' as 'else if' for indenting purposes
  62. # True=indent the 'if' one level
  63. indent_else_if = false # false/true
  64. # Amount to indent variable declarations after a open brace. neg=relative, pos=absolute
  65. indent_var_def_blk = 0 # number
  66. # Indent continued variable declarations instead of aligning.
  67. indent_var_def_cont = false # false/true
  68. # True: indent continued function call parameters one indent level
  69. # False: align parameters under the open paren
  70. indent_func_call_param = false # false/true
  71. # Same as indent_func_call_param, but for function defs
  72. indent_func_def_param = false # false/true
  73. # Same as indent_func_call_param, but for function protos
  74. indent_func_proto_param = false # false/true
  75. # Same as indent_func_call_param, but for class declarations
  76. indent_func_class_param = false # false/true
  77. # Same as indent_func_call_param, but for class variable constructors
  78. indent_func_ctor_var_param = false # false/true
  79. # Same as indent_func_call_param, but for templates
  80. indent_template_param = false # false/true
  81. # Double the indent for indent_func_xxx_param options
  82. indent_func_param_double = false # false/true
  83. # Indentation column for standalone 'const' function decl/proto qualifier
  84. indent_func_const = 0 # number
  85. # Indentation column for standalone 'throw' function decl/proto qualifier
  86. indent_func_throw = 0 # number
  87. # The number of spaces to indent a continued '->' or '.'
  88. # Usually set to 0, 1, or indent_columns.
  89. indent_member = 0 # number
  90. # Spaces to indent single line ('//') comments on lines before code
  91. indent_sing_line_comments = 0 # number
  92. # If set, will indent trailing single line ('//') comments relative
  93. # to the code instead of trying to keep the same absolute column
  94. indent_relative_single_line_comments = false # false/true
  95. # Spaces to indent 'case' from 'switch'
  96. # Usually 0 or indent_columns.
  97. indent_switch_case = 0 # number
  98. # Spaces to shift the 'case' line, without affecting any other lines
  99. # Usually 0.
  100. indent_case_shift = 0 # number
  101. # Spaces to indent '{' from 'case'.
  102. # By default, the brace will appear under the 'c' in case.
  103. # Usually set to 0 or indent_columns.
  104. indent_case_brace = 0 # number
  105. # Whether to indent comments found in first column
  106. indent_col1_comment = false # false/true
  107. # How to indent goto labels
  108. # >0 : absolute column where 1 is the leftmost column
  109. # <=0 : subtract from brace indent
  110. indent_label = 1 # number
  111. # Same as indent_label, but for access specifiers that are followed by a colon
  112. indent_access_spec = 1 # number
  113. # Indent the code after an access specifier by one level.
  114. # If set, this option forces 'indent_access_spec=0'
  115. indent_access_spec_body = false # false/true
  116. # If an open paren is followed by a newline, indent the next line so that it lines up after the open paren (not recommended)
  117. indent_paren_nl = false # false/true
  118. # Controls the indent of a close paren after a newline.
  119. # 0: Indent to body level
  120. # 1: Align under the open paren
  121. # 2: Indent to the brace level
  122. indent_paren_close = 0 # number
  123. # Controls the indent of a comma when inside a paren.If TRUE, aligns under the open paren
  124. indent_comma_paren = false # false/true
  125. # Controls the indent of a BOOL operator when inside a paren.If TRUE, aligns under the open paren
  126. indent_bool_paren = false # false/true
  127. # If 'indent_bool_paren' is true, controls the indent of the first expression. If TRUE, aligns the first expression to the following ones
  128. indent_first_bool_expr = false # false/true
  129. # If an open square is followed by a newline, indent the next line so that it lines up after the open square (not recommended)
  130. indent_square_nl = false # false/true
  131. # Don't change the relative indent of ESQL/C 'EXEC SQL' bodies
  132. indent_preserve_sql = false # false/true
  133. # Align continued statements at the '='. Default=True
  134. # If FALSE or the '=' is followed by a newline, the next line is indent one tab.
  135. indent_align_assign = true # false/true
  136. #
  137. # Spacing options
  138. #
  139. # Add or remove space around arithmetic operator '+', '-', '/', '*', etc
  140. sp_arith = force # ignore/add/remove/force
  141. # Add or remove space around assignment operator '=', '+=', etc
  142. sp_assign = force # ignore/add/remove/force
  143. # Add or remove space around assignment operator '=' in a prototype
  144. sp_assign_default = ignore # ignore/add/remove/force
  145. # Add or remove space before assignment operator '=', '+=', etc. Overrides sp_assign.
  146. sp_before_assign = ignore # ignore/add/remove/force
  147. # Add or remove space after assignment operator '=', '+=', etc. Overrides sp_assign.
  148. sp_after_assign = ignore # ignore/add/remove/force
  149. # Add or remove space around assignment '=' in enum
  150. sp_enum_assign = force # ignore/add/remove/force
  151. # Add or remove space before assignment '=' in enum. Overrides sp_enum_assign.
  152. sp_enum_before_assign = ignore # ignore/add/remove/force
  153. # Add or remove space after assignment '=' in enum. Overrides sp_enum_assign.
  154. sp_enum_after_assign = ignore # ignore/add/remove/force
  155. # Add or remove space around preprocessor '##' concatenation operator. Default=Add
  156. sp_pp_concat = add # ignore/add/remove/force
  157. # Add or remove space after preprocessor '#' stringify operator. Also affects the '#@' charizing operator. Default=Add
  158. sp_pp_stringify = add # ignore/add/remove/force
  159. # Add or remove space around boolean operators '&&' and '||'
  160. sp_bool = force # ignore/add/remove/force
  161. # Add or remove space around compare operator '<', '>', '==', etc
  162. sp_compare = force # ignore/add/remove/force
  163. # Add or remove space inside '(' and ')'
  164. sp_inside_paren = remove # ignore/add/remove/force
  165. # Add or remove space between nested parens
  166. sp_paren_paren = remove # ignore/add/remove/force
  167. # Whether to balance spaces inside nested parens
  168. sp_balance_nested_parens = false # false/true
  169. # Add or remove space between ')' and '{'
  170. sp_paren_brace = force # ignore/add/remove/force
  171. # Add or remove space before pointer star '*'
  172. sp_before_ptr_star = add # ignore/add/remove/force
  173. # Add or remove space before pointer star '*' that isn't followed by a variable name
  174. # If set to 'ignore', sp_before_ptr_star is used instead.
  175. sp_before_unnamed_ptr_star = add # ignore/add/remove/force
  176. # Add or remove space between pointer stars '*'
  177. sp_between_ptr_star = remove # ignore/add/remove/force
  178. # Add or remove space after pointer star '*', if followed by a word.
  179. sp_after_ptr_star = remove # ignore/add/remove/force
  180. # Add or remove space after a pointer star '*', if followed by a func proto/def.
  181. sp_after_ptr_star_func = remove # ignore/add/remove/force
  182. # Add or remove space before a pointer star '*', if followed by a func proto/def.
  183. sp_before_ptr_star_func = ignore # ignore/add/remove/force
  184. # Add or remove space before a reference sign '&'
  185. sp_before_byref = force # ignore/add/remove/force
  186. # Add or remove space before a reference sign '&' that isn't followed by a variable name
  187. # If set to 'ignore', sp_before_byref is used instead.
  188. sp_before_unnamed_byref = force # ignore/add/remove/force
  189. # Add or remove space after reference sign '&', if followed by a word.
  190. sp_after_byref = ignore # ignore/add/remove/force
  191. # Add or remove space after a reference sign '&', if followed by a func proto/def.
  192. sp_after_byref_func = ignore # ignore/add/remove/force
  193. # Add or remove space before a reference sign '&', if followed by a func proto/def.
  194. sp_before_byref_func = ignore # ignore/add/remove/force
  195. # Add or remove space between type and word. Default=Force
  196. sp_after_type = force # ignore/add/remove/force
  197. # Add or remove space in 'template <' vs 'template<'.
  198. # If set to ignore, sp_before_angle is used.
  199. sp_template_angle = ignore # ignore/add/remove/force
  200. # Add or remove space before '<>'
  201. sp_before_angle = ignore # ignore/add/remove/force
  202. # Add or remove space inside '<' and '>'
  203. sp_inside_angle = ignore # ignore/add/remove/force
  204. # Add or remove space after '<>'
  205. sp_after_angle = ignore # ignore/add/remove/force
  206. # Add or remove space between '<>' and '(' as found in 'new List<byte>();'
  207. sp_angle_paren = ignore # ignore/add/remove/force
  208. # Add or remove space between '<>' and a word as in 'List<byte> m;'
  209. sp_angle_word = ignore # ignore/add/remove/force
  210. # Add or remove space between '>' and '>' in '>>' (template stuff C++/C# only). Default=Add
  211. sp_angle_shift = add # ignore/add/remove/force
  212. # Add or remove space before '(' of 'if', 'for', 'switch', and 'while'
  213. sp_before_sparen = force # ignore/add/remove/force
  214. # Add or remove space inside if-condition '(' and ')'
  215. sp_inside_sparen = remove # ignore/add/remove/force
  216. # Add or remove space before if-condition ')'. Overrides sp_inside_sparen.
  217. sp_inside_sparen_close = ignore # ignore/add/remove/force
  218. # Add or remove space after ')' of 'if', 'for', 'switch', and 'while'
  219. sp_after_sparen = ignore # ignore/add/remove/force
  220. # Add or remove space between ')' and '{' of 'if', 'for', 'switch', and 'while'
  221. sp_sparen_brace = force # ignore/add/remove/force
  222. # Add or remove space between 'invariant' and '(' in the D language.
  223. sp_invariant_paren = ignore # ignore/add/remove/force
  224. # Add or remove space after the ')' in 'invariant (C) c' in the D language.
  225. sp_after_invariant_paren = ignore # ignore/add/remove/force
  226. # Add or remove space before empty statement ';' on 'if', 'for' and 'while'
  227. sp_special_semi = ignore # ignore/add/remove/force
  228. # Add or remove space before ';'. Default=Remove
  229. sp_before_semi = remove # ignore/add/remove/force
  230. # Add or remove space before ';' in non-empty 'for' statements
  231. sp_before_semi_for = ignore # ignore/add/remove/force
  232. # Add or remove space before a semicolon of an empty part of a for statement.
  233. sp_before_semi_for_empty = ignore # ignore/add/remove/force
  234. # Add or remove space after ';', except when followed by a comment. Default=Add
  235. sp_after_semi = force # ignore/add/remove/force
  236. # Add or remove space after ';' in non-empty 'for' statements. Default=Force
  237. sp_after_semi_for = force # ignore/add/remove/force
  238. # Add or remove space after the final semicolon of an empty part of a for statement: for ( ; ; <here> ).
  239. sp_after_semi_for_empty = remove # ignore/add/remove/force
  240. # Add or remove space before '[' (except '[]')
  241. sp_before_square = remove # ignore/add/remove/force
  242. # Add or remove space before '[]'
  243. sp_before_squares = ignore # ignore/add/remove/force
  244. # Add or remove space inside '[' and ']'
  245. sp_inside_square = remove # ignore/add/remove/force
  246. # Add or remove space after ','
  247. sp_after_comma = force # ignore/add/remove/force
  248. # Add or remove space before ','
  249. sp_before_comma = remove # ignore/add/remove/force
  250. # Add or remove space between an open paren and comma: '(,' vs '( ,'
  251. sp_paren_comma = force # ignore/add/remove/force
  252. # Add or remove space before the variadic '...' when preceded by a non-punctuator
  253. sp_before_ellipsis = ignore # ignore/add/remove/force
  254. # Add or remove space after class ':'
  255. sp_after_class_colon = ignore # ignore/add/remove/force
  256. # Add or remove space before class ':'
  257. sp_before_class_colon = ignore # ignore/add/remove/force
  258. # Add or remove space before case ':'. Default=Remove
  259. sp_before_case_colon = remove # ignore/add/remove/force
  260. # Add or remove space between 'operator' and operator sign
  261. sp_after_operator = ignore # ignore/add/remove/force
  262. # Add or remove space between the operator symbol and the open paren, as in 'operator ++('
  263. sp_after_operator_sym = ignore # ignore/add/remove/force
  264. # Add or remove space after C/D cast, i.e. 'cast(int)a' vs 'cast(int) a' or '(int)a' vs '(int) a'
  265. sp_after_cast = remove # ignore/add/remove/force
  266. # Add or remove spaces inside cast parens
  267. sp_inside_paren_cast = remove # ignore/add/remove/force
  268. # Add or remove space between the type and open paren in a C++ cast, i.e. 'int(exp)' vs 'int (exp)'
  269. sp_cpp_cast_paren = ignore # ignore/add/remove/force
  270. # Add or remove space between 'sizeof' and '('
  271. sp_sizeof_paren = remove # ignore/add/remove/force
  272. # Add or remove space after the tag keyword (Pawn)
  273. sp_after_tag = ignore # ignore/add/remove/force
  274. # Add or remove space inside enum '{' and '}'
  275. sp_inside_braces_enum = remove # ignore/add/remove/force
  276. # Add or remove space inside struct/union '{' and '}'
  277. sp_inside_braces_struct = force # ignore/add/remove/force
  278. # Add or remove space inside '{' and '}'
  279. sp_inside_braces = force # ignore/add/remove/force
  280. # Add or remove space inside '{}'
  281. sp_inside_braces_empty = remove # ignore/add/remove/force
  282. # Add or remove space between return type and function name
  283. # A minimum of 1 is forced except for pointer return types.
  284. sp_type_func = remove # ignore/add/remove/force
  285. # Add or remove space between function name and '(' on function declaration
  286. sp_func_proto_paren = remove # ignore/add/remove/force
  287. # Add or remove space between function name and '(' on function definition
  288. sp_func_def_paren = remove # ignore/add/remove/force
  289. # Add or remove space inside empty function '()'
  290. sp_inside_fparens = remove # ignore/add/remove/force
  291. # Add or remove space inside function '(' and ')'
  292. sp_inside_fparen = remove # ignore/add/remove/force
  293. # Add or remove space between ']' and '(' when part of a function call.
  294. sp_square_fparen = ignore # ignore/add/remove/force
  295. # Add or remove space between ')' and '{' of function
  296. sp_fparen_brace = ignore # ignore/add/remove/force
  297. # Add or remove space between function name and '(' on function calls
  298. sp_func_call_paren = remove # ignore/add/remove/force
  299. # Add or remove space between function name and '()' on function calls without parameters.
  300. # If set to 'ignore' (the default), sp_func_call_paren is used.
  301. sp_func_call_paren_empty = ignore # ignore/add/remove/force
  302. # Add or remove space between the user function name and '(' on function calls
  303. # You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file.
  304. sp_func_call_user_paren = ignore # ignore/add/remove/force
  305. # Add or remove space between a constructor/destructor and the open paren
  306. sp_func_class_paren = ignore # ignore/add/remove/force
  307. # Add or remove space between 'return' and '('
  308. sp_return_paren = ignore # ignore/add/remove/force
  309. # Add or remove space between '__attribute__' and '('
  310. sp_attribute_paren = remove # ignore/add/remove/force
  311. # Add or remove space between 'defined' and '(' in '#if defined (FOO)'
  312. sp_defined_paren = ignore # ignore/add/remove/force
  313. # Add or remove space between 'throw' and '(' in 'throw (something)'
  314. sp_throw_paren = ignore # ignore/add/remove/force
  315. # Add or remove space between macro and value
  316. sp_macro = ignore # ignore/add/remove/force
  317. # Add or remove space between macro function ')' and value
  318. sp_macro_func = ignore # ignore/add/remove/force
  319. # Add or remove space between 'else' and '{' if on the same line
  320. sp_else_brace = force # ignore/add/remove/force
  321. # Add or remove space between '}' and 'else' if on the same line
  322. sp_brace_else = force # ignore/add/remove/force
  323. # Add or remove space between '}' and the name of a typedef on the same line
  324. sp_brace_typedef = force # ignore/add/remove/force
  325. # Add or remove space between 'catch' and '{' if on the same line
  326. sp_catch_brace = ignore # ignore/add/remove/force
  327. # Add or remove space between '}' and 'catch' if on the same line
  328. sp_brace_catch = ignore # ignore/add/remove/force
  329. # Add or remove space between 'finally' and '{' if on the same line
  330. sp_finally_brace = ignore # ignore/add/remove/force
  331. # Add or remove space between '}' and 'finally' if on the same line
  332. sp_brace_finally = ignore # ignore/add/remove/force
  333. # Add or remove space between 'try' and '{' if on the same line
  334. sp_try_brace = ignore # ignore/add/remove/force
  335. # Add or remove space between get/set and '{' if on the same line
  336. sp_getset_brace = ignore # ignore/add/remove/force
  337. # Add or remove space before the '::' operator
  338. sp_before_dc = ignore # ignore/add/remove/force
  339. # Add or remove space after the '::' operator
  340. sp_after_dc = ignore # ignore/add/remove/force
  341. # Add or remove around the D named array initializer ':' operator
  342. sp_d_array_colon = ignore # ignore/add/remove/force
  343. # Add or remove space after the '!' (not) operator. Default=Remove
  344. sp_not = remove # ignore/add/remove/force
  345. # Add or remove space after the '~' (invert) operator. Default=Remove
  346. sp_inv = remove # ignore/add/remove/force
  347. # Add or remove space after the '&' (address-of) operator. Default=Remove
  348. # This does not affect the spacing after a '&' that is part of a type.
  349. sp_addr = remove # ignore/add/remove/force
  350. # Add or remove space around the '.' or '->' operators. Default=Remove
  351. sp_member = remove # ignore/add/remove/force
  352. # Add or remove space after the '*' (dereference) operator. Default=Remove
  353. # This does not affect the spacing after a '*' that is part of a type.
  354. sp_deref = remove # ignore/add/remove/force
  355. # Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'. Default=Remove
  356. sp_sign = remove # ignore/add/remove/force
  357. # Add or remove space before or after '++' and '--', as in '(--x)' or 'y++;'. Default=Remove
  358. sp_incdec = remove # ignore/add/remove/force
  359. # Add or remove space before a backslash-newline at the end of a line. Default=Add
  360. sp_before_nl_cont = add # ignore/add/remove/force
  361. # Add or remove space after the scope '+' or '-', as in '-(void) foo;' or '+(int) bar;'
  362. sp_after_oc_scope = ignore # ignore/add/remove/force
  363. # Add or remove space after the colon in message specs
  364. # '-(int) f:(int) x;' vs '-(int) f: (int) x;'
  365. sp_after_oc_colon = ignore # ignore/add/remove/force
  366. # Add or remove space before the colon in message specs
  367. # '-(int) f: (int) x;' vs '-(int) f : (int) x;'
  368. sp_before_oc_colon = ignore # ignore/add/remove/force
  369. # Add or remove space after the colon in message specs
  370. # '[object setValue:1];' vs '[object setValue: 1];'
  371. sp_after_send_oc_colon = ignore # ignore/add/remove/force
  372. # Add or remove space before the colon in message specs
  373. # '[object setValue:1];' vs '[object setValue :1];'
  374. sp_before_send_oc_colon = ignore # ignore/add/remove/force
  375. # Add or remove space after the (type) in message specs
  376. # '-(int)f: (int) x;' vs '-(int)f: (int)x;'
  377. sp_after_oc_type = ignore # ignore/add/remove/force
  378. # Add or remove space after the first (type) in message specs
  379. # '-(int) f:(int)x;' vs '-(int)f:(int)x;'
  380. sp_after_oc_return_type = ignore # ignore/add/remove/force
  381. # Add or remove space between '@selector' and '('
  382. # '@selector(msgName)' vs '@selector (msgName)'
  383. # Also applies to @protocol() constructs
  384. sp_after_oc_at_sel = ignore # ignore/add/remove/force
  385. # Add or remove space between '@selector(x)' and the following word
  386. # '@selector(foo) a:' vs '@selector(foo)a:'
  387. sp_after_oc_at_sel_parens = ignore # ignore/add/remove/force
  388. # Add or remove space inside '@selector' parens
  389. # '@selector(foo)' vs '@selector( foo )'
  390. # Also applies to @protocol() constructs
  391. sp_inside_oc_at_sel_parens = ignore # ignore/add/remove/force
  392. # Add or remove space before a block pointer caret
  393. # '^int (int arg){...}' vs. ' ^int (int arg){...}'
  394. sp_before_oc_block_caret = ignore # ignore/add/remove/force
  395. # Add or remove space after a block pointer caret
  396. # '^int (int arg){...}' vs. '^ int (int arg){...}'
  397. sp_after_oc_block_caret = ignore # ignore/add/remove/force
  398. # Add or remove space around the ':' in 'b ? t : f'
  399. sp_cond_colon = force # ignore/add/remove/force
  400. # Add or remove space around the '?' in 'b ? t : f'
  401. sp_cond_question = force # ignore/add/remove/force
  402. # Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make sense here.
  403. sp_case_label = ignore # ignore/add/remove/force
  404. # Control the space around the D '..' operator.
  405. sp_range = ignore # ignore/add/remove/force
  406. # Control the space after the opening of a C++ comment '// A' vs '//A'
  407. # MPlayer devs note: we ignore the following setting because it breaks Doxygen comments
  408. #sp_cmt_cpp_start = ignore # ignore/add/remove/force
  409. sp_cmt_cpp_start = add # ignore/add/remove/force
  410. # Controls the spaces between #else or #endif and a trailing comment
  411. sp_endif_cmt = ignore # ignore/add/remove/force
  412. #
  413. # Code alignment (not left column spaces/tabs)
  414. #
  415. # Whether to keep non-indenting tabs
  416. align_keep_tabs = false # false/true
  417. # Whether to use tabs for aligning
  418. align_with_tabs = false # false/true
  419. # Whether to bump out to the next tab when aligning
  420. align_on_tabstop = false # false/true
  421. # Whether to left-align numbers
  422. align_number_left = true # false/true
  423. # Align variable definitions in prototypes and functions
  424. align_func_params = false # false/true
  425. # Align parameters in single-line functions that have the same name.
  426. # The function names must already be aligned with each other.
  427. align_same_func_call_params = false # false/true
  428. # The span for aligning variable definitions (0=don't align)
  429. align_var_def_span = 0 # number
  430. # How to align the star in variable definitions.
  431. # 0=Part of the type 'void * foo;'
  432. # 1=Part of the variable 'void *foo;'
  433. # 2=Dangling 'void *foo;'
  434. align_var_def_star_style = 2 # number
  435. # How to align the '&' in variable definitions.
  436. # 0=Part of the type
  437. # 1=Part of the variable
  438. # 2=Dangling
  439. align_var_def_amp_style = 0 # number
  440. # The threshold for aligning variable definitions (0=no limit)
  441. align_var_def_thresh = 0 # number
  442. # The gap for aligning variable definitions
  443. align_var_def_gap = 0 # number
  444. # Whether to align the colon in struct bit fields
  445. align_var_def_colon = false # false/true
  446. # Whether to align any attribute after the variable name
  447. align_var_def_attribute = false # false/true
  448. # Whether to align inline struct/enum/union variable definitions
  449. align_var_def_inline = false # false/true
  450. # The span for aligning on '=' in assignments (0=don't align)
  451. align_assign_span = 1 # number
  452. # The threshold for aligning on '=' in assignments (0=no limit)
  453. align_assign_thresh = 0 # number
  454. # The span for aligning on '=' in enums (0=don't align)
  455. align_enum_equ_span = 1 # number
  456. # The threshold for aligning on '=' in enums (0=no limit)
  457. align_enum_equ_thresh = 0 # number
  458. # The span for aligning struct/union (0=don't align)
  459. align_var_struct_span = 0 # number
  460. # The threshold for aligning struct/union member definitions (0=no limit)
  461. align_var_struct_thresh = 0 # number
  462. # The gap for aligning struct/union member definitions
  463. align_var_struct_gap = 0 # number
  464. # The span for aligning struct initializer values (0=don't align)
  465. align_struct_init_span = 1 # number
  466. # The minimum space between the type and the synonym of a typedef
  467. align_typedef_gap = 0 # number
  468. # The span for aligning single-line typedefs (0=don't align)
  469. align_typedef_span = 0 # number
  470. # How to align typedef'd functions with other typedefs
  471. # 0: Don't mix them at all
  472. # 1: align the open paren with the types
  473. # 2: align the function type name with the other type names
  474. align_typedef_func = 0 # number
  475. # Controls the positioning of the '*' in typedefs. Just try it.
  476. # 0: Align on typedef type, ignore '*'
  477. # 1: The '*' is part of type name: typedef int *pint;
  478. # 2: The '*' is part of the type, but dangling: typedef int *pint;
  479. align_typedef_star_style = 0 # number
  480. # Controls the positioning of the '&' in typedefs. Just try it.
  481. # 0: Align on typedef type, ignore '&'
  482. # 1: The '&' is part of type name: typedef int &pint;
  483. # 2: The '&' is part of the type, but dangling: typedef int &pint;
  484. align_typedef_amp_style = 0 # number
  485. # The span for aligning comments that end lines (0=don't align)
  486. align_right_cmt_span = 0 # number
  487. # If aligning comments, mix with comments after '}' and #endif with less than 3 spaces before the comment
  488. align_right_cmt_mix = false # false/true
  489. # If a trailing comment is more than this number of columns away from the text it follows,
  490. # it will qualify for being aligned. This has to be > 0 to do anything.
  491. align_right_cmt_gap = 0 # number
  492. # Align trailing comment at or beyond column N; 'pulls in' comments as a bonus side effect (0=ignore)
  493. align_right_cmt_at_col = 0 # number
  494. # The span for aligning function prototypes (0=don't align)
  495. align_func_proto_span = 0 # number
  496. # Minimum gap between the return type and the function name.
  497. align_func_proto_gap = 0 # number
  498. # Align function protos on the 'operator' keyword instead of what follows
  499. align_on_operator = false # false/true
  500. # Whether to mix aligning prototype and variable declarations.
  501. # If true, align_var_def_XXX options are used instead of align_func_proto_XXX options.
  502. align_mix_var_proto = false # false/true
  503. # Align single-line functions with function prototypes, uses align_func_proto_span
  504. align_single_line_func = false # false/true
  505. # Aligning the open brace of single-line functions.
  506. # Requires align_single_line_func=true, uses align_func_proto_span
  507. align_single_line_brace = false # false/true
  508. # Gap for align_single_line_brace.
  509. align_single_line_brace_gap = 0 # number
  510. # The span for aligning ObjC msg spec (0=don't align)
  511. align_oc_msg_spec_span = 0 # number
  512. # Whether to align macros wrapped with a backslash and a newline.
  513. # This will not work right if the macro contains a multi-line comment.
  514. align_nl_cont = false # false/true
  515. # The minimum space between label and value of a preprocessor define
  516. align_pp_define_gap = 0 # number
  517. # The span for aligning on '#define' bodies (0=don't align)
  518. align_pp_define_span = 0 # number
  519. # Align lines that start with '<<' with previous '<<'. Default=true
  520. align_left_shift = true # false/true
  521. # Span for aligning parameters in an Obj-C message call on the ':' (0=don't align)
  522. align_oc_msg_colon_span = 0 # number
  523. # Aligning parameters in an Obj-C '+' or '-' declaration on the ':'
  524. align_oc_decl_colon = false # false/true
  525. #
  526. # Newline adding and removing options
  527. #
  528. # Whether to collapse empty blocks between '{' and '}'
  529. nl_collapse_empty_body = false # false/true
  530. # Don't split one-line braced assignments - 'foo_t f = { 1, 2 };'
  531. nl_assign_leave_one_liners = false # false/true
  532. # Don't split one-line braced statements inside a class xx { } body
  533. nl_class_leave_one_liners = false # false/true
  534. # Don't split one-line enums: 'enum foo { BAR = 15 };'
  535. nl_enum_leave_one_liners = false # false/true
  536. # Don't split one-line get or set functions
  537. nl_getset_leave_one_liners = false # false/true
  538. # Don't split one-line function definitions - 'int foo() { return 0; }'
  539. nl_func_leave_one_liners = false # false/true
  540. # Don't split one-line if/else statements - 'if(a) b++;'
  541. nl_if_leave_one_liners = false # false/true
  542. # Add or remove newlines at the start of the file
  543. nl_start_of_file = remove # ignore/add/remove/force
  544. # The number of newlines at the start of the file (only used if nl_start_of_file is 'add' or 'force'
  545. nl_start_of_file_min = 0 # number
  546. # Add or remove newline at the end of the file
  547. nl_end_of_file = force # ignore/add/remove/force
  548. # The number of newlines at the end of the file (only used if nl_end_of_file is 'add' or 'force')
  549. nl_end_of_file_min = 1 # number
  550. # Add or remove newline between '=' and '{'
  551. nl_assign_brace = remove # ignore/add/remove/force
  552. # Add or remove newline between '=' and '[' (D only)
  553. nl_assign_square = ignore # ignore/add/remove/force
  554. # Add or remove newline after '= [' (D only). Will also affect the newline before the ']'
  555. nl_after_square_assign = ignore # ignore/add/remove/force
  556. # The number of blank lines after a block of variable definitions
  557. nl_func_var_def_blk = 0 # number
  558. # Add or remove newline between a function call's ')' and '{', as in:
  559. # list_for_each(item, &list) { }
  560. nl_fcall_brace = ignore # ignore/add/remove/force
  561. # Add or remove newline between 'enum' and '{'
  562. nl_enum_brace = remove # ignore/add/remove/force
  563. # Add or remove newline between 'struct and '{'
  564. nl_struct_brace = remove # ignore/add/remove/force
  565. # Add or remove newline between 'union' and '{'
  566. nl_union_brace = remove # ignore/add/remove/force
  567. # Add or remove newline between 'if' and '{'
  568. nl_if_brace = remove # ignore/add/remove/force
  569. # Add or remove newline between '}' and 'else'
  570. nl_brace_else = remove # ignore/add/remove/force
  571. # Add or remove newline between 'else if' and '{'
  572. # If set to ignore, nl_if_brace is used instead
  573. nl_elseif_brace = ignore # ignore/add/remove/force
  574. # Add or remove newline between 'else' and '{'
  575. nl_else_brace = remove # ignore/add/remove/force
  576. # Add or remove newline between 'else' and 'if'
  577. nl_else_if = remove # ignore/add/remove/force
  578. # Add or remove newline between '}' and 'finally'
  579. nl_brace_finally = ignore # ignore/add/remove/force
  580. # Add or remove newline between 'finally' and '{'
  581. nl_finally_brace = ignore # ignore/add/remove/force
  582. # Add or remove newline between 'try' and '{'
  583. nl_try_brace = ignore # ignore/add/remove/force
  584. # Add or remove newline between get/set and '{'
  585. nl_getset_brace = ignore # ignore/add/remove/force
  586. # Add or remove newline between 'for' and '{'
  587. nl_for_brace = remove # ignore/add/remove/force
  588. # Add or remove newline between 'catch' and '{'
  589. nl_catch_brace = ignore # ignore/add/remove/force
  590. # Add or remove newline between '}' and 'catch'
  591. nl_brace_catch = ignore # ignore/add/remove/force
  592. # Add or remove newline between 'while' and '{'
  593. nl_while_brace = remove # ignore/add/remove/force
  594. # Add or remove newline between 'using' and '{'
  595. nl_using_brace = ignore # ignore/add/remove/force
  596. # Add or remove newline between two open or close braces.
  597. # Due to general newline/brace handling, REMOVE may not work.
  598. nl_brace_brace = ignore # ignore/add/remove/force
  599. # Add or remove newline between 'do' and '{'
  600. nl_do_brace = remove # ignore/add/remove/force
  601. # Add or remove newline between '}' and 'while' of 'do' statement
  602. nl_brace_while = remove # ignore/add/remove/force
  603. # Add or remove newline between 'switch' and '{'
  604. nl_switch_brace = remove # ignore/add/remove/force
  605. # Add a newline between ')' and '{' if the ')' is on a different line than the if/for/etc.
  606. # Overrides nl_for_brace, nl_if_brace, nl_switch_brace, nl_while_switch, and nl_catch_brace.
  607. nl_multi_line_cond = false # false/true
  608. # Force a newline in a define after the macro name for multi-line defines.
  609. nl_multi_line_define = false # false/true
  610. # Whether to put a newline before 'case' statement
  611. nl_before_case = false # false/true
  612. # Add or remove newline between ')' and 'throw'
  613. nl_before_throw = ignore # ignore/add/remove/force
  614. # Whether to put a newline after 'case' statement
  615. nl_after_case = true # false/true
  616. # Newline between namespace and {
  617. nl_namespace_brace = ignore # ignore/add/remove/force
  618. # Add or remove newline between 'template<>' and whatever follows.
  619. nl_template_class = ignore # ignore/add/remove/force
  620. # Add or remove newline between 'class' and '{'
  621. nl_class_brace = ignore # ignore/add/remove/force
  622. # Add or remove newline after each ',' in the constructor member initialization
  623. nl_class_init_args = ignore # ignore/add/remove/force
  624. # Add or remove newline between return type and function name in a function definition
  625. nl_func_type_name = force # ignore/add/remove/force
  626. # Add or remove newline between return type and function name inside a class {}
  627. # Uses nl_func_type_name or nl_func_proto_type_name if set to ignore.
  628. nl_func_type_name_class = ignore # ignore/add/remove/force
  629. # Add or remove newline between function scope and name in a definition
  630. # Controls the newline after '::' in 'void A::f() { }'
  631. nl_func_scope_name = ignore # ignore/add/remove/force
  632. # Add or remove newline between return type and function name in a prototype
  633. nl_func_proto_type_name = remove # ignore/add/remove/force
  634. # Add or remove newline between a function name and the opening '('
  635. nl_func_paren = remove # ignore/add/remove/force
  636. # Add or remove newline between a function name and the opening '(' in the definition
  637. nl_func_def_paren = remove # ignore/add/remove/force
  638. # Add or remove newline after '(' in a function declaration
  639. nl_func_decl_start = remove # ignore/add/remove/force
  640. # Add or remove newline after '(' in a function definition
  641. nl_func_def_start = ignore # ignore/add/remove/force
  642. # Overrides nl_func_decl_start when there is only one parameter.
  643. nl_func_decl_start_single = ignore # ignore/add/remove/force
  644. # Overrides nl_func_def_start when there is only one parameter.
  645. nl_func_def_start_single = ignore # ignore/add/remove/force
  646. # Add or remove newline after each ',' in a function declaration
  647. nl_func_decl_args = ignore # ignore/add/remove/force
  648. # Add or remove newline after each ',' in a function definition
  649. nl_func_def_args = ignore # ignore/add/remove/force
  650. # Add or remove newline before the ')' in a function declaration
  651. nl_func_decl_end = remove # ignore/add/remove/force
  652. # Add or remove newline before the ')' in a function definition
  653. nl_func_def_end = ignore # ignore/add/remove/force
  654. # Overrides nl_func_decl_end when there is only one parameter.
  655. nl_func_decl_end_single = ignore # ignore/add/remove/force
  656. # Overrides nl_func_def_end when there is only one parameter.
  657. nl_func_def_end_single = ignore # ignore/add/remove/force
  658. # Add or remove newline between '()' in a function declaration.
  659. nl_func_decl_empty = ignore # ignore/add/remove/force
  660. # Add or remove newline between '()' in a function definition.
  661. nl_func_def_empty = ignore # ignore/add/remove/force
  662. # Add or remove newline between function signature and '{'
  663. nl_fdef_brace = force # ignore/add/remove/force
  664. # Whether to put a newline after 'return' statement
  665. nl_after_return = false # false/true
  666. # Add or remove a newline between the return keyword and return expression.
  667. nl_return_expr = ignore # ignore/add/remove/force
  668. # Whether to put a newline after semicolons, except in 'for' statements
  669. nl_after_semicolon = true # false/true
  670. # Whether to put a newline after brace open.
  671. # This also adds a newline before the matching brace close.
  672. nl_after_brace_open = false # false/true
  673. # If nl_after_brace_open and nl_after_brace_open_cmt are true, a newline is
  674. # placed between the open brace and a trailing single-line comment.
  675. nl_after_brace_open_cmt = false # false/true
  676. # Whether to put a newline after a virtual brace open with a non-empty body.
  677. # These occur in un-braced if/while/do/for statement bodies.
  678. nl_after_vbrace_open = true # false/true
  679. # Whether to put a newline after a virtual brace open with an empty body.
  680. # These occur in un-braced if/while/do/for statement bodies.
  681. nl_after_vbrace_open_empty = false # false/true
  682. # Whether to put a newline after a brace close.
  683. # Does not apply if followed by a necessary ';'.
  684. nl_after_brace_close = false # false/true
  685. # Whether to put a newline after a virtual brace close.
  686. # Would add a newline before return in: 'if (foo) a++; return;'
  687. nl_after_vbrace_close = false # false/true
  688. # Whether to alter newlines in '#define' macros
  689. nl_define_macro = false # false/true
  690. # Whether to not put blanks after '#ifxx', '#elxx', or before '#endif'
  691. nl_squeeze_ifdef = false # false/true
  692. # Add or remove blank line before 'if'
  693. nl_before_if = ignore # ignore/add/remove/force
  694. # Add or remove blank line after 'if' statement
  695. nl_after_if = ignore # ignore/add/remove/force
  696. # Add or remove blank line before 'for'
  697. nl_before_for = ignore # ignore/add/remove/force
  698. # Add or remove blank line after 'for' statement
  699. nl_after_for = ignore # ignore/add/remove/force
  700. # Add or remove blank line before 'while'
  701. nl_before_while = ignore # ignore/add/remove/force
  702. # Add or remove blank line after 'while' statement
  703. nl_after_while = ignore # ignore/add/remove/force
  704. # Add or remove blank line before 'switch'
  705. nl_before_switch = ignore # ignore/add/remove/force
  706. # Add or remove blank line after 'switch' statement
  707. nl_after_switch = ignore # ignore/add/remove/force
  708. # Add or remove blank line before 'do'
  709. nl_before_do = ignore # ignore/add/remove/force
  710. # Add or remove blank line after 'do/while' statement
  711. nl_after_do = ignore # ignore/add/remove/force
  712. # Whether to double-space commented-entries in struct/enum
  713. nl_ds_struct_enum_cmt = false # false/true
  714. # Whether to double-space before the close brace of a struct/union/enum
  715. # (lower priority than 'eat_blanks_before_close_brace')
  716. nl_ds_struct_enum_close_brace = false # false/true
  717. # Add or remove a newline around a class colon.
  718. # Related to pos_class_colon, nl_class_init_args, and pos_comma.
  719. nl_class_colon = ignore # ignore/add/remove/force
  720. # Change simple unbraced if statements into a one-liner
  721. # 'if(b)\n i++;' => 'if(b) i++;'
  722. nl_create_if_one_liner = false # false/true
  723. # Change simple unbraced for statements into a one-liner
  724. # 'for (i=0;i<5;i++)\n foo(i);' => 'for (i=0;i<5;i++) foo(i);'
  725. nl_create_for_one_liner = false # false/true
  726. # Change simple unbraced while statements into a one-liner
  727. # 'while (i<5)\n foo(i++);' => 'while (i<5) foo(i++);'
  728. nl_create_while_one_liner = false # false/true
  729. #
  730. # Positioning options
  731. #
  732. # The position of arithmetic operators in wrapped expressions
  733. pos_arith = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
  734. # The position of assignment in wrapped expressions.
  735. # Do not affect '=' followed by '{'
  736. pos_assign = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
  737. # The position of boolean operators in wrapped expressions
  738. pos_bool = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
  739. # The position of comparison operators in wrapped expressions
  740. pos_compare = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
  741. # The position of conditional (b ? t : f) operators in wrapped expressions
  742. pos_conditional = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
  743. # The position of the comma in wrapped expressions
  744. pos_comma = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
  745. # The position of the comma in the constructor initialization list
  746. pos_class_comma = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
  747. # The position of colons between constructor and member initialization
  748. pos_class_colon = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
  749. #
  750. # Line Splitting options
  751. #
  752. # Try to limit code width to N number of columns
  753. code_width = 120 # number
  754. # Whether to fully split long 'for' statements at semi-colons
  755. ls_for_split_full = false # false/true
  756. # Whether to fully split long function protos/calls at commas
  757. ls_func_split_full = false # false/true
  758. #
  759. # Blank line options
  760. #
  761. # The maximum consecutive newlines
  762. nl_max = 2 # number
  763. # The number of newlines after a function prototype, if followed by another function prototype
  764. nl_after_func_proto = 0 # number
  765. # The number of newlines after a function prototype, if not followed by another function prototype
  766. nl_after_func_proto_group = 0 # number
  767. # The number of newlines after '}' of a multi-line function body
  768. nl_after_func_body = 2 # number
  769. # The number of newlines after '}' of a single line function body
  770. nl_after_func_body_one_liner = 2 # number
  771. # The minimum number of newlines before a multi-line comment.
  772. # Doesn't apply if after a brace open or another multi-line comment.
  773. nl_before_block_comment = 0 # number
  774. # The minimum number of newlines before a single-line C comment.
  775. # Doesn't apply if after a brace open or other single-line C comments.
  776. nl_before_c_comment = 0 # number
  777. # The minimum number of newlines before a CPP comment.
  778. # Doesn't apply if after a brace open or other CPP comments.
  779. nl_before_cpp_comment = 0 # number
  780. # Whether to force a newline after a multi-line comment.
  781. nl_after_multiline_comment = false # false/true
  782. # The number of newlines before a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
  783. # Will not change the newline count if after a brace open.
  784. # 0 = No change.
  785. nl_before_access_spec = 0 # number
  786. # The number of newlines after a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
  787. # 0 = No change.
  788. nl_after_access_spec = 0 # number
  789. # The number of newlines between a function def and the function comment.
  790. # 0 = No change.
  791. nl_comment_func_def = 0 # number
  792. # The number of newlines after a try-catch-finally block that isn't followed by a brace close.
  793. # 0 = No change.
  794. nl_after_try_catch_finally = 0 # number
  795. # The number of newlines before and after a property, indexer or event decl.
  796. # 0 = No change.
  797. nl_around_cs_property = 0 # number
  798. # The number of newlines between the get/set/add/remove handlers in C#.
  799. # 0 = No change.
  800. nl_between_get_set = 0 # number
  801. # Whether to remove blank lines after '{'
  802. eat_blanks_after_open_brace = true # false/true
  803. # Whether to remove blank lines before '}'
  804. eat_blanks_before_close_brace = true # false/true
  805. #
  806. # Code modifying options (non-whitespace)
  807. #
  808. # Add or remove braces on single-line 'do' statement
  809. mod_full_brace_do = remove # ignore/add/remove/force
  810. # Add or remove braces on single-line 'for' statement
  811. mod_full_brace_for = remove # ignore/add/remove/force
  812. # Add or remove braces on single-line function definitions. (Pawn)
  813. mod_full_brace_function = ignore # ignore/add/remove/force
  814. # Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'.
  815. mod_full_brace_if = ignore # ignore/add/remove/force
  816. # Make all if/elseif/else statements in a chain be braced or not. Overrides mod_full_brace_if.
  817. # If any must be braced, they are all braced. If all can be unbraced, then the braces are removed.
  818. mod_full_brace_if_chain = false # false/true
  819. # Don't remove braces around statements that span N newlines
  820. mod_full_brace_nl = 0 # number
  821. # Add or remove braces on single-line 'while' statement
  822. mod_full_brace_while = remove # ignore/add/remove/force
  823. # Add or remove braces on single-line 'using ()' statement
  824. mod_full_brace_using = remove # ignore/add/remove/force
  825. # Add or remove unnecessary paren on 'return' statement
  826. mod_paren_on_return = remove # ignore/add/remove/force
  827. # Whether to change optional semicolons to real semicolons
  828. mod_pawn_semicolon = false # false/true
  829. # Add parens on 'while' and 'if' statement around bools
  830. mod_full_paren_if_bool = false # false/true
  831. # Whether to remove superfluous semicolons
  832. mod_remove_extra_semicolon = true # false/true
  833. # If a function body exceeds the specified number of newlines and doesn't have a comment after
  834. # the close brace, a comment will be added.
  835. mod_add_long_function_closebrace_comment = 0 # number
  836. # If a switch body exceeds the specified number of newlines and doesn't have a comment after
  837. # the close brace, a comment will be added.
  838. mod_add_long_switch_closebrace_comment = 0 # number
  839. # If an #ifdef body exceeds the specified number of newlines and doesn't have a comment after
  840. # the #else, a comment will be added.
  841. mod_add_long_ifdef_endif_comment = 0 # number
  842. # If an #ifdef or #else body exceeds the specified number of newlines and doesn't have a comment after
  843. # the #endif, a comment will be added.
  844. mod_add_long_ifdef_else_comment = 0 # number
  845. # If TRUE, will sort consecutive single-line 'import' statements [Java, D]
  846. mod_sort_import = false # false/true
  847. # If TRUE, will sort consecutive single-line 'using' statements [C#]
  848. mod_sort_using = false # false/true
  849. # If TRUE, will sort consecutive single-line '#include' statements [C/C++] and '#import' statements [Obj-C]
  850. # This is generally a bad idea, as it may break your code.
  851. mod_sort_include = false # false/true
  852. # If TRUE, it will move a 'break' that appears after a fully braced 'case' before the close brace.
  853. mod_move_case_break = false # false/true
  854. # Will add or remove the braces around a fully braced case statement.
  855. # Will only remove the braces if there are no variable declarations in the block.
  856. mod_case_brace = ignore # ignore/add/remove/force
  857. # If TRUE, it will remove a void 'return;' that appears as the last statement in a function.
  858. mod_remove_empty_return = false # false/true
  859. #
  860. # Comment modifications
  861. #
  862. # Try to wrap comments at cmt_width columns
  863. cmt_width = 0 # number
  864. # Set the comment reflow mode (default: 0)
  865. # 0: no reflowing (apart from the line wrapping due to cmt_width)
  866. # 1: no touching at all
  867. # 2: full reflow
  868. cmt_reflow_mode = 0 # number
  869. # If false, disable all multi-line comment changes, including cmt_width. keyword substitution, and leading chars.
  870. # Default is true.
  871. cmt_indent_multi = true # false/true
  872. # Whether to group c-comments that look like they are in a block
  873. cmt_c_group = false # false/true
  874. # Whether to put an empty '/*' on the first line of the combined c-comment
  875. cmt_c_nl_start = false # false/true
  876. # Whether to put a newline before the closing '*/' of the combined c-comment
  877. cmt_c_nl_end = false # false/true
  878. # Whether to group cpp-comments that look like they are in a block
  879. cmt_cpp_group = false # false/true
  880. # Whether to put an empty '/*' on the first line of the combined cpp-comment
  881. cmt_cpp_nl_start = false # false/true
  882. # Whether to put a newline before the closing '*/' of the combined cpp-comment
  883. cmt_cpp_nl_end = false # false/true
  884. # Whether to change cpp-comments into c-comments
  885. cmt_cpp_to_c = false # false/true
  886. # Whether to put a star on subsequent comment lines
  887. cmt_star_cont = true # false/true
  888. # The number of spaces to insert at the start of subsequent comment lines
  889. cmt_sp_before_star_cont = 0 # number
  890. # The number of spaces to insert after the star on subsequent comment lines
  891. cmt_sp_after_star_cont = 0 # number
  892. # For multi-line comments with a '*' lead, remove leading spaces if the first and last lines of
  893. # the comment are the same length. Default=True
  894. cmt_multi_check_last = false # false/true
  895. # The filename that contains text to insert at the head of a file if the file doesn't start with a C/C++ comment.
  896. # Will substitute $(filename) with the current file's name.
  897. cmt_insert_file_header = "" # string
  898. # The filename that contains text to insert at the end of a file if the file doesn't end with a C/C++ comment.
  899. # Will substitute $(filename) with the current file's name.
  900. cmt_insert_file_footer = "" # string
  901. # The filename that contains text to insert before a function implementation if the function isn't preceded with a C/C++ comment.
  902. # Will substitute $(function) with the function name and $(javaparam) with the javadoc @param and @return stuff.
  903. # Will also substitute $(fclass) with the class name: void CFoo::Bar() { ... }
  904. cmt_insert_func_header = "" # string
  905. # The filename that contains text to insert before a class if the class isn't preceded with a C/C++ comment.
  906. # Will substitute $(class) with the class name.
  907. cmt_insert_class_header = "" # string
  908. # If a preprocessor is encountered when stepping backwards from a function name, then
  909. # this option decides whether the comment should be inserted.
  910. # Affects cmt_insert_func_header and cmt_insert_class_header.
  911. cmt_insert_before_preproc = false # false/true
  912. #
  913. # Preprocessor options
  914. #
  915. # Control indent of preprocessors inside #if blocks at brace level 0
  916. pp_indent = remove # ignore/add/remove/force
  917. # Whether to indent #if/#else/#endif at the brace level (true) or from column 1 (false)
  918. pp_indent_at_level = false # false/true
  919. # If pp_indent_at_level=false, specifies the number of columns to indent per level. Default=1.
  920. pp_indent_count = 1 # number
  921. # Add or remove space after # based on pp_level of #if blocks
  922. pp_space = remove # ignore/add/remove/force
  923. # Sets the number of spaces added with pp_space
  924. pp_space_count = 0 # number
  925. # The indent for #region and #endregion in C# and '#pragma region' in C/C++
  926. pp_indent_region = 0 # number
  927. # Whether to indent the code between #region and #endregion
  928. pp_region_indent_code = false # false/true
  929. # If pp_indent_at_level=true, sets the indent for #if, #else, and #endif when not at file-level
  930. pp_indent_if = 0 # number
  931. # Control whether to indent the code between #if, #else and #endif when not at file-level
  932. pp_if_indent_code = false # false/true
  933. # Whether to indent '#define' at the brace level (true) or from column 1 (false)
  934. pp_define_at_level = false # false/true
  935. # You can force a token to be a type with the 'type' option.
  936. # Example:
  937. # type myfoo1 myfoo2
  938. #
  939. # You can create custom macro-based indentation using macro-open,
  940. # macro-else and macro-close.
  941. # Example:
  942. # macro-open BEGIN_TEMPLATE_MESSAGE_MAP
  943. # macro-open BEGIN_MESSAGE_MAP
  944. # macro-close END_MESSAGE_MAP
  945. #
  946. # You can assign any keyword to any type with the set option.
  947. # set func_call_user _ N_
  948. #
  949. # The full syntax description of all custom definition config entries
  950. # is shown below:
  951. #
  952. # define custom tokens as:
  953. # - embed whitespace in token using '' escape character, or
  954. # put token in quotes
  955. # - these: ' " and ` are recognized as quote delimiters
  956. #
  957. # type token1 token2 token3 ...
  958. # ^ optionally specify multiple tokens on a single line
  959. # define def_token output_token
  960. # ^ output_token is optional, then NULL is assumed
  961. # macro-open token
  962. # macro-close token
  963. # macro-else token
  964. # set id token1 token2 ...
  965. # ^ optionally specify multiple tokens on a single line
  966. # ^ id is one of the names in token_enum.h sans the CT_ prefix,
  967. # e.g. PP_PRAGMA
  968. #
  969. # all tokens are separated by any mix of ',' commas, '=' equal signs
  970. # and whitespace (space, tab)
  971. #