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.

1612 lines
72 KiB

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