mconnect - KDE Connect protocol implementation in Vala/C
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.

1645 lines
72 KiB

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