uncrustify.cfg 83 KB

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