uncrustify.cfg 90 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094
  1. # Uncrustify-0.65-87-f2f2997d-dirty
  2. #
  3. # General options
  4. #
  5. # The type of line endings. Default=Auto
  6. newlines = auto # auto/lf/crlf/cr
  7. # The original size of tabs in the input. Default=8
  8. input_tab_size = 8 # unsigned number
  9. # The size of tabs in the output (only used if align_with_tabs=true). Default=8
  10. output_tab_size = 8 # unsigned number
  11. # The ASCII value of the string escape char, usually 92 (\) or 94 (^). (Pawn)
  12. string_escape_char = 92 # unsigned number
  13. # Alternate string escape char for Pawn. Only works right before the quote char.
  14. string_escape_char2 = 0 # unsigned number
  15. # Replace tab characters found in string literals with the escape sequence \t instead.
  16. string_replace_tab_chars = false # false/true
  17. # Allow interpreting '>=' and '>>=' as part of a template in 'void f(list<list<B>>=val);'.
  18. # If True, 'assert(x<0 && y>=3)' will be broken. Default=False
  19. # Improvements to template detection may make this option obsolete.
  20. tok_split_gte = false # false/true
  21. # Override the default ' *INDENT-OFF*' in comments for disabling processing of part of the file.
  22. disable_processing_cmt = "" # string
  23. # Override the default ' *INDENT-ON*' in comments for enabling processing of part of the file.
  24. enable_processing_cmt = "" # string
  25. # Enable parsing of digraphs. Default=False
  26. enable_digraphs = false # false/true
  27. # Control what to do with the UTF-8 BOM (recommend 'remove')
  28. utf8_bom = ignore # ignore/add/remove/force
  29. # If the file contains bytes with values between 128 and 255, but is not UTF-8, then output as UTF-8
  30. utf8_byte = false # false/true
  31. # Force the output encoding to UTF-8
  32. utf8_force = false # false/true
  33. #
  34. # Spacing options
  35. #
  36. # Add or remove space around arithmetic operator '+', '-', '/', '*', etc
  37. # also '>>>' '<<' '>>' '%' '|'
  38. sp_arith = force # ignore/add/remove/force
  39. # Add or remove space around assignment operator '=', '+=', etc
  40. sp_assign = force # ignore/add/remove/force
  41. # Add or remove space around '=' in C++11 lambda capture specifications. Overrides sp_assign
  42. sp_cpp_lambda_assign = remove # ignore/add/remove/force
  43. # Add or remove space after the capture specification in C++11 lambda.
  44. sp_cpp_lambda_paren = remove # ignore/add/remove/force
  45. # Add or remove space around assignment operator '=' in a prototype
  46. sp_assign_default = ignore # ignore/add/remove/force
  47. # Add or remove space before assignment operator '=', '+=', etc. Overrides sp_assign.
  48. sp_before_assign = ignore # ignore/add/remove/force
  49. # Add or remove space after assignment operator '=', '+=', etc. Overrides sp_assign.
  50. sp_after_assign = ignore # ignore/add/remove/force
  51. # Add or remove space in 'NS_ENUM ('
  52. sp_enum_paren = ignore # ignore/add/remove/force
  53. # Add or remove space around assignment '=' in enum
  54. sp_enum_assign = ignore # ignore/add/remove/force
  55. # Add or remove space before assignment '=' in enum. Overrides sp_enum_assign.
  56. sp_enum_before_assign = ignore # ignore/add/remove/force
  57. # Add or remove space after assignment '=' in enum. Overrides sp_enum_assign.
  58. sp_enum_after_assign = ignore # ignore/add/remove/force
  59. # Add or remove space around assignment ':' in enum
  60. sp_enum_colon = force # ignore/add/remove/force
  61. # Add or remove space around preprocessor '##' concatenation operator. Default=Add
  62. sp_pp_concat = add # ignore/add/remove/force
  63. # Add or remove space after preprocessor '#' stringify operator. Also affects the '#@' charizing operator.
  64. sp_pp_stringify = ignore # ignore/add/remove/force
  65. # Add or remove space before preprocessor '#' stringify operator as in '#define x(y) L#y'.
  66. sp_before_pp_stringify = ignore # ignore/add/remove/force
  67. # Add or remove space around boolean operators '&&' and '||'
  68. sp_bool = force # ignore/add/remove/force
  69. # Add or remove space around compare operator '<', '>', '==', etc
  70. sp_compare = force # ignore/add/remove/force
  71. # Add or remove space inside '(' and ')'
  72. sp_inside_paren = remove # ignore/add/remove/force
  73. # Add or remove space between nested parens: '((' vs ') )'
  74. sp_paren_paren = remove # ignore/add/remove/force
  75. # Add or remove space between back-to-back parens: ')(' vs ') ('
  76. sp_cparen_oparen = remove # ignore/add/remove/force
  77. # Whether to balance spaces inside nested parens
  78. sp_balance_nested_parens = false # false/true
  79. # Add or remove space between ')' and '{'
  80. sp_paren_brace = remove # ignore/add/remove/force
  81. # Add or remove space before pointer star '*'
  82. sp_before_ptr_star = force # ignore/add/remove/force
  83. # Add or remove space before pointer star '*' that isn't followed by a variable name
  84. # If set to 'ignore', sp_before_ptr_star is used instead.
  85. sp_before_unnamed_ptr_star = ignore # ignore/add/remove/force
  86. # Add or remove space between pointer stars '*'
  87. sp_between_ptr_star = ignore # ignore/add/remove/force
  88. # Add or remove space after pointer star '*', if followed by a word.
  89. sp_after_ptr_star = force # ignore/add/remove/force
  90. # Add or remove space after pointer star '*', if followed by a qualifier.
  91. sp_after_ptr_star_qualifier = ignore # ignore/add/remove/force
  92. # Add or remove space after a pointer star '*', if followed by a func proto/def.
  93. sp_after_ptr_star_func = ignore # ignore/add/remove/force
  94. # Add or remove space after a pointer star '*', if followed by an open paren (function types).
  95. sp_ptr_star_paren = ignore # ignore/add/remove/force
  96. # Add or remove space before a pointer star '*', if followed by a func proto/def.
  97. sp_before_ptr_star_func = ignore # ignore/add/remove/force
  98. # Add or remove space before a reference sign '&'
  99. sp_before_byref = force # ignore/add/remove/force
  100. # Add or remove space before a reference sign '&' that isn't followed by a variable name
  101. # If set to 'ignore', sp_before_byref is used instead.
  102. sp_before_unnamed_byref = ignore # ignore/add/remove/force
  103. # Add or remove space after reference sign '&', if followed by a word.
  104. sp_after_byref = force # ignore/add/remove/force
  105. # Add or remove space after a reference sign '&', if followed by a func proto/def.
  106. sp_after_byref_func = ignore # ignore/add/remove/force
  107. # Add or remove space before a reference sign '&', if followed by a func proto/def.
  108. sp_before_byref_func = ignore # ignore/add/remove/force
  109. # Add or remove space between type and word. Default=Force
  110. sp_after_type = force # ignore/add/remove/force
  111. # Add or remove space before the paren in the D constructs 'template Foo(' and 'class Foo('.
  112. sp_before_template_paren = ignore # ignore/add/remove/force
  113. # Add or remove space in 'template <' vs 'template<'.
  114. # If set to ignore, sp_before_angle is used.
  115. sp_template_angle = remove # ignore/add/remove/force
  116. # Add or remove space before '<>'
  117. sp_before_angle = remove # ignore/add/remove/force
  118. # Add or remove space inside '<' and '>'
  119. sp_inside_angle = remove # ignore/add/remove/force
  120. # Add or remove space after '<>'
  121. sp_after_angle = remove # ignore/add/remove/force
  122. # Add or remove space between '<>' and '(' as found in 'new List<byte>(foo);'
  123. sp_angle_paren = remove # ignore/add/remove/force
  124. # Add or remove space between '<>' and '()' as found in 'new List<byte>();'
  125. sp_angle_paren_empty = remove # ignore/add/remove/force
  126. # Add or remove space between '<>' and a word as in 'List<byte> m;' or 'template <typename T> static ...'
  127. sp_angle_word = force # ignore/add/remove/force
  128. # Add or remove space between '>' and '>' in '>>' (template stuff C++/C# only). Default=Add
  129. sp_angle_shift = ignore # ignore/add/remove/force
  130. # Permit removal of the space between '>>' in 'foo<bar<int> >' (C++11 only). Default=False
  131. # sp_angle_shift cannot remove the space without this option.
  132. sp_permit_cpp11_shift = true # false/true
  133. # Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc.
  134. sp_before_sparen = remove # ignore/add/remove/force
  135. # Add or remove space inside if-condition '(' and ')'
  136. sp_inside_sparen = remove # ignore/add/remove/force
  137. # Add or remove space before if-condition ')'. Overrides sp_inside_sparen.
  138. sp_inside_sparen_close = ignore # ignore/add/remove/force
  139. # Add or remove space after if-condition '('. Overrides sp_inside_sparen.
  140. sp_inside_sparen_open = ignore # ignore/add/remove/force
  141. # Add or remove space after ')' of 'if', 'for', 'switch', and 'while', etc.
  142. sp_after_sparen = ignore # ignore/add/remove/force
  143. # Add or remove space between ')' and '{' of 'if', 'for', 'switch', and 'while', etc.
  144. sp_sparen_brace = ignore # ignore/add/remove/force
  145. # Add or remove space between 'invariant' and '(' in the D language.
  146. sp_invariant_paren = ignore # ignore/add/remove/force
  147. # Add or remove space after the ')' in 'invariant (C) c' in the D language.
  148. sp_after_invariant_paren = ignore # ignore/add/remove/force
  149. # Add or remove space before empty statement ';' on 'if', 'for' and 'while'
  150. sp_special_semi = ignore # ignore/add/remove/force
  151. # Add or remove space before ';'. Default=Remove
  152. sp_before_semi = remove # ignore/add/remove/force
  153. # Add or remove space before ';' in non-empty 'for' statements
  154. sp_before_semi_for = ignore # ignore/add/remove/force
  155. # Add or remove space before a semicolon of an empty part of a for statement.
  156. sp_before_semi_for_empty = ignore # ignore/add/remove/force
  157. # Add or remove space after ';', except when followed by a comment. Default=Add
  158. sp_after_semi = force # ignore/add/remove/force
  159. # Add or remove space after ';' in non-empty 'for' statements. Default=Force
  160. sp_after_semi_for = force # ignore/add/remove/force
  161. # Add or remove space after the final semicolon of an empty part of a for statement: for ( ; ; <here> ).
  162. sp_after_semi_for_empty = ignore # ignore/add/remove/force
  163. # Add or remove space before '[' (except '[]')
  164. sp_before_square = remove # ignore/add/remove/force
  165. # Add or remove space before '[]'
  166. sp_before_squares = remove # ignore/add/remove/force
  167. # Add or remove space inside a non-empty '[' and ']'
  168. sp_inside_square = remove # ignore/add/remove/force
  169. # Add or remove space after ','
  170. sp_after_comma = force # ignore/add/remove/force
  171. # Add or remove space before ','. Default=Remove
  172. sp_before_comma = remove # ignore/add/remove/force
  173. # Add or remove space between ',' and ']' in multidimensional array type 'int[,,]'
  174. sp_after_mdatype_commas = ignore # ignore/add/remove/force
  175. # Add or remove space between '[' and ',' in multidimensional array type 'int[,,]'
  176. sp_before_mdatype_commas = ignore # ignore/add/remove/force
  177. # Add or remove space between ',' in multidimensional array type 'int[,,]'
  178. sp_between_mdatype_commas = ignore # ignore/add/remove/force
  179. # Add or remove space between an open paren and comma: '(,' vs '( ,'. Default=Force
  180. sp_paren_comma = force # ignore/add/remove/force
  181. # Add or remove space before the variadic '...' when preceded by a non-punctuator
  182. sp_before_ellipsis = ignore # ignore/add/remove/force
  183. # Add or remove space after class ':'
  184. sp_after_class_colon = force # ignore/add/remove/force
  185. # Add or remove space before class ':'
  186. sp_before_class_colon = force # ignore/add/remove/force
  187. # Add or remove space after class constructor ':'
  188. sp_after_constr_colon = force # ignore/add/remove/force
  189. # Add or remove space before class constructor ':'
  190. sp_before_constr_colon = force # ignore/add/remove/force
  191. # Add or remove space before case ':'. Default=Remove
  192. sp_before_case_colon = remove # ignore/add/remove/force
  193. # Add or remove space between 'operator' and operator sign
  194. sp_after_operator = remove # ignore/add/remove/force
  195. # Add or remove space between the operator symbol and the open paren, as in 'operator ++('
  196. sp_after_operator_sym = remove # ignore/add/remove/force
  197. # Add or remove space between the operator symbol and the open paren when the operator has no arguments, as in 'operator *()'
  198. sp_after_operator_sym_empty = remove # ignore/add/remove/force
  199. # Add or remove space after C/D cast, i.e. 'cast(int)a' vs 'cast(int) a' or '(int)a' vs '(int) a'
  200. sp_after_cast = remove # ignore/add/remove/force
  201. # Add or remove spaces inside cast parens
  202. sp_inside_paren_cast = remove # ignore/add/remove/force
  203. # Add or remove space between the type and open paren in a C++ cast, i.e. 'int(exp)' vs 'int (exp)'
  204. sp_cpp_cast_paren = remove # ignore/add/remove/force
  205. # Add or remove space between 'sizeof' and '('
  206. sp_sizeof_paren = remove # ignore/add/remove/force
  207. # Add or remove space after the tag keyword (Pawn)
  208. sp_after_tag = ignore # ignore/add/remove/force
  209. # Add or remove space inside enum '{' and '}'
  210. sp_inside_braces_enum = remove # ignore/add/remove/force
  211. # Add or remove space inside struct/union '{' and '}'
  212. sp_inside_braces_struct = remove # ignore/add/remove/force
  213. # Add or remove space after open brace in an unnamed temporary direct-list-initialization
  214. sp_after_type_brace_init_lst_open = ignore # ignore/add/remove/force
  215. # Add or remove space before close brace in an unnamed temporary direct-list-initialization
  216. sp_before_type_brace_init_lst_close = ignore # ignore/add/remove/force
  217. # Add or remove space inside an unnamed temporary direct-list-initialization
  218. sp_inside_type_brace_init_lst = ignore # ignore/add/remove/force
  219. # Add or remove space inside '{' and '}'
  220. sp_inside_braces = ignore # ignore/add/remove/force
  221. # Add or remove space inside '{}'
  222. sp_inside_braces_empty = remove # ignore/add/remove/force
  223. # Add or remove space between return type and function name
  224. # A minimum of 1 is forced except for pointer return types.
  225. sp_type_func = force # ignore/add/remove/force
  226. # Add or remove space between type and open brace of an unnamed temporary direct-list-initialization
  227. sp_type_brace_init_lst = ignore # ignore/add/remove/force
  228. # Add or remove space between function name and '(' on function declaration
  229. sp_func_proto_paren = remove # ignore/add/remove/force
  230. # Add or remove space between function name and '()' on function declaration without parameters
  231. sp_func_proto_paren_empty = remove # ignore/add/remove/force
  232. # Add or remove space between function name and '(' on function definition
  233. sp_func_def_paren = remove # ignore/add/remove/force
  234. # Add or remove space between function name and '()' on function definition without parameters
  235. sp_func_def_paren_empty = remove # ignore/add/remove/force
  236. # Add or remove space inside empty function '()'
  237. sp_inside_fparens = remove # ignore/add/remove/force
  238. # Add or remove space inside function '(' and ')'
  239. sp_inside_fparen = remove # ignore/add/remove/force
  240. # Add or remove space inside the first parens in the function type: 'void (*x)(...)'
  241. sp_inside_tparen = ignore # ignore/add/remove/force
  242. # Add or remove between the parens in the function type: 'void (*x)(...)'
  243. sp_after_tparen_close = ignore # ignore/add/remove/force
  244. # Add or remove space between ']' and '(' when part of a function call.
  245. sp_square_fparen = ignore # ignore/add/remove/force
  246. # Add or remove space between ')' and '{' of function
  247. sp_fparen_brace = ignore # ignore/add/remove/force
  248. # Java: Add or remove space between ')' and '{{' of double brace initializer.
  249. sp_fparen_dbrace = ignore # ignore/add/remove/force
  250. # Add or remove space between function name and '(' on function calls
  251. sp_func_call_paren = remove # ignore/add/remove/force
  252. # Add or remove space between function name and '()' on function calls without parameters.
  253. # If set to 'ignore' (the default), sp_func_call_paren is used.
  254. sp_func_call_paren_empty = ignore # ignore/add/remove/force
  255. # Add or remove space between the user function name and '(' on function calls
  256. # You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file.
  257. sp_func_call_user_paren = ignore # ignore/add/remove/force
  258. # Add or remove space between a constructor/destructor and the open paren
  259. sp_func_class_paren = remove # ignore/add/remove/force
  260. # Add or remove space between a constructor without parameters or destructor and '()'
  261. sp_func_class_paren_empty = remove # ignore/add/remove/force
  262. # Add or remove space between 'return' and '('
  263. sp_return_paren = force # ignore/add/remove/force
  264. # Add or remove space between '__attribute__' and '('
  265. sp_attribute_paren = remove # ignore/add/remove/force
  266. # Add or remove space between 'defined' and '(' in '#if defined (FOO)'
  267. sp_defined_paren = remove # ignore/add/remove/force
  268. # Add or remove space between 'throw' and '(' in 'throw (something)'
  269. sp_throw_paren = ignore # ignore/add/remove/force
  270. # Add or remove space between 'throw' and anything other than '(' as in '@throw [...];'
  271. sp_after_throw = ignore # ignore/add/remove/force
  272. # Add or remove space between 'catch' and '(' in 'catch (something) { }'
  273. # If set to ignore, sp_before_sparen is used.
  274. sp_catch_paren = remove # ignore/add/remove/force
  275. # Add or remove space between 'version' and '(' in 'version (something) { }' (D language)
  276. # If set to ignore, sp_before_sparen is used.
  277. sp_version_paren = ignore # ignore/add/remove/force
  278. # Add or remove space between 'scope' and '(' in 'scope (something) { }' (D language)
  279. # If set to ignore, sp_before_sparen is used.
  280. sp_scope_paren = ignore # ignore/add/remove/force
  281. # Add or remove space between 'super' and '(' in 'super (something)'. Default=Remove
  282. sp_super_paren = remove # ignore/add/remove/force
  283. # Add or remove space between 'this' and '(' in 'this (something)'. Default=Remove
  284. sp_this_paren = remove # ignore/add/remove/force
  285. # Add or remove space between macro and value
  286. sp_macro = ignore # ignore/add/remove/force
  287. # Add or remove space between macro function ')' and value
  288. sp_macro_func = ignore # ignore/add/remove/force
  289. # Add or remove space between 'else' and '{' if on the same line
  290. sp_else_brace = ignore # ignore/add/remove/force
  291. # Add or remove space between '}' and 'else' if on the same line
  292. sp_brace_else = ignore # ignore/add/remove/force
  293. # Add or remove space between '}' and the name of a typedef on the same line
  294. sp_brace_typedef = ignore # ignore/add/remove/force
  295. # Add or remove space between 'catch' and '{' if on the same line
  296. sp_catch_brace = ignore # ignore/add/remove/force
  297. # Add or remove space between '}' and 'catch' if on the same line
  298. sp_brace_catch = ignore # ignore/add/remove/force
  299. # Add or remove space between 'finally' and '{' if on the same line
  300. sp_finally_brace = ignore # ignore/add/remove/force
  301. # Add or remove space between '}' and 'finally' if on the same line
  302. sp_brace_finally = ignore # ignore/add/remove/force
  303. # Add or remove space between 'try' and '{' if on the same line
  304. sp_try_brace = ignore # ignore/add/remove/force
  305. # Add or remove space between get/set and '{' if on the same line
  306. sp_getset_brace = ignore # ignore/add/remove/force
  307. # Add or remove space between a variable and '{' for C++ uniform initialization. Default=Add
  308. sp_word_brace = ignore # ignore/add/remove/force
  309. # Add or remove space between a variable and '{' for a namespace. Default=Add
  310. sp_word_brace_ns = ignore # ignore/add/remove/force
  311. # Add or remove space before the '::' operator
  312. sp_before_dc = remove # ignore/add/remove/force
  313. # Add or remove space after the '::' operator
  314. sp_after_dc = remove # ignore/add/remove/force
  315. # Add or remove around the D named array initializer ':' operator
  316. sp_d_array_colon = ignore # ignore/add/remove/force
  317. # Add or remove space after the '!' (not) operator. Default=Remove
  318. sp_not = remove # ignore/add/remove/force
  319. # Add or remove space after the '~' (invert) operator. Default=Remove
  320. sp_inv = remove # ignore/add/remove/force
  321. # Add or remove space after the '&' (address-of) operator. Default=Remove
  322. # This does not affect the spacing after a '&' that is part of a type.
  323. sp_addr = remove # ignore/add/remove/force
  324. # Add or remove space around the '.' or '->' operators. Default=Remove
  325. sp_member = remove # ignore/add/remove/force
  326. # Add or remove space after the '*' (dereference) operator. Default=Remove
  327. # This does not affect the spacing after a '*' that is part of a type.
  328. sp_deref = remove # ignore/add/remove/force
  329. # Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'. Default=Remove
  330. sp_sign = remove # ignore/add/remove/force
  331. # Add or remove space before or after '++' and '--', as in '(--x)' or 'y++;'. Default=Remove
  332. sp_incdec = remove # ignore/add/remove/force
  333. # Add or remove space before a backslash-newline at the end of a line. Default=Add
  334. sp_before_nl_cont = add # ignore/add/remove/force
  335. # Add or remove space after the scope '+' or '-', as in '-(void) foo;' or '+(int) bar;'
  336. sp_after_oc_scope = ignore # ignore/add/remove/force
  337. # Add or remove space after the colon in message specs
  338. # '-(int) f:(int) x;' vs '-(int) f: (int) x;'
  339. sp_after_oc_colon = ignore # ignore/add/remove/force
  340. # Add or remove space before the colon in message specs
  341. # '-(int) f: (int) x;' vs '-(int) f : (int) x;'
  342. sp_before_oc_colon = ignore # ignore/add/remove/force
  343. # Add or remove space after the colon in immutable dictionary expression
  344. # 'NSDictionary *test = @{@"foo" :@"bar"};'
  345. sp_after_oc_dict_colon = ignore # ignore/add/remove/force
  346. # Add or remove space before the colon in immutable dictionary expression
  347. # 'NSDictionary *test = @{@"foo" :@"bar"};'
  348. sp_before_oc_dict_colon = ignore # ignore/add/remove/force
  349. # Add or remove space after the colon in message specs
  350. # '[object setValue:1];' vs '[object setValue: 1];'
  351. sp_after_send_oc_colon = ignore # ignore/add/remove/force
  352. # Add or remove space before the colon in message specs
  353. # '[object setValue:1];' vs '[object setValue :1];'
  354. sp_before_send_oc_colon = ignore # ignore/add/remove/force
  355. # Add or remove space after the (type) in message specs
  356. # '-(int)f: (int) x;' vs '-(int)f: (int)x;'
  357. sp_after_oc_type = ignore # ignore/add/remove/force
  358. # Add or remove space after the first (type) in message specs
  359. # '-(int) f:(int)x;' vs '-(int)f:(int)x;'
  360. sp_after_oc_return_type = ignore # ignore/add/remove/force
  361. # Add or remove space between '@selector' and '('
  362. # '@selector(msgName)' vs '@selector (msgName)'
  363. # Also applies to @protocol() constructs
  364. sp_after_oc_at_sel = ignore # ignore/add/remove/force
  365. # Add or remove space between '@selector(x)' and the following word
  366. # '@selector(foo) a:' vs '@selector(foo)a:'
  367. sp_after_oc_at_sel_parens = ignore # ignore/add/remove/force
  368. # Add or remove space inside '@selector' parens
  369. # '@selector(foo)' vs '@selector( foo )'
  370. # Also applies to @protocol() constructs
  371. sp_inside_oc_at_sel_parens = ignore # ignore/add/remove/force
  372. # Add or remove space before a block pointer caret
  373. # '^int (int arg){...}' vs. ' ^int (int arg){...}'
  374. sp_before_oc_block_caret = ignore # ignore/add/remove/force
  375. # Add or remove space after a block pointer caret
  376. # '^int (int arg){...}' vs. '^ int (int arg){...}'
  377. sp_after_oc_block_caret = ignore # ignore/add/remove/force
  378. # Add or remove space between the receiver and selector in a message.
  379. # '[receiver selector ...]'
  380. sp_after_oc_msg_receiver = ignore # ignore/add/remove/force
  381. # Add or remove space after @property.
  382. sp_after_oc_property = ignore # ignore/add/remove/force
  383. # Add or remove space around the ':' in 'b ? t : f'
  384. sp_cond_colon = ignore # ignore/add/remove/force
  385. # Add or remove space before the ':' in 'b ? t : f'. Overrides sp_cond_colon.
  386. sp_cond_colon_before = ignore # ignore/add/remove/force
  387. # Add or remove space after the ':' in 'b ? t : f'. Overrides sp_cond_colon.
  388. sp_cond_colon_after = ignore # ignore/add/remove/force
  389. # Add or remove space around the '?' in 'b ? t : f'
  390. sp_cond_question = ignore # ignore/add/remove/force
  391. # Add or remove space before the '?' in 'b ? t : f'. Overrides sp_cond_question.
  392. sp_cond_question_before = ignore # ignore/add/remove/force
  393. # Add or remove space after the '?' in 'b ? t : f'. Overrides sp_cond_question.
  394. sp_cond_question_after = ignore # ignore/add/remove/force
  395. # In the abbreviated ternary form (a ?: b), add/remove space between ? and :.'. Overrides all other sp_cond_* options.
  396. sp_cond_ternary_short = ignore # ignore/add/remove/force
  397. # Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make sense here.
  398. sp_case_label = force # ignore/add/remove/force
  399. # Control the space around the D '..' operator.
  400. sp_range = ignore # ignore/add/remove/force
  401. # Control the spacing after ':' in 'for (TYPE VAR : EXPR)'
  402. sp_after_for_colon = force # ignore/add/remove/force
  403. # Control the spacing before ':' in 'for (TYPE VAR : EXPR)'
  404. sp_before_for_colon = force # ignore/add/remove/force
  405. # Control the spacing in 'extern (C)' (D)
  406. sp_extern_paren = ignore # ignore/add/remove/force
  407. # Control the space after the opening of a C++ comment '// A' vs '//A'
  408. sp_cmt_cpp_start = ignore # ignore/add/remove/force
  409. # True: If space is added with sp_cmt_cpp_start, do it after doxygen sequences like '///', '///<', '//!' and '//!<'.
  410. sp_cmt_cpp_doxygen = false # false/true
  411. # True: If space is added with sp_cmt_cpp_start, do it after Qt translator or meta-data comments like '//:', '//=', and '//~'.
  412. sp_cmt_cpp_qttr = false # false/true
  413. # Controls the spaces between #else or #endif and a trailing comment
  414. sp_endif_cmt = ignore # ignore/add/remove/force
  415. # Controls the spaces after 'new', 'delete' and 'delete[]'
  416. sp_after_new = force # ignore/add/remove/force
  417. # Controls the spaces between new and '(' in 'new()'
  418. sp_between_new_paren = ignore # ignore/add/remove/force
  419. # Controls the spaces between ')' and 'type' in 'new(foo) BAR'
  420. sp_after_newop_paren = ignore # ignore/add/remove/force
  421. # Controls the spaces inside paren of the new operator: 'new(foo) BAR'
  422. sp_inside_newop_paren = ignore # ignore/add/remove/force
  423. # Controls the space after open paren of the new operator: 'new(foo) BAR'
  424. sp_inside_newop_paren_open = ignore # ignore/add/remove/force
  425. # Controls the space before close paren of the new operator: 'new(foo) BAR'
  426. sp_inside_newop_paren_close = ignore # ignore/add/remove/force
  427. # Controls the spaces before a trailing or embedded comment
  428. sp_before_tr_emb_cmt = force # ignore/add/remove/force
  429. # Number of spaces before a trailing or embedded comment
  430. sp_num_before_tr_emb_cmt = 1 # unsigned number
  431. # Control space between a Java annotation and the open paren.
  432. sp_annotation_paren = ignore # ignore/add/remove/force
  433. # If True, vbrace tokens are dropped to the previous token and skipped.
  434. sp_skip_vbrace_tokens = false # false/true
  435. # If True, a <TAB> is inserted after #define.
  436. force_tab_after_define = false # false/true
  437. #
  438. # Indenting
  439. #
  440. # The number of columns to indent per level.
  441. # Usually 2, 3, 4, or 8. Default=8
  442. indent_columns = 8 # unsigned number
  443. # The continuation indent. If non-zero, this overrides the indent of '(' and '=' continuation indents.
  444. # For FreeBSD, this is set to 4. Negative value is absolute and not increased for each ( level
  445. indent_continue = 0 # number
  446. # The continuation indent for func_*_param if they are true.
  447. # If non-zero, this overrides the indent.
  448. indent_param = 0 # unsigned number
  449. # How to use tabs when indenting code
  450. # 0=spaces only
  451. # 1=indent with tabs to brace level, align with spaces (default)
  452. # 2=indent and align with tabs, using spaces when not on a tabstop
  453. indent_with_tabs = 2 # unsigned number
  454. # Comments that are not a brace level are indented with tabs on a tabstop.
  455. # Requires indent_with_tabs=2. If false, will use spaces.
  456. indent_cmt_with_tabs = false # false/true
  457. # Whether to indent strings broken by '\' so that they line up
  458. indent_align_string = false # false/true
  459. # The number of spaces to indent multi-line XML strings.
  460. # Requires indent_align_string=True
  461. indent_xml_string = 0 # unsigned number
  462. # Spaces to indent '{' from level
  463. indent_brace = 0 # unsigned number
  464. # Whether braces are indented to the body level
  465. indent_braces = false # false/true
  466. # Disabled indenting function braces if indent_braces is True
  467. indent_braces_no_func = false # false/true
  468. # Disabled indenting class braces if indent_braces is True
  469. indent_braces_no_class = false # false/true
  470. # Disabled indenting struct braces if indent_braces is True
  471. indent_braces_no_struct = false # false/true
  472. # Indent based on the size of the brace parent, i.e. 'if' => 3 spaces, 'for' => 4 spaces, etc.
  473. indent_brace_parent = false # false/true
  474. # Indent based on the paren open instead of the brace open in '({\n', default is to indent by brace.
  475. indent_paren_open_brace = false # false/true
  476. # indent a C# delegate by another level, default is to not indent by another level.
  477. indent_cs_delegate_brace = false # false/true
  478. # Whether the 'namespace' body is indented
  479. indent_namespace = false # false/true
  480. # Only indent one namespace and no sub-namespaces.
  481. # Requires indent_namespace=True.
  482. indent_namespace_single_indent = false # false/true
  483. # The number of spaces to indent a namespace block
  484. indent_namespace_level = 0 # unsigned number
  485. # If the body of the namespace is longer than this number, it won't be indented.
  486. # Requires indent_namespace=True. Default=0 (no limit)
  487. indent_namespace_limit = 0 # unsigned number
  488. # Whether the 'extern "C"' body is indented
  489. indent_extern = false # false/true
  490. # Whether the 'class' body is indented
  491. indent_class = true # false/true
  492. # Whether to indent the stuff after a leading base class colon
  493. indent_class_colon = false # false/true
  494. # Indent based on a class colon instead of the stuff after the colon.
  495. # Requires indent_class_colon=True. Default=False
  496. indent_class_on_colon = false # false/true
  497. # Whether to indent the stuff after a leading class initializer colon
  498. indent_constr_colon = false # false/true
  499. # Virtual indent from the ':' for member initializers. Default=2
  500. indent_ctor_init_leading = 2 # unsigned number
  501. # Additional indent for constructor initializer list.
  502. # Negative values decrease indent down to the first column. Default=0
  503. indent_ctor_init = 0 # number
  504. # False=treat 'else\nif' as 'else if' for indenting purposes
  505. # True=indent the 'if' one level
  506. indent_else_if = false # false/true
  507. # Amount to indent variable declarations after a open brace. neg=relative, pos=absolute
  508. indent_var_def_blk = 0 # number
  509. # Indent continued variable declarations instead of aligning.
  510. indent_var_def_cont = false # false/true
  511. # Indent continued shift expressions ('<<' and '>>') instead of aligning.
  512. # Turn align_left_shift off when enabling this.
  513. indent_shift = false # false/true
  514. # True: force indentation of function definition to start in column 1
  515. # False: use the default behavior
  516. indent_func_def_force_col1 = false # false/true
  517. # True: indent continued function call parameters one indent level
  518. # False: align parameters under the open paren
  519. indent_func_call_param = false # false/true
  520. # Same as indent_func_call_param, but for function defs
  521. indent_func_def_param = false # false/true
  522. # Same as indent_func_call_param, but for function protos
  523. indent_func_proto_param = false # false/true
  524. # Same as indent_func_call_param, but for class declarations
  525. indent_func_class_param = false # false/true
  526. # Same as indent_func_call_param, but for class variable constructors
  527. indent_func_ctor_var_param = false # false/true
  528. # Same as indent_func_call_param, but for templates
  529. indent_template_param = false # false/true
  530. # Double the indent for indent_func_xxx_param options.
  531. # Use both values of the options indent_columns and indent_param
  532. indent_func_param_double = false # false/true
  533. # Indentation column for standalone 'const' function decl/proto qualifier
  534. indent_func_const = 0 # unsigned number
  535. # Indentation column for standalone 'throw' function decl/proto qualifier
  536. indent_func_throw = 0 # unsigned number
  537. # The number of spaces to indent a continued '->' or '.'
  538. # Usually set to 0, 1, or indent_columns.
  539. indent_member = 0 # unsigned number
  540. # Spaces to indent single line ('//') comments on lines before code
  541. indent_sing_line_comments = 0 # unsigned number
  542. # If set, will indent trailing single line ('//') comments relative
  543. # to the code instead of trying to keep the same absolute column
  544. indent_relative_single_line_comments = false # false/true
  545. # Spaces to indent 'case' from 'switch'
  546. # Usually 0 or indent_columns.
  547. indent_switch_case = 0 # unsigned number
  548. # Whether to indent preproccesor statements inside of switch statements
  549. indent_switch_pp = true # false/true
  550. # Spaces to shift the 'case' line, without affecting any other lines
  551. # Usually 0.
  552. indent_case_shift = 0 # unsigned number
  553. # Spaces to indent '{' from 'case'.
  554. # By default, the brace will appear under the 'c' in case.
  555. # Usually set to 0 or indent_columns.
  556. # negative value are OK.
  557. indent_case_brace = 0 # number
  558. # Whether to indent comments found in first column
  559. indent_col1_comment = false # false/true
  560. # How to indent goto labels
  561. # >0: absolute column where 1 is the leftmost column
  562. # <=0: subtract from brace indent
  563. # Default=1
  564. indent_label = 1 # number
  565. # Same as indent_label, but for access specifiers that are followed by a colon. Default=1
  566. indent_access_spec = 1 # number
  567. # Indent the code after an access specifier by one level.
  568. # If set, this option forces 'indent_access_spec=0'
  569. indent_access_spec_body = false # false/true
  570. # If an open paren is followed by a newline, indent the next line so that it lines up after the open paren (not recommended)
  571. indent_paren_nl = false # false/true
  572. # Controls the indent of a close paren after a newline.
  573. # 0: Indent to body level
  574. # 1: Align under the open paren
  575. # 2: Indent to the brace level
  576. indent_paren_close = 0 # unsigned number
  577. # Controls the indent of a comma when inside a paren.If True, aligns under the open paren
  578. indent_comma_paren = false # false/true
  579. # Controls the indent of a BOOL operator when inside a paren.If True, aligns under the open paren
  580. indent_bool_paren = false # false/true
  581. # If 'indent_bool_paren' is True, controls the indent of the first expression. If True, aligns the first expression to the following ones
  582. indent_first_bool_expr = false # false/true
  583. # If an open square is followed by a newline, indent the next line so that it lines up after the open square (not recommended)
  584. indent_square_nl = false # false/true
  585. # Don't change the relative indent of ESQL/C 'EXEC SQL' bodies
  586. indent_preserve_sql = false # false/true
  587. # Align continued statements at the '='. Default=True
  588. # If False or the '=' is followed by a newline, the next line is indent one tab.
  589. indent_align_assign = false # false/true
  590. # Indent OC blocks at brace level instead of usual rules.
  591. indent_oc_block = false # false/true
  592. # Indent OC blocks in a message relative to the parameter name.
  593. # 0=use indent_oc_block rules, 1+=spaces to indent
  594. indent_oc_block_msg = 0 # unsigned number
  595. # Minimum indent for subsequent parameters
  596. indent_oc_msg_colon = 0 # unsigned number
  597. # If True, prioritize aligning with initial colon (and stripping spaces from lines, if necessary).
  598. # Default=True
  599. indent_oc_msg_prioritize_first_colon = true # false/true
  600. # 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).
  601. indent_oc_block_msg_xcode_style = false # false/true
  602. # If indent_oc_block_msg and this option are on, blocks will be indented from where the brace is relative to a msg keyword.
  603. indent_oc_block_msg_from_keyword = false # false/true
  604. # If indent_oc_block_msg and this option are on, blocks will be indented from where the brace is relative to a msg colon.
  605. indent_oc_block_msg_from_colon = false # false/true
  606. # If indent_oc_block_msg and this option are on, blocks will be indented from where the block caret is.
  607. indent_oc_block_msg_from_caret = false # false/true
  608. # If indent_oc_block_msg and this option are on, blocks will be indented from where the brace is.
  609. indent_oc_block_msg_from_brace = false # false/true
  610. # When identing after virtual brace open and newline add further spaces to reach this min. indent.
  611. indent_min_vbrace_open = 0 # unsigned number
  612. # True: When identing after virtual brace open and newline add further spaces after regular indent to reach next tabstop.
  613. indent_vbrace_open_on_tabstop = false # false/true
  614. # If True, a brace followed by another token (not a newline) will indent all contained lines to match the token.Default=True
  615. indent_token_after_brace = true # false/true
  616. # If True, cpp lambda body will be indentedDefault=False
  617. indent_cpp_lambda_body = false # false/true
  618. # indent (or not) an using block if no braces are used. Only for C#.Default=True
  619. indent_using_block = true # false/true
  620. # indent the continuation of ternary operator.
  621. # 0: (Default) off
  622. # 1: When the `if_false` is a continuation, indent it under `if_false`
  623. # 2: When the `:` is a continuation, indent it under `?`
  624. indent_ternary_operator = 0 # unsigned number
  625. #
  626. # Newline adding and removing options
  627. #
  628. # Whether to collapse empty blocks between '{' and '}'
  629. nl_collapse_empty_body = false # false/true
  630. # Don't split one-line braced assignments - 'foo_t f = { 1, 2 };'
  631. nl_assign_leave_one_liners = true # false/true
  632. # Don't split one-line braced statements inside a class xx { } body
  633. nl_class_leave_one_liners = false # false/true
  634. # Don't split one-line enums: 'enum foo { BAR = 15 };'
  635. nl_enum_leave_one_liners = false # false/true
  636. # Don't split one-line get or set functions
  637. nl_getset_leave_one_liners = false # false/true
  638. # Don't split one-line function definitions - 'int foo() { return 0; }'
  639. nl_func_leave_one_liners = true # false/true
  640. # Don't split one-line C++11 lambdas - '[]() { return 0; }'
  641. nl_cpp_lambda_leave_one_liners = true # false/true
  642. # Don't split one-line if/else statements - 'if(a) b++;'
  643. nl_if_leave_one_liners = false # false/true
  644. # Don't split one-line while statements - 'while(a) b++;'
  645. nl_while_leave_one_liners = false # false/true
  646. # Don't split one-line OC messages
  647. nl_oc_msg_leave_one_liner = false # false/true
  648. # Add or remove newline between Objective-C block signature and '{'
  649. nl_oc_block_brace = ignore # ignore/add/remove/force
  650. # Add or remove newlines at the start of the file
  651. nl_start_of_file = remove # ignore/add/remove/force
  652. # The number of newlines at the start of the file (only used if nl_start_of_file is 'add' or 'force'
  653. nl_start_of_file_min = 0 # unsigned number
  654. # Add or remove newline at the end of the file
  655. nl_end_of_file = force # ignore/add/remove/force
  656. # The number of newlines at the end of the file (only used if nl_end_of_file is 'add' or 'force')
  657. nl_end_of_file_min = 1 # unsigned number
  658. # Add or remove newline between '=' and '{'
  659. nl_assign_brace = force # ignore/add/remove/force
  660. # Add or remove newline between '=' and '[' (D only)
  661. nl_assign_square = ignore # ignore/add/remove/force
  662. # Add or remove newline after '= [' (D only). Will also affect the newline before the ']'
  663. nl_after_square_assign = ignore # ignore/add/remove/force
  664. # The number of blank lines after a block of variable definitions at the top of a function body
  665. # 0 = No change (default)
  666. nl_func_var_def_blk = 0 # unsigned number
  667. # The number of newlines before a block of typedefs
  668. # 0 = No change (default)
  669. # the option 'nl_after_access_spec' takes preference over 'nl_typedef_blk_start'
  670. nl_typedef_blk_start = 0 # unsigned number
  671. # The number of newlines after a block of typedefs
  672. # 0 = No change (default)
  673. nl_typedef_blk_end = 0 # unsigned number
  674. # The maximum consecutive newlines within a block of typedefs
  675. # 0 = No change (default)
  676. nl_typedef_blk_in = 0 # unsigned number
  677. # The number of newlines before a block of variable definitions not at the top of a function body
  678. # 0 = No change (default)
  679. # the option 'nl_after_access_spec' takes preference over 'nl_var_def_blk_start'
  680. nl_var_def_blk_start = 0 # unsigned number
  681. # The number of newlines after a block of variable definitions not at the top of a function body
  682. # 0 = No change (default)
  683. nl_var_def_blk_end = 0 # unsigned number
  684. # The maximum consecutive newlines within a block of variable definitions
  685. # 0 = No change (default)
  686. nl_var_def_blk_in = 0 # unsigned number
  687. # Add or remove newline between a function call's ')' and '{', as in:
  688. # list_for_each(item, &list) { }
  689. nl_fcall_brace = force # ignore/add/remove/force
  690. # Add or remove newline between 'enum' and '{'
  691. nl_enum_brace = force # ignore/add/remove/force
  692. # Add or remove newline between 'enum' and 'class'
  693. nl_enum_class = remove # ignore/add/remove/force
  694. # Add or remove newline between 'enum class' and the identifier
  695. nl_enum_class_identifier = remove # ignore/add/remove/force
  696. # Add or remove newline between 'enum class' type and ':'
  697. nl_enum_identifier_colon = remove # ignore/add/remove/force
  698. # Add or remove newline between 'enum class identifier :' and 'type' and/or 'type'
  699. nl_enum_colon_type = remove # ignore/add/remove/force
  700. # Add or remove newline between 'struct and '{'
  701. nl_struct_brace = force # ignore/add/remove/force
  702. # Add or remove newline between 'union' and '{'
  703. nl_union_brace = force # ignore/add/remove/force
  704. # Add or remove newline between 'if' and '{'
  705. nl_if_brace = force # ignore/add/remove/force
  706. # Add or remove newline between '}' and 'else'
  707. nl_brace_else = force # ignore/add/remove/force
  708. # Add or remove newline between 'else if' and '{'
  709. # If set to ignore, nl_if_brace is used instead
  710. nl_elseif_brace = force # ignore/add/remove/force
  711. # Add or remove newline between 'else' and '{'
  712. nl_else_brace = force # ignore/add/remove/force
  713. # Add or remove newline between 'else' and 'if'
  714. nl_else_if = remove # ignore/add/remove/force
  715. # Add or remove newline before 'if'/'else if' closing parenthesis
  716. nl_before_if_closing_paren = remove # ignore/add/remove/force
  717. # Add or remove newline between '}' and 'finally'
  718. nl_brace_finally = ignore # ignore/add/remove/force
  719. # Add or remove newline between 'finally' and '{'
  720. nl_finally_brace = ignore # ignore/add/remove/force
  721. # Add or remove newline between 'try' and '{'
  722. nl_try_brace = force # ignore/add/remove/force
  723. # Add or remove newline between get/set and '{'
  724. nl_getset_brace = ignore # ignore/add/remove/force
  725. # Add or remove newline between 'for' and '{'
  726. nl_for_brace = force # ignore/add/remove/force
  727. # Add or remove newline between 'catch' and '{'
  728. nl_catch_brace = force # ignore/add/remove/force
  729. # Add or remove newline between '}' and 'catch'
  730. nl_brace_catch = force # ignore/add/remove/force
  731. # Add or remove newline between '}' and ']'
  732. nl_brace_square = ignore # ignore/add/remove/force
  733. # Add or remove newline between '}' and ')' in a function invocation
  734. nl_brace_fparen = remove # ignore/add/remove/force
  735. # Add or remove newline between 'while' and '{'
  736. nl_while_brace = force # ignore/add/remove/force
  737. # Add or remove newline between 'scope (x)' and '{' (D)
  738. nl_scope_brace = ignore # ignore/add/remove/force
  739. # Add or remove newline between 'unittest' and '{' (D)
  740. nl_unittest_brace = ignore # ignore/add/remove/force
  741. # Add or remove newline between 'version (x)' and '{' (D)
  742. nl_version_brace = ignore # ignore/add/remove/force
  743. # Add or remove newline between 'using' and '{'
  744. nl_using_brace = ignore # ignore/add/remove/force
  745. # Add or remove newline between two open or close braces.
  746. # Due to general newline/brace handling, REMOVE may not work.
  747. nl_brace_brace = ignore # ignore/add/remove/force
  748. # Add or remove newline between 'do' and '{'
  749. nl_do_brace = force # ignore/add/remove/force
  750. # Add or remove newline between '}' and 'while' of 'do' statement
  751. nl_brace_while = force # ignore/add/remove/force
  752. # Add or remove newline between 'switch' and '{'
  753. nl_switch_brace = force # ignore/add/remove/force
  754. # Add or remove newline between 'synchronized' and '{'
  755. nl_synchronized_brace = ignore # ignore/add/remove/force
  756. # Add a newline between ')' and '{' if the ')' is on a different line than the if/for/etc.
  757. # Overrides nl_for_brace, nl_if_brace, nl_switch_brace, nl_while_switch and nl_catch_brace.
  758. nl_multi_line_cond = false # false/true
  759. # Force a newline in a define after the macro name for multi-line defines.
  760. nl_multi_line_define = false # false/true
  761. # Whether to put a newline before 'case' statement, not after the first 'case'
  762. nl_before_case = false # false/true
  763. # Add or remove newline between ')' and 'throw'
  764. nl_before_throw = ignore # ignore/add/remove/force
  765. # Whether to put a newline after 'case' statement
  766. nl_after_case = true # false/true
  767. # Add or remove a newline between a case ':' and '{'. Overrides nl_after_case.
  768. nl_case_colon_brace = force # ignore/add/remove/force
  769. # Newline between namespace and {
  770. nl_namespace_brace = force # ignore/add/remove/force
  771. # Add or remove newline between 'template<>' and whatever follows.
  772. nl_template_class = ignore # ignore/add/remove/force
  773. # Add or remove newline between 'class' and '{'
  774. nl_class_brace = force # ignore/add/remove/force
  775. # Add or remove newline before/after each ',' in the base class list,
  776. # (tied to pos_class_comma).
  777. nl_class_init_args = remove # ignore/add/remove/force
  778. # Add or remove newline after each ',' in the constructor member initialization.
  779. # Related to nl_constr_colon, pos_constr_colon and pos_constr_comma.
  780. nl_constr_init_args = remove # ignore/add/remove/force
  781. # Add or remove newline before first element, after comma, and after last element in enum
  782. nl_enum_own_lines = force # ignore/add/remove/force
  783. # Add or remove newline between return type and function name in a function definition
  784. nl_func_type_name = remove # ignore/add/remove/force
  785. # Add or remove newline between return type and function name inside a class {}
  786. # Uses nl_func_type_name or nl_func_proto_type_name if set to ignore.
  787. nl_func_type_name_class = ignore # ignore/add/remove/force
  788. # Add or remove newline between class specification and '::' in 'void A::f() { }'
  789. # Only appears in separate member implementation (does not appear with in-line implmementation)
  790. nl_func_class_scope = remove # ignore/add/remove/force
  791. # Add or remove newline between function scope and name
  792. # Controls the newline after '::' in 'void A::f() { }'
  793. nl_func_scope_name = remove # ignore/add/remove/force
  794. # Add or remove newline between return type and function name in a prototype
  795. nl_func_proto_type_name = remove # ignore/add/remove/force
  796. # Add or remove newline between a function name and the opening '(' in the declaration
  797. nl_func_paren = remove # ignore/add/remove/force
  798. # Overrides nl_func_paren for functions with no parameters
  799. nl_func_paren_empty = ignore # ignore/add/remove/force
  800. # Add or remove newline between a function name and the opening '(' in the definition
  801. nl_func_def_paren = remove # ignore/add/remove/force
  802. # Overrides nl_func_def_paren for functions with no parameters
  803. nl_func_def_paren_empty = ignore # ignore/add/remove/force
  804. # Add or remove newline after '(' in a function declaration
  805. nl_func_decl_start = remove # ignore/add/remove/force
  806. # Add or remove newline after '(' in a function definition
  807. nl_func_def_start = remove # ignore/add/remove/force
  808. # Overrides nl_func_decl_start when there is only one parameter.
  809. nl_func_decl_start_single = ignore # ignore/add/remove/force
  810. # Overrides nl_func_def_start when there is only one parameter.
  811. nl_func_def_start_single = ignore # ignore/add/remove/force
  812. # Whether to add newline after '(' in a function declaration if '(' and ')' are in different lines.
  813. nl_func_decl_start_multi_line = false # false/true
  814. # Whether to add newline after '(' in a function definition if '(' and ')' are in different lines.
  815. nl_func_def_start_multi_line = false # false/true
  816. # Add or remove newline after each ',' in a function declaration
  817. nl_func_decl_args = remove # ignore/add/remove/force
  818. # Add or remove newline after each ',' in a function definition
  819. nl_func_def_args = remove # ignore/add/remove/force
  820. # Whether to add newline after each ',' in a function declaration if '(' and ')' are in different lines.
  821. nl_func_decl_args_multi_line = false # false/true
  822. # Whether to add newline after each ',' in a function definition if '(' and ')' are in different lines.
  823. nl_func_def_args_multi_line = false # false/true
  824. # Add or remove newline before the ')' in a function declaration
  825. nl_func_decl_end = remove # ignore/add/remove/force
  826. # Add or remove newline before the ')' in a function definition
  827. nl_func_def_end = remove # ignore/add/remove/force
  828. # Overrides nl_func_decl_end when there is only one parameter.
  829. nl_func_decl_end_single = ignore # ignore/add/remove/force
  830. # Overrides nl_func_def_end when there is only one parameter.
  831. nl_func_def_end_single = ignore # ignore/add/remove/force
  832. # Whether to add newline before ')' in a function declaration if '(' and ')' are in different lines.
  833. nl_func_decl_end_multi_line = false # false/true
  834. # Whether to add newline before ')' in a function definition if '(' and ')' are in different lines.
  835. nl_func_def_end_multi_line = false # false/true
  836. # Add or remove newline between '()' in a function declaration.
  837. nl_func_decl_empty = remove # ignore/add/remove/force
  838. # Add or remove newline between '()' in a function definition.
  839. nl_func_def_empty = remove # ignore/add/remove/force
  840. # Whether to add newline after '(' in a function call if '(' and ')' are in different lines.
  841. nl_func_call_start_multi_line = false # false/true
  842. # Whether to add newline after each ',' in a function call if '(' and ')' are in different lines.
  843. nl_func_call_args_multi_line = false # false/true
  844. # Whether to add newline before ')' in a function call if '(' and ')' are in different lines.
  845. nl_func_call_end_multi_line = false # false/true
  846. # Whether to put each OC message parameter on a separate line
  847. # See nl_oc_msg_leave_one_liner
  848. nl_oc_msg_args = false # false/true
  849. # Add or remove newline between function signature and '{'
  850. nl_fdef_brace = force # ignore/add/remove/force
  851. # Add or remove newline between C++11 lambda signature and '{'
  852. nl_cpp_ldef_brace = force # ignore/add/remove/force
  853. # Add or remove a newline between the return keyword and return expression.
  854. nl_return_expr = ignore # ignore/add/remove/force
  855. # Whether to put a newline after semicolons, except in 'for' statements
  856. nl_after_semicolon = true # false/true
  857. # Java: Control the newline between the ')' and '{{' of the double brace initializer.
  858. nl_paren_dbrace_open = ignore # ignore/add/remove/force
  859. # Whether to put a newline after the type in an unnamed temporary direct-list-initialization
  860. nl_type_brace_init_lst = ignore # ignore/add/remove/force
  861. # Whether to put a newline after open brace in an unnamed temporary direct-list-initialization
  862. nl_type_brace_init_lst_open = ignore # ignore/add/remove/force
  863. # Whether to put a newline before close brace in an unnamed temporary direct-list-initialization
  864. nl_type_brace_init_lst_close = ignore # ignore/add/remove/force
  865. # Whether to put a newline after brace open.
  866. # This also adds a newline before the matching brace close.
  867. nl_after_brace_open = true # false/true
  868. # If nl_after_brace_open and nl_after_brace_open_cmt are True, a newline is
  869. # placed between the open brace and a trailing single-line comment.
  870. nl_after_brace_open_cmt = false # false/true
  871. # Whether to put a newline after a virtual brace open with a non-empty body.
  872. # These occur in un-braced if/while/do/for statement bodies.
  873. nl_after_vbrace_open = false # false/true
  874. # Whether to put a newline after a virtual brace open with an empty body.
  875. # These occur in un-braced if/while/do/for statement bodies.
  876. nl_after_vbrace_open_empty = false # false/true
  877. # Whether to put a newline after a brace close.
  878. # Does not apply if followed by a necessary ';'.
  879. nl_after_brace_close = false # false/true
  880. # Whether to put a newline after a virtual brace close.
  881. # Would add a newline before return in: 'if (foo) a++; return;'
  882. nl_after_vbrace_close = false # false/true
  883. # Control the newline between the close brace and 'b' in: 'struct { int a; } b;'
  884. # Affects enums, unions and structures. If set to ignore, uses nl_after_brace_close
  885. nl_brace_struct_var = remove # ignore/add/remove/force
  886. # Whether to alter newlines in '#define' macros
  887. nl_define_macro = false # false/true
  888. # Whether to remove blanks after '#ifxx' and '#elxx', or before '#elxx' and '#endif'. Does not affect top-level #ifdefs.
  889. nl_squeeze_ifdef = false # false/true
  890. # Makes the nl_squeeze_ifdef option affect the top-level #ifdefs as well.
  891. nl_squeeze_ifdef_top_level = false # false/true
  892. # Add or remove blank line before 'if'
  893. nl_before_if = ignore # ignore/add/remove/force
  894. # Add or remove blank line after 'if' statement.
  895. # Add/Force work only if the next token is not a closing brace
  896. nl_after_if = ignore # ignore/add/remove/force
  897. # Add or remove blank line before 'for'
  898. nl_before_for = ignore # ignore/add/remove/force
  899. # Add or remove blank line after 'for' statement
  900. nl_after_for = ignore # ignore/add/remove/force
  901. # Add or remove blank line before 'while'
  902. nl_before_while = ignore # ignore/add/remove/force
  903. # Add or remove blank line after 'while' statement
  904. nl_after_while = ignore # ignore/add/remove/force
  905. # Add or remove blank line before 'switch'
  906. nl_before_switch = ignore # ignore/add/remove/force
  907. # Add or remove blank line after 'switch' statement
  908. nl_after_switch = ignore # ignore/add/remove/force
  909. # Add or remove blank line before 'synchronized'
  910. nl_before_synchronized = ignore # ignore/add/remove/force
  911. # Add or remove blank line after 'synchronized' statement
  912. nl_after_synchronized = ignore # ignore/add/remove/force
  913. # Add or remove blank line before 'do'
  914. nl_before_do = remove # ignore/add/remove/force
  915. # Add or remove blank line after 'do/while' statement
  916. nl_after_do = ignore # ignore/add/remove/force
  917. # Whether to double-space commented-entries in struct/union/enum
  918. nl_ds_struct_enum_cmt = false # false/true
  919. # force nl before } of a struct/union/enum
  920. # (lower priority than 'eat_blanks_before_close_brace')
  921. nl_ds_struct_enum_close_brace = false # false/true
  922. # Add or remove blank line before 'func_class_def'
  923. nl_before_func_class_def = 0 # unsigned number
  924. # Add or remove blank line before 'func_class_proto'
  925. nl_before_func_class_proto = 0 # unsigned number
  926. # Add or remove a newline before/after a class colon,
  927. # (tied to pos_class_colon).
  928. nl_class_colon = remove # ignore/add/remove/force
  929. # Add or remove a newline around a class constructor colon.
  930. # Related to nl_constr_init_args, pos_constr_colon and pos_constr_comma.
  931. nl_constr_colon = force # ignore/add/remove/force
  932. # Change simple unbraced if statements into a one-liner
  933. # 'if(b)\n i++;' => 'if(b) i++;'
  934. nl_create_if_one_liner = false # false/true
  935. # Change simple unbraced for statements into a one-liner
  936. # 'for (i=0;i<5;i++)\n foo(i);' => 'for (i=0;i<5;i++) foo(i);'
  937. nl_create_for_one_liner = false # false/true
  938. # Change simple unbraced while statements into a one-liner
  939. # 'while (i<5)\n foo(i++);' => 'while (i<5) foo(i++);'
  940. nl_create_while_one_liner = false # false/true
  941. # Change a one-liner if statement into simple unbraced if
  942. # 'if(b) i++;' => 'if(b)\n i++;'
  943. nl_split_if_one_liner = true # false/true
  944. # Change a one-liner for statement into simple unbraced for
  945. # 'for (i=0;<5;i++) foo(i);' => 'for (i=0;<5;i++)\n foo(i);'
  946. nl_split_for_one_liner = true # false/true
  947. # Change a one-liner while statement into simple unbraced while
  948. # 'while (i<5) foo(i++);' => 'while (i<5)\n foo(i++);'
  949. nl_split_while_one_liner = true # false/true
  950. #
  951. # Blank line options
  952. #
  953. # The maximum consecutive newlines (3 = 2 blank lines)
  954. nl_max = 0 # unsigned number
  955. # The maximum consecutive newlines in function
  956. nl_max_blank_in_func = 0 # unsigned number
  957. # The number of newlines after a function prototype, if followed by another function prototype
  958. nl_after_func_proto = 0 # unsigned number
  959. # The number of newlines after a function prototype, if not followed by another function prototype
  960. nl_after_func_proto_group = 0 # unsigned number
  961. # The number of newlines after a function class prototype, if followed by another function class prototype
  962. nl_after_func_class_proto = 0 # unsigned number
  963. # The number of newlines after a function class prototype, if not followed by another function class prototype
  964. nl_after_func_class_proto_group = 0 # unsigned number
  965. # The number of newlines before a multi-line function def body
  966. nl_before_func_body_def = 0 # unsigned number
  967. # The number of newlines before a multi-line function prototype body
  968. nl_before_func_body_proto = 0 # unsigned number
  969. # The number of newlines after '}' of a multi-line function body
  970. nl_after_func_body = 0 # unsigned number
  971. # The number of newlines after '}' of a multi-line function body in a class declaration
  972. nl_after_func_body_class = 0 # unsigned number
  973. # The number of newlines after '}' of a single line function body
  974. nl_after_func_body_one_liner = 0 # unsigned number
  975. # The minimum number of newlines before a multi-line comment.
  976. # Doesn't apply if after a brace open or another multi-line comment.
  977. nl_before_block_comment = 0 # unsigned number
  978. # The minimum number of newlines before a single-line C comment.
  979. # Doesn't apply if after a brace open or other single-line C comments.
  980. nl_before_c_comment = 0 # unsigned number
  981. # The minimum number of newlines before a CPP comment.
  982. # Doesn't apply if after a brace open or other CPP comments.
  983. nl_before_cpp_comment = 0 # unsigned number
  984. # Whether to force a newline after a multi-line comment.
  985. nl_after_multiline_comment = false # false/true
  986. # Whether to force a newline after a label's colon.
  987. nl_after_label_colon = false # false/true
  988. # The number of newlines after '}' or ';' of a struct/enum/union definition
  989. nl_after_struct = 0 # unsigned number
  990. # The number of newlines before a class definition
  991. nl_before_class = 2 # unsigned number
  992. # The number of newlines after '}' or ';' of a class definition
  993. nl_after_class = 2 # unsigned number
  994. # The number of newlines before a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
  995. # Will not change the newline count if after a brace open.
  996. # 0 = No change.
  997. nl_before_access_spec = 2 # unsigned number
  998. # The number of newlines after a 'private:', 'public:', 'protected:', 'signals:' or 'slots:' label.
  999. # 0 = No change.
  1000. # the option 'nl_after_access_spec' takes preference over 'nl_typedef_blk_start' and 'nl_var_def_blk_start'
  1001. nl_after_access_spec = 0 # unsigned number
  1002. # The number of newlines between a function def and the function comment.
  1003. # 0 = No change.
  1004. nl_comment_func_def = 0 # unsigned number
  1005. # The number of newlines after a try-catch-finally block that isn't followed by a brace close.
  1006. # 0 = No change.
  1007. nl_after_try_catch_finally = 0 # unsigned number
  1008. # The number of newlines before and after a property, indexer or event decl.
  1009. # 0 = No change.
  1010. nl_around_cs_property = 0 # unsigned number
  1011. # The number of newlines between the get/set/add/remove handlers in C#.
  1012. # 0 = No change.
  1013. nl_between_get_set = 0 # unsigned number
  1014. # Add or remove newline between C# property and the '{'
  1015. nl_property_brace = ignore # ignore/add/remove/force
  1016. # Whether to remove blank lines after '{'
  1017. eat_blanks_after_open_brace = false # false/true
  1018. # Whether to remove blank lines before '}'
  1019. eat_blanks_before_close_brace = false # false/true
  1020. # How aggressively to remove extra newlines not in preproc.
  1021. # 0: No change
  1022. # 1: Remove most newlines not handled by other config
  1023. # 2: Remove all newlines and reformat completely by config
  1024. nl_remove_extra_newlines = 0 # unsigned number
  1025. # Whether to put a blank line before 'return' statements, unless after an open brace.
  1026. nl_before_return = false # false/true
  1027. # Whether to put a blank line after 'return' statements, unless followed by a close brace.
  1028. nl_after_return = false # false/true
  1029. # Whether to put a newline after a Java annotation statement.
  1030. # Only affects annotations that are after a newline.
  1031. nl_after_annotation = ignore # ignore/add/remove/force
  1032. # Controls the newline between two annotations.
  1033. nl_between_annotation = ignore # ignore/add/remove/force
  1034. #
  1035. # Positioning options
  1036. #
  1037. # The position of arithmetic operators in wrapped expressions
  1038. pos_arith = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
  1039. # The position of assignment in wrapped expressions.
  1040. # Do not affect '=' followed by '{'
  1041. pos_assign = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
  1042. # The position of boolean operators in wrapped expressions
  1043. pos_bool = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
  1044. # The position of comparison operators in wrapped expressions
  1045. pos_compare = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
  1046. # The position of conditional (b ? t : f) operators in wrapped expressions
  1047. pos_conditional = join # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
  1048. # The position of the comma in wrapped expressions
  1049. pos_comma = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
  1050. # The position of the comma in enum entries
  1051. pos_enum_comma = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
  1052. # The position of the comma in the base class list if there are more than one line,
  1053. # (tied to nl_class_init_args).
  1054. pos_class_comma = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
  1055. # The position of the comma in the constructor initialization list.
  1056. # Related to nl_constr_colon, nl_constr_init_args and pos_constr_colon.
  1057. pos_constr_comma = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
  1058. # The position of trailing/leading class colon, between class and base class list
  1059. # (tied to nl_class_colon).
  1060. pos_class_colon = trail_force # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
  1061. # The position of colons between constructor and member initialization,
  1062. # (tied to nl_constr_colon).
  1063. # Related to nl_constr_colon, nl_constr_init_args and pos_constr_comma.
  1064. pos_constr_colon = lead_break # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
  1065. #
  1066. # Line Splitting options
  1067. #
  1068. # Try to limit code width to N number of columns
  1069. code_width = 0 # unsigned number
  1070. # Whether to fully split long 'for' statements at semi-colons
  1071. ls_for_split_full = false # false/true
  1072. # Whether to fully split long function protos/calls at commas
  1073. ls_func_split_full = false # false/true
  1074. # Whether to split lines as close to code_width as possible and ignore some groupings
  1075. ls_code_width = false # false/true
  1076. #
  1077. # Code alignment (not left column spaces/tabs)
  1078. #
  1079. # Whether to keep non-indenting tabs
  1080. align_keep_tabs = false # false/true
  1081. # Whether to use tabs for aligning
  1082. align_with_tabs = false # false/true
  1083. # Whether to bump out to the next tab when aligning
  1084. align_on_tabstop = false # false/true
  1085. # Whether to left-align numbers
  1086. align_number_left = false # false/true
  1087. # Whether to keep whitespace not required for alignment.
  1088. align_keep_extra_space = false # false/true
  1089. # Align variable definitions in prototypes and functions
  1090. align_func_params = false # false/true
  1091. # Align parameters in single-line functions that have the same name.
  1092. # The function names must already be aligned with each other.
  1093. align_same_func_call_params = false # false/true
  1094. # The span for aligning variable definitions (0=don't align)
  1095. align_var_def_span = 0 # unsigned number
  1096. # How to align the star in variable definitions.
  1097. # 0=Part of the type 'void * foo;'
  1098. # 1=Part of the variable 'void *foo;'
  1099. # 2=Dangling 'void *foo;'
  1100. align_var_def_star_style = 0 # unsigned number
  1101. # How to align the '&' in variable definitions.
  1102. # 0=Part of the type
  1103. # 1=Part of the variable
  1104. # 2=Dangling
  1105. align_var_def_amp_style = 0 # unsigned number
  1106. # The threshold for aligning variable definitions (0=no limit)
  1107. align_var_def_thresh = 0 # unsigned number
  1108. # The gap for aligning variable definitions
  1109. align_var_def_gap = 0 # unsigned number
  1110. # Whether to align the colon in struct bit fields
  1111. align_var_def_colon = false # false/true
  1112. # align variable defs gap for bit colons
  1113. align_var_def_colon_gap = 0 # unsigned number
  1114. # Whether to align any attribute after the variable name
  1115. align_var_def_attribute = false # false/true
  1116. # Whether to align inline struct/enum/union variable definitions
  1117. align_var_def_inline = false # false/true
  1118. # The span for aligning on '=' in assignments (0=don't align)
  1119. align_assign_span = 0 # unsigned number
  1120. # The threshold for aligning on '=' in assignments (0=no limit)
  1121. align_assign_thresh = 0 # unsigned number
  1122. # The span for aligning on '=' in enums (0=don't align)
  1123. align_enum_equ_span = 0 # unsigned number
  1124. # The threshold for aligning on '=' in enums (0=no limit)
  1125. align_enum_equ_thresh = 0 # unsigned number
  1126. # The span for aligning class (0=don't align)
  1127. align_var_class_span = 0 # unsigned number
  1128. # The threshold for aligning class member definitions (0=no limit)
  1129. align_var_class_thresh = 0 # unsigned number
  1130. # The gap for aligning class member definitions
  1131. align_var_class_gap = 0 # unsigned number
  1132. # The span for aligning struct/union (0=don't align)
  1133. align_var_struct_span = 0 # unsigned number
  1134. # The threshold for aligning struct/union member definitions (0=no limit)
  1135. align_var_struct_thresh = 0 # unsigned number
  1136. # The gap for aligning struct/union member definitions
  1137. align_var_struct_gap = 0 # unsigned number
  1138. # The span for aligning struct initializer values (0=don't align)
  1139. align_struct_init_span = 0 # unsigned number
  1140. # The minimum space between the type and the synonym of a typedef
  1141. align_typedef_gap = 0 # unsigned number
  1142. # The span for aligning single-line typedefs (0=don't align)
  1143. align_typedef_span = 0 # unsigned number
  1144. # How to align typedef'd functions with other typedefs
  1145. # 0: Don't mix them at all
  1146. # 1: align the open paren with the types
  1147. # 2: align the function type name with the other type names
  1148. align_typedef_func = 0 # unsigned number
  1149. # Controls the positioning of the '*' in typedefs. Just try it.
  1150. # 0: Align on typedef type, ignore '*'
  1151. # 1: The '*' is part of type name: typedef int *pint;
  1152. # 2: The '*' is part of the type, but dangling: typedef int *pint;
  1153. align_typedef_star_style = 0 # unsigned number
  1154. # Controls the positioning of the '&' in typedefs. Just try it.
  1155. # 0: Align on typedef type, ignore '&'
  1156. # 1: The '&' is part of type name: typedef int &pint;
  1157. # 2: The '&' is part of the type, but dangling: typedef int &pint;
  1158. align_typedef_amp_style = 0 # unsigned number
  1159. # The span for aligning comments that end lines (0=don't align)
  1160. align_right_cmt_span = 0 # unsigned number
  1161. # If aligning comments, mix with comments after '}' and #endif with less than 3 spaces before the comment
  1162. align_right_cmt_mix = false # false/true
  1163. # If a trailing comment is more than this number of columns away from the text it follows,
  1164. # it will qualify for being aligned. This has to be > 0 to do anything.
  1165. align_right_cmt_gap = 0 # unsigned number
  1166. # Align trailing comment at or beyond column N; 'pulls in' comments as a bonus side effect (0=ignore)
  1167. align_right_cmt_at_col = 0 # unsigned number
  1168. # The span for aligning function prototypes (0=don't align)
  1169. align_func_proto_span = 0 # unsigned number
  1170. # Minimum gap between the return type and the function name.
  1171. align_func_proto_gap = 0 # unsigned number
  1172. # Align function protos on the 'operator' keyword instead of what follows
  1173. align_on_operator = false # false/true
  1174. # Whether to mix aligning prototype and variable declarations.
  1175. # If True, align_var_def_XXX options are used instead of align_func_proto_XXX options.
  1176. align_mix_var_proto = false # false/true
  1177. # Align single-line functions with function prototypes, uses align_func_proto_span
  1178. align_single_line_func = false # false/true
  1179. # Aligning the open brace of single-line functions.
  1180. # Requires align_single_line_func=True, uses align_func_proto_span
  1181. align_single_line_brace = false # false/true
  1182. # Gap for align_single_line_brace.
  1183. align_single_line_brace_gap = 0 # unsigned number
  1184. # The span for aligning ObjC msg spec (0=don't align)
  1185. align_oc_msg_spec_span = 0 # unsigned number
  1186. # Whether to align macros wrapped with a backslash and a newline.
  1187. # This will not work right if the macro contains a multi-line comment.
  1188. align_nl_cont = false # false/true
  1189. # # Align macro functions and variables together
  1190. align_pp_define_together = false # false/true
  1191. # The minimum space between label and value of a preprocessor define
  1192. align_pp_define_gap = 0 # unsigned number
  1193. # The span for aligning on '#define' bodies (0=don't align, other=number of lines including comments between blocks)
  1194. align_pp_define_span = 0 # unsigned number
  1195. # Align lines that start with '<<' with previous '<<'. Default=True
  1196. align_left_shift = false # false/true
  1197. # Align text after asm volatile () colons.
  1198. align_asm_colon = false # false/true
  1199. # Span for aligning parameters in an Obj-C message call on the ':' (0=don't align)
  1200. align_oc_msg_colon_span = 0 # unsigned number
  1201. # If True, always align with the first parameter, even if it is too short.
  1202. align_oc_msg_colon_first = false # false/true
  1203. # Aligning parameters in an Obj-C '+' or '-' declaration on the ':'
  1204. align_oc_decl_colon = false # false/true
  1205. #
  1206. # Comment modifications
  1207. #
  1208. # Try to wrap comments at cmt_width columns
  1209. cmt_width = 0 # unsigned number
  1210. # Set the comment reflow mode (Default=0)
  1211. # 0: no reflowing (apart from the line wrapping due to cmt_width)
  1212. # 1: no touching at all
  1213. # 2: full reflow
  1214. cmt_reflow_mode = 1 # unsigned number
  1215. # Whether to convert all tabs to spaces in comments. Default is to leave tabs inside comments alone, unless used for indenting.
  1216. cmt_convert_tab_to_spaces = false # false/true
  1217. # If False, disable all multi-line comment changes, including cmt_width. keyword substitution and leading chars.
  1218. # Default=True
  1219. cmt_indent_multi = false # false/true
  1220. # Whether to group c-comments that look like they are in a block
  1221. cmt_c_group = false # false/true
  1222. # Whether to put an empty '/*' on the first line of the combined c-comment
  1223. cmt_c_nl_start = false # false/true
  1224. # Whether to put a newline before the closing '*/' of the combined c-comment
  1225. cmt_c_nl_end = false # false/true
  1226. # Whether to group cpp-comments that look like they are in a block
  1227. cmt_cpp_group = false # false/true
  1228. # Whether to put an empty '/*' on the first line of the combined cpp-comment
  1229. cmt_cpp_nl_start = false # false/true
  1230. # Whether to put a newline before the closing '*/' of the combined cpp-comment
  1231. cmt_cpp_nl_end = false # false/true
  1232. # Whether to change cpp-comments into c-comments
  1233. cmt_cpp_to_c = false # false/true
  1234. # Whether to put a star on subsequent comment lines
  1235. cmt_star_cont = false # false/true
  1236. # The number of spaces to insert at the start of subsequent comment lines
  1237. cmt_sp_before_star_cont = 0 # unsigned number
  1238. # The number of spaces to insert after the star on subsequent comment lines
  1239. cmt_sp_after_star_cont = 0 # number
  1240. # For multi-line comments with a '*' lead, remove leading spaces if the first and last lines of
  1241. # the comment are the same length. Default=True
  1242. cmt_multi_check_last = true # false/true
  1243. # For multi-line comments with a '*' lead, remove leading spaces if the first and last lines of
  1244. # the comment are the same length AND if the length is bigger as the first_len minimum. Default=4
  1245. cmt_multi_first_len_minimum = 4 # unsigned number
  1246. # The filename that contains text to insert at the head of a file if the file doesn't start with a C/C++ comment.
  1247. # Will substitute $(filename) with the current file's name.
  1248. cmt_insert_file_header = "" # string
  1249. # The filename that contains text to insert at the end of a file if the file doesn't end with a C/C++ comment.
  1250. # Will substitute $(filename) with the current file's name.
  1251. cmt_insert_file_footer = "" # string
  1252. # The filename that contains text to insert before a function implementation if the function isn't preceded with a C/C++ comment.
  1253. # Will substitute $(function) with the function name and $(javaparam) with the javadoc @param and @return stuff.
  1254. # Will also substitute $(fclass) with the class name: void CFoo::Bar() { ... }
  1255. cmt_insert_func_header = "" # string
  1256. # The filename that contains text to insert before a class if the class isn't preceded with a C/C++ comment.
  1257. # Will substitute $(class) with the class name.
  1258. cmt_insert_class_header = "" # string
  1259. # The filename that contains text to insert before a Obj-C message specification if the method isn't preceded with a C/C++ comment.
  1260. # Will substitute $(message) with the function name and $(javaparam) with the javadoc @param and @return stuff.
  1261. cmt_insert_oc_msg_header = "" # string
  1262. # If a preprocessor is encountered when stepping backwards from a function name, then
  1263. # this option decides whether the comment should be inserted.
  1264. # Affects cmt_insert_oc_msg_header, cmt_insert_func_header and cmt_insert_class_header.
  1265. cmt_insert_before_preproc = false # false/true
  1266. # If a function is declared inline to a class definition, then
  1267. # this option decides whether the comment should be inserted.
  1268. # Affects cmt_insert_func_header.
  1269. cmt_insert_before_inlines = true # false/true
  1270. # If the function is a constructor/destructor, then
  1271. # this option decides whether the comment should be inserted.
  1272. # Affects cmt_insert_func_header.
  1273. cmt_insert_before_ctor_dtor = false # false/true
  1274. #
  1275. # Code modifying options (non-whitespace)
  1276. #
  1277. # Add or remove braces on single-line 'do' statement
  1278. mod_full_brace_do = ignore # ignore/add/remove/force
  1279. # Add or remove braces on single-line 'for' statement
  1280. mod_full_brace_for = ignore # ignore/add/remove/force
  1281. # Add or remove braces on single-line function definitions. (Pawn)
  1282. mod_full_brace_function = ignore # ignore/add/remove/force
  1283. # Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'.
  1284. mod_full_brace_if = ignore # ignore/add/remove/force
  1285. # Make all if/elseif/else statements in a chain be braced or not. Overrides mod_full_brace_if.
  1286. # If any must be braced, they are all braced. If all can be unbraced, then the braces are removed.
  1287. mod_full_brace_if_chain = false # false/true
  1288. # Make all if/elseif/else statements with at least one 'else' or 'else if' fully braced.
  1289. # If mod_full_brace_if_chain is used together with this option, all if-else chains will get braces,
  1290. # and simple 'if' statements will lose them (if possible).
  1291. mod_full_brace_if_chain_only = false # false/true
  1292. # Don't remove braces around statements that span N newlines
  1293. mod_full_brace_nl = 0 # unsigned number
  1294. # Blocks removal of braces if the parenthesis of if/for/while/.. span multiple lines.
  1295. mod_full_brace_nl_block_rem_mlcond = false # false/true
  1296. # Add or remove braces on single-line 'while' statement
  1297. mod_full_brace_while = ignore # ignore/add/remove/force
  1298. # Add or remove braces on single-line 'using ()' statement
  1299. mod_full_brace_using = ignore # ignore/add/remove/force
  1300. # Add or remove unnecessary paren on 'return' statement
  1301. mod_paren_on_return = ignore # ignore/add/remove/force
  1302. # Whether to change optional semicolons to real semicolons
  1303. mod_pawn_semicolon = false # false/true
  1304. # Add parens on 'while' and 'if' statement around bools
  1305. mod_full_paren_if_bool = false # false/true
  1306. # Whether to remove superfluous semicolons
  1307. mod_remove_extra_semicolon = false # false/true
  1308. # If a function body exceeds the specified number of newlines and doesn't have a comment after
  1309. # the close brace, a comment will be added.
  1310. mod_add_long_function_closebrace_comment = 0 # unsigned number
  1311. # If a namespace body exceeds the specified number of newlines and doesn't have a comment after
  1312. # the close brace, a comment will be added.
  1313. mod_add_long_namespace_closebrace_comment = 0 # unsigned number
  1314. # If a class body exceeds the specified number of newlines and doesn't have a comment after
  1315. # the close brace, a comment will be added.
  1316. mod_add_long_class_closebrace_comment = 0 # unsigned number
  1317. # If a switch body exceeds the specified number of newlines and doesn't have a comment after
  1318. # the close brace, a comment will be added.
  1319. mod_add_long_switch_closebrace_comment = 0 # unsigned number
  1320. # If an #ifdef body exceeds the specified number of newlines and doesn't have a comment after
  1321. # the #endif, a comment will be added.
  1322. mod_add_long_ifdef_endif_comment = 0 # unsigned number
  1323. # If an #ifdef or #else body exceeds the specified number of newlines and doesn't have a comment after
  1324. # the #else, a comment will be added.
  1325. mod_add_long_ifdef_else_comment = 0 # unsigned number
  1326. # If True, will sort consecutive single-line 'import' statements [Java, D]
  1327. mod_sort_import = false # false/true
  1328. # If True, will sort consecutive single-line 'using' statements [C#]
  1329. mod_sort_using = false # false/true
  1330. # If True, will sort consecutive single-line '#include' statements [C/C++] and '#import' statements [Obj-C]
  1331. # This is generally a bad idea, as it may break your code.
  1332. mod_sort_include = false # false/true
  1333. # If True, it will move a 'break' that appears after a fully braced 'case' before the close brace.
  1334. mod_move_case_break = false # false/true
  1335. # Will add or remove the braces around a fully braced case statement.
  1336. # Will only remove the braces if there are no variable declarations in the block.
  1337. mod_case_brace = ignore # ignore/add/remove/force
  1338. # If True, it will remove a void 'return;' that appears as the last statement in a function.
  1339. mod_remove_empty_return = false # false/true
  1340. # If True, it will organize the properties (Obj-C)
  1341. mod_sort_oc_properties = false # false/true
  1342. # Determines weight of class property modifier (Obj-C)
  1343. mod_sort_oc_property_class_weight = 0 # number
  1344. # Determines weight of atomic, nonatomic (Obj-C)
  1345. mod_sort_oc_property_thread_safe_weight = 0 # number
  1346. # Determines weight of readwrite (Obj-C)
  1347. mod_sort_oc_property_readwrite_weight = 0 # number
  1348. # Determines weight of reference type (retain, copy, assign, weak, strong) (Obj-C)
  1349. mod_sort_oc_property_reference_weight = 0 # number
  1350. # Determines weight of getter type (getter=) (Obj-C)
  1351. mod_sort_oc_property_getter_weight = 0 # number
  1352. # Determines weight of setter type (setter=) (Obj-C)
  1353. mod_sort_oc_property_setter_weight = 0 # number
  1354. # Determines weight of nullability type (nullable, nonnull, null_unspecified, null_resettable) (Obj-C)
  1355. mod_sort_oc_property_nullability_weight = 0 # number
  1356. #
  1357. # Preprocessor options
  1358. #
  1359. # Control indent of preprocessors inside #if blocks at brace level 0 (file-level)
  1360. pp_indent = ignore # ignore/add/remove/force
  1361. # Whether to indent #if/#else/#endif at the brace level (True) or from column 1 (False)
  1362. pp_indent_at_level = false # false/true
  1363. # Specifies the number of columns to indent preprocessors per level at brace level 0 (file-level).
  1364. # If pp_indent_at_level=False, specifies the number of columns to indent preprocessors per level at brace level > 0 (function-level).
  1365. # Default=1
  1366. pp_indent_count = 1 # unsigned number
  1367. # Add or remove space after # based on pp_level of #if blocks
  1368. pp_space = ignore # ignore/add/remove/force
  1369. # Sets the number of spaces added with pp_space
  1370. pp_space_count = 0 # unsigned number
  1371. # The indent for #region and #endregion in C# and '#pragma region' in C/C++
  1372. pp_indent_region = 0 # number
  1373. # Whether to indent the code between #region and #endregion
  1374. pp_region_indent_code = false # false/true
  1375. # If pp_indent_at_level=True, sets the indent for #if, #else and #endif when not at file-level.
  1376. # 0: indent preprocessors using output_tab_size.
  1377. # >0: column at which all preprocessors will be indented.
  1378. pp_indent_if = 0 # number
  1379. # Control whether to indent the code between #if, #else and #endif.
  1380. pp_if_indent_code = false # false/true
  1381. # Whether to indent '#define' at the brace level (True) or from column 1 (false)
  1382. pp_define_at_level = false # false/true
  1383. # Whether to ignore the '#define' body while formatting.
  1384. pp_ignore_define_body = false # false/true
  1385. # Whether to indent case statements between #if, #else, and #endif.
  1386. # Only applies to the indent of the preprocesser that the case statements directly inside of
  1387. pp_indent_case = false # false/true
  1388. # Whether to indent whole function definitions between #if, #else, and #endif.
  1389. # Only applies to the indent of the preprocesser that the function definition is directly inside of
  1390. pp_indent_func_def = false # false/true
  1391. # Whether to indent extern C blocks between #if, #else, and #endif.
  1392. # Only applies to the indent of the preprocesser that the extern block is directly inside of
  1393. pp_indent_extern = false # false/true
  1394. # Whether to indent braces directly inside #if, #else, and #endif.
  1395. # Only applies to the indent of the preprocesser that the braces are directly inside of
  1396. pp_indent_brace = false # false/true
  1397. #
  1398. # Sort includes options
  1399. #
  1400. # The regex for include category with priority 0.
  1401. include_category_0 = "" # string
  1402. # The regex for include category with priority 1.
  1403. include_category_1 = "" # string
  1404. # The regex for include category with priority 2.
  1405. include_category_2 = "" # string
  1406. #
  1407. # Use or Do not Use options
  1408. #
  1409. # True: indent_func_call_param will be used (default)
  1410. # False: indent_func_call_param will NOT be used
  1411. use_indent_func_call_param = true # false/true
  1412. # The value of the indentation for a continuation line is calculate differently if the line is:
  1413. # a declaration :your case with QString fileName ...
  1414. # an assignment :your case with pSettings = new QSettings( ...
  1415. # At the second case the option value might be used twice:
  1416. # at the assignment
  1417. # at the function call (if present)
  1418. # To prevent the double use of the option value, use this option with the value 'True'.
  1419. # True: indent_continue will be used only once
  1420. # False: indent_continue will be used every time (default)
  1421. use_indent_continue_only_once = true # false/true
  1422. # SIGNAL/SLOT Qt macros have special formatting options. See options_for_QT.cpp for details.
  1423. # Default=True
  1424. use_options_overriding_for_qt_macros = true # false/true
  1425. #
  1426. # Warn levels - 1: error, 2: warning (default), 3: note
  1427. #
  1428. # Warning is given if doing tab-to-\t replacement and we have found one in a C# verbatim string literal.
  1429. warn_level_tabs_found_in_verbatim_string_literals = 2 # unsigned number
  1430. # Meaning of the settings:
  1431. # Ignore - do not do any changes
  1432. # Add - makes sure there is 1 or more space/brace/newline/etc
  1433. # Force - makes sure there is exactly 1 space/brace/newline/etc,
  1434. # behaves like Add in some contexts
  1435. # Remove - removes space/brace/newline/etc
  1436. #
  1437. #
  1438. # - Token(s) can be treated as specific type(s) with the 'set' option:
  1439. # `set tokenType tokenString [tokenString...]`
  1440. #
  1441. # Example:
  1442. # `set BOOL __AND__ __OR__`
  1443. #
  1444. # tokenTypes are defined in src/token_enum.h, use them without the
  1445. # 'CT_' prefix: 'CT_BOOL' -> 'BOOL'
  1446. #
  1447. #
  1448. # - Token(s) can be treated as type(s) with the 'type' option.
  1449. # `type tokenString [tokenString...]`
  1450. #
  1451. # Example:
  1452. # `type int c_uint_8 Rectangle`
  1453. #
  1454. # This can also be achieved with `set TYPE int c_uint_8 Rectangle`
  1455. #
  1456. #
  1457. # To embed whitespace in tokenStrings use the '\' escape character, or quote
  1458. # the tokenStrings. These quotes are supported: "'`
  1459. #
  1460. #
  1461. # - Support for the auto detection of languages through the file ending can be
  1462. # added using the 'file_ext' command.
  1463. # `file_ext langType langString [langString..]`
  1464. #
  1465. # Example:
  1466. # `file_ext CPP .ch .cxx .cpp.in`
  1467. #
  1468. # langTypes are defined in uncrusify_types.h in the lang_flag_e enum, use
  1469. # them without the 'LANG_' prefix: 'LANG_CPP' -> 'CPP'
  1470. #
  1471. #
  1472. # - Custom macro-based indentation can be set up using 'macro-open',
  1473. # 'macro-else' and 'macro-close'.
  1474. # `(macro-open | macro-else | macro-close) tokenString`
  1475. #
  1476. # Example:
  1477. # `macro-open BEGIN_TEMPLATE_MESSAGE_MAP`
  1478. # `macro-open BEGIN_MESSAGE_MAP`
  1479. # `macro-close END_MESSAGE_MAP`
  1480. #
  1481. ## option(s) with 'not default' value: 149
  1482. #