uncrustify.cfg 63 KB

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