uncrustify.cfg 147 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643
  1. #
  2. # Uncrustify Configuration File
  3. # Created with Uncrustify 0.77.1_f
  4. #
  5. #
  6. # General options
  7. #
  8. # The type of line endings.
  9. #
  10. # Default: auto
  11. newlines = lf # lf/crlf/cr/auto
  12. # The original size of tabs in the input.
  13. #
  14. # Default: 8
  15. input_tab_size = 2 # unsigned number
  16. # The size of tabs in the output (only used if align_with_tabs=true).
  17. #
  18. # Default: 8
  19. output_tab_size = 8 # unsigned number
  20. # The ASCII value of the string escape char, usually 92 (\) or (Pawn) 94 (^).
  21. #
  22. # Default: 92
  23. string_escape_char = 92 # unsigned number
  24. # Alternate string escape char (usually only used for Pawn).
  25. # Only works right before the quote char.
  26. string_escape_char2 = 0 # unsigned number
  27. # Replace tab characters found in string literals with the escape sequence \t
  28. # instead.
  29. string_replace_tab_chars = false # true/false
  30. # Allow interpreting '>=' and '>>=' as part of a template in code like
  31. # 'void f(list<list<B>>=val);'. If true, 'assert(x<0 && y>=3)' will be broken.
  32. # Improvements to template detection may make this option obsolete.
  33. tok_split_gte = false # true/false
  34. # Disable formatting of NL_CONT ('\\n') ended lines (e.g. multi-line macros).
  35. disable_processing_nl_cont = false # true/false
  36. # Specify the marker used in comments to disable processing of part of the
  37. # file.
  38. #
  39. # Default: *INDENT-OFF*
  40. disable_processing_cmt = " *INDENT-OFF*" # string
  41. # Specify the marker used in comments to (re)enable processing in a file.
  42. #
  43. # Default: *INDENT-ON*
  44. enable_processing_cmt = " *INDENT-ON*" # string
  45. # Enable parsing of digraphs.
  46. enable_digraphs = false # true/false
  47. # Option to allow both disable_processing_cmt and enable_processing_cmt
  48. # strings, if specified, to be interpreted as ECMAScript regular expressions.
  49. # If true, a regex search will be performed within comments according to the
  50. # specified patterns in order to disable/enable processing.
  51. processing_cmt_as_regex = false # true/false
  52. # Add or remove the UTF-8 BOM (recommend 'remove').
  53. utf8_bom = ignore # ignore/add/remove/force/not_defined
  54. # If the file contains bytes with values between 128 and 255, but is not
  55. # UTF-8, then output as UTF-8.
  56. utf8_byte = false # true/false
  57. # Force the output encoding to UTF-8.
  58. utf8_force = false # true/false
  59. #
  60. # Spacing options
  61. #
  62. # Add or remove space around non-assignment symbolic operators ('+', '/', '%',
  63. # '<<', and so forth).
  64. sp_arith = add # ignore/add/remove/force/not_defined
  65. # Add or remove space around arithmetic operators '+' and '-'.
  66. #
  67. # Overrides sp_arith.
  68. sp_arith_additive = ignore # ignore/add/remove/force/not_defined
  69. # Add or remove space around assignment operator '=', '+=', etc.
  70. sp_assign = add # ignore/add/remove/force/not_defined
  71. # Add or remove space around '=' in C++11 lambda capture specifications.
  72. #
  73. # Overrides sp_assign.
  74. sp_cpp_lambda_assign = ignore # ignore/add/remove/force/not_defined
  75. # Add or remove space after the capture specification of a C++11 lambda when
  76. # an argument list is present, as in '[] <here> (int x){ ... }'.
  77. sp_cpp_lambda_square_paren = ignore # ignore/add/remove/force/not_defined
  78. # Add or remove space after the capture specification of a C++11 lambda with
  79. # no argument list is present, as in '[] <here> { ... }'.
  80. sp_cpp_lambda_square_brace = ignore # ignore/add/remove/force/not_defined
  81. # Add or remove space after the opening parenthesis and before the closing
  82. # parenthesis of a argument list of a C++11 lambda, as in
  83. # '[]( <here> int x <here> ){ ... }'.
  84. sp_cpp_lambda_argument_list = ignore # ignore/add/remove/force/not_defined
  85. # Add or remove space after the argument list of a C++11 lambda, as in
  86. # '[](int x) <here> { ... }'.
  87. sp_cpp_lambda_paren_brace = ignore # ignore/add/remove/force/not_defined
  88. # Add or remove space between a lambda body and its call operator of an
  89. # immediately invoked lambda, as in '[]( ... ){ ... } <here> ( ... )'.
  90. sp_cpp_lambda_fparen = ignore # ignore/add/remove/force/not_defined
  91. # Add or remove space around assignment operator '=' in a prototype.
  92. #
  93. # If set to ignore, use sp_assign.
  94. sp_assign_default = remove # ignore/add/remove/force/not_defined
  95. # Add or remove space before assignment operator '=', '+=', etc.
  96. #
  97. # Overrides sp_assign.
  98. sp_before_assign = ignore # ignore/add/remove/force/not_defined
  99. # Add or remove space after assignment operator '=', '+=', etc.
  100. #
  101. # Overrides sp_assign.
  102. sp_after_assign = ignore # ignore/add/remove/force/not_defined
  103. # Add or remove space in 'enum {'.
  104. #
  105. # Default: add
  106. sp_enum_brace = add # ignore/add/remove/force/not_defined
  107. # Add or remove space in 'NS_ENUM ('.
  108. sp_enum_paren = ignore # ignore/add/remove/force/not_defined
  109. # Add or remove space around assignment '=' in enum.
  110. sp_enum_assign = ignore # ignore/add/remove/force/not_defined
  111. # Add or remove space before assignment '=' in enum.
  112. #
  113. # Overrides sp_enum_assign.
  114. sp_enum_before_assign = ignore # ignore/add/remove/force/not_defined
  115. # Add or remove space after assignment '=' in enum.
  116. #
  117. # Overrides sp_enum_assign.
  118. sp_enum_after_assign = ignore # ignore/add/remove/force/not_defined
  119. # Add or remove space around assignment ':' in enum.
  120. sp_enum_colon = ignore # ignore/add/remove/force/not_defined
  121. # Add or remove space around preprocessor '##' concatenation operator.
  122. #
  123. # Default: add
  124. sp_pp_concat = add # ignore/add/remove/force/not_defined
  125. # Add or remove space after preprocessor '#' stringify operator.
  126. # Also affects the '#@' charizing operator.
  127. sp_pp_stringify = ignore # ignore/add/remove/force/not_defined
  128. # Add or remove space before preprocessor '#' stringify operator
  129. # as in '#define x(y) L#y'.
  130. sp_before_pp_stringify = ignore # ignore/add/remove/force/not_defined
  131. # Add or remove space around boolean operators '&&' and '||'.
  132. sp_bool = add # ignore/add/remove/force/not_defined
  133. # Add or remove space around compare operator '<', '>', '==', etc.
  134. sp_compare = add # ignore/add/remove/force/not_defined
  135. # Add or remove space inside '(' and ')'.
  136. sp_inside_paren = ignore # ignore/add/remove/force/not_defined
  137. # Add or remove space between nested parentheses, i.e. '((' vs. ') )'.
  138. sp_paren_paren = remove # ignore/add/remove/force/not_defined
  139. # Add or remove space between back-to-back parentheses, i.e. ')(' vs. ') ('.
  140. sp_cparen_oparen = ignore # ignore/add/remove/force/not_defined
  141. # Whether to balance spaces inside nested parentheses.
  142. sp_balance_nested_parens = false # true/false
  143. # Add or remove space between ')' and '{'.
  144. sp_paren_brace = add # ignore/add/remove/force/not_defined
  145. # Add or remove space between nested braces, i.e. '{{' vs. '{ {'.
  146. sp_brace_brace = ignore # ignore/add/remove/force/not_defined
  147. # Add or remove space before pointer star '*'.
  148. sp_before_ptr_star = ignore # ignore/add/remove/force/not_defined
  149. # Add or remove space before pointer star '*' that isn't followed by a
  150. # variable name. If set to ignore, sp_before_ptr_star is used instead.
  151. sp_before_unnamed_ptr_star = ignore # ignore/add/remove/force/not_defined
  152. # Add or remove space between a qualifier and a pointer star '*' that isn't
  153. # followed by a variable name, as in '(char const *)'. If set to ignore,
  154. # sp_before_ptr_star is used instead.
  155. sp_qualifier_unnamed_ptr_star = ignore # ignore/add/remove/force/not_defined
  156. # Add or remove space between pointer stars '*', as in 'int ***a;'.
  157. sp_between_ptr_star = ignore # ignore/add/remove/force/not_defined
  158. # Add or remove space after pointer star '*', if followed by a word.
  159. #
  160. # Overrides sp_type_func.
  161. sp_after_ptr_star = ignore # ignore/add/remove/force/not_defined
  162. # Add or remove space after pointer caret '^', if followed by a word.
  163. sp_after_ptr_block_caret = ignore # ignore/add/remove/force/not_defined
  164. # Add or remove space after pointer star '*', if followed by a qualifier.
  165. sp_after_ptr_star_qualifier = ignore # ignore/add/remove/force/not_defined
  166. # Add or remove space after a pointer star '*', if followed by a function
  167. # prototype or function definition.
  168. #
  169. # Overrides sp_after_ptr_star and sp_type_func.
  170. sp_after_ptr_star_func = ignore # ignore/add/remove/force/not_defined
  171. # Add or remove space after a pointer star '*' in the trailing return of a
  172. # function prototype or function definition.
  173. sp_after_ptr_star_trailing = ignore # ignore/add/remove/force/not_defined
  174. # Add or remove space between the pointer star '*' and the name of the variable
  175. # in a function pointer definition.
  176. sp_ptr_star_func_var = ignore # ignore/add/remove/force/not_defined
  177. # Add or remove space between the pointer star '*' and the name of the type
  178. # in a function pointer type definition.
  179. sp_ptr_star_func_type = ignore # ignore/add/remove/force/not_defined
  180. # Add or remove space after a pointer star '*', if followed by an open
  181. # parenthesis, as in 'void* (*)()'.
  182. sp_ptr_star_paren = ignore # ignore/add/remove/force/not_defined
  183. # Add or remove space before a pointer star '*', if followed by a function
  184. # prototype or function definition. If set to ignore, sp_before_ptr_star is
  185. # used instead.
  186. sp_before_ptr_star_func = ignore # ignore/add/remove/force/not_defined
  187. # Add or remove space between a qualifier and a pointer star '*' followed by
  188. # the name of the function in a function prototype or definition, as in
  189. # 'char const *foo()`. If set to ignore, sp_before_ptr_star is used instead.
  190. sp_qualifier_ptr_star_func = ignore # ignore/add/remove/force/not_defined
  191. # Add or remove space before a pointer star '*' in the trailing return of a
  192. # function prototype or function definition.
  193. sp_before_ptr_star_trailing = ignore # ignore/add/remove/force/not_defined
  194. # Add or remove space between a qualifier and a pointer star '*' in the
  195. # trailing return of a function prototype or function definition, as in
  196. # 'auto foo() -> char const *'.
  197. sp_qualifier_ptr_star_trailing = ignore # ignore/add/remove/force/not_defined
  198. # Add or remove space before a reference sign '&'.
  199. sp_before_byref = ignore # ignore/add/remove/force/not_defined
  200. # Add or remove space before a reference sign '&' that isn't followed by a
  201. # variable name. If set to ignore, sp_before_byref is used instead.
  202. sp_before_unnamed_byref = ignore # ignore/add/remove/force/not_defined
  203. # Add or remove space after reference sign '&', if followed by a word.
  204. #
  205. # Overrides sp_type_func.
  206. sp_after_byref = ignore # ignore/add/remove/force/not_defined
  207. # Add or remove space after a reference sign '&', if followed by a function
  208. # prototype or function definition.
  209. #
  210. # Overrides sp_after_byref and sp_type_func.
  211. sp_after_byref_func = ignore # ignore/add/remove/force/not_defined
  212. # Add or remove space before a reference sign '&', if followed by a function
  213. # prototype or function definition.
  214. sp_before_byref_func = ignore # ignore/add/remove/force/not_defined
  215. # Add or remove space after a reference sign '&', if followed by an open
  216. # parenthesis, as in 'char& (*)()'.
  217. sp_byref_paren = ignore # ignore/add/remove/force/not_defined
  218. # Add or remove space between type and word. In cases where total removal of
  219. # whitespace would be a syntax error, a value of 'remove' is treated the same
  220. # as 'force'.
  221. #
  222. # This also affects some other instances of space following a type that are
  223. # not covered by other options; for example, between the return type and
  224. # parenthesis of a function type template argument, between the type and
  225. # parenthesis of an array parameter, or between 'decltype(...)' and the
  226. # following word.
  227. #
  228. # Default: force
  229. sp_after_type = force # ignore/add/remove/force/not_defined
  230. # Add or remove space between 'decltype(...)' and word,
  231. # brace or function call.
  232. sp_after_decltype = ignore # ignore/add/remove/force/not_defined
  233. # (D) Add or remove space before the parenthesis in the D constructs
  234. # 'template Foo(' and 'class Foo('.
  235. sp_before_template_paren = ignore # ignore/add/remove/force/not_defined
  236. # Add or remove space between 'template' and '<'.
  237. # If set to ignore, sp_before_angle is used.
  238. sp_template_angle = ignore # ignore/add/remove/force/not_defined
  239. # Add or remove space before '<'.
  240. sp_before_angle = ignore # ignore/add/remove/force/not_defined
  241. # Add or remove space inside '<' and '>'.
  242. sp_inside_angle = ignore # ignore/add/remove/force/not_defined
  243. # Add or remove space inside '<>'.
  244. sp_inside_angle_empty = ignore # ignore/add/remove/force/not_defined
  245. # Add or remove space between '>' and ':'.
  246. sp_angle_colon = ignore # ignore/add/remove/force/not_defined
  247. # Add or remove space after '>'.
  248. sp_after_angle = ignore # ignore/add/remove/force/not_defined
  249. # Add or remove space between '>' and '(' as found in 'new List<byte>(foo);'.
  250. sp_angle_paren = ignore # ignore/add/remove/force/not_defined
  251. # Add or remove space between '>' and '()' as found in 'new List<byte>();'.
  252. sp_angle_paren_empty = ignore # ignore/add/remove/force/not_defined
  253. # Add or remove space between '>' and a word as in 'List<byte> m;' or
  254. # 'template <typename T> static ...'.
  255. sp_angle_word = ignore # ignore/add/remove/force/not_defined
  256. # Add or remove space between '>' and '>' in '>>' (template stuff).
  257. #
  258. # Default: add
  259. sp_angle_shift = add # ignore/add/remove/force/not_defined
  260. # (C++11) Permit removal of the space between '>>' in 'foo<bar<int> >'. Note
  261. # that sp_angle_shift cannot remove the space without this option.
  262. sp_permit_cpp11_shift = false # true/false
  263. # Add or remove space before '(' of control statements ('if', 'for', 'switch',
  264. # 'while', etc.).
  265. sp_before_sparen = add # ignore/add/remove/force/not_defined
  266. # Add or remove space inside '(' and ')' of control statements other than
  267. # 'for'.
  268. sp_inside_sparen = remove # ignore/add/remove/force/not_defined
  269. # Add or remove space after '(' of control statements other than 'for'.
  270. #
  271. # Overrides sp_inside_sparen.
  272. sp_inside_sparen_open = ignore # ignore/add/remove/force/not_defined
  273. # Add or remove space before ')' of control statements other than 'for'.
  274. #
  275. # Overrides sp_inside_sparen.
  276. sp_inside_sparen_close = ignore # ignore/add/remove/force/not_defined
  277. # Add or remove space inside '(' and ')' of 'for' statements.
  278. sp_inside_for = ignore # ignore/add/remove/force/not_defined
  279. # Add or remove space after '(' of 'for' statements.
  280. #
  281. # Overrides sp_inside_for.
  282. sp_inside_for_open = ignore # ignore/add/remove/force/not_defined
  283. # Add or remove space before ')' of 'for' statements.
  284. #
  285. # Overrides sp_inside_for.
  286. sp_inside_for_close = ignore # ignore/add/remove/force/not_defined
  287. # Add or remove space between '((' or '))' of control statements.
  288. sp_sparen_paren = ignore # ignore/add/remove/force/not_defined
  289. # Add or remove space after ')' of control statements.
  290. sp_after_sparen = add # ignore/add/remove/force/not_defined
  291. # Add or remove space between ')' and '{' of control statements.
  292. sp_sparen_brace = ignore # ignore/add/remove/force/not_defined
  293. # Add or remove space between 'do' and '{'.
  294. sp_do_brace_open = force # ignore/add/remove/force/not_defined
  295. # Add or remove space between '}' and 'while'.
  296. sp_brace_close_while = force # ignore/add/remove/force/not_defined
  297. # Add or remove space between 'while' and '('. Overrides sp_before_sparen.
  298. sp_while_paren_open = force # ignore/add/remove/force/not_defined
  299. # (D) Add or remove space between 'invariant' and '('.
  300. sp_invariant_paren = ignore # ignore/add/remove/force/not_defined
  301. # (D) Add or remove space after the ')' in 'invariant (C) c'.
  302. sp_after_invariant_paren = ignore # ignore/add/remove/force/not_defined
  303. # Add or remove space before empty statement ';' on 'if', 'for' and 'while'.
  304. sp_special_semi = ignore # ignore/add/remove/force/not_defined
  305. # Add or remove space before ';'.
  306. #
  307. # Default: remove
  308. sp_before_semi = remove # ignore/add/remove/force/not_defined
  309. # Add or remove space before ';' in non-empty 'for' statements.
  310. sp_before_semi_for = ignore # ignore/add/remove/force/not_defined
  311. # Add or remove space before a semicolon of an empty left part of a for
  312. # statement, as in 'for ( <here> ; ; )'.
  313. sp_before_semi_for_empty = ignore # ignore/add/remove/force/not_defined
  314. # Add or remove space between the semicolons of an empty middle part of a for
  315. # statement, as in 'for ( ; <here> ; )'.
  316. sp_between_semi_for_empty = ignore # ignore/add/remove/force/not_defined
  317. # Add or remove space after ';', except when followed by a comment.
  318. #
  319. # Default: add
  320. sp_after_semi = add # ignore/add/remove/force/not_defined
  321. # Add or remove space after ';' in non-empty 'for' statements.
  322. #
  323. # Default: force
  324. sp_after_semi_for = force # ignore/add/remove/force/not_defined
  325. # Add or remove space after the final semicolon of an empty part of a for
  326. # statement, as in 'for ( ; ; <here> )'.
  327. sp_after_semi_for_empty = ignore # ignore/add/remove/force/not_defined
  328. # Add or remove space before '[' (except '[]').
  329. sp_before_square = ignore # ignore/add/remove/force/not_defined
  330. # Add or remove space before '[' for a variable definition.
  331. #
  332. # Default: remove
  333. sp_before_vardef_square = remove # ignore/add/remove/force/not_defined
  334. # Add or remove space before '[' for asm block.
  335. sp_before_square_asm_block = ignore # ignore/add/remove/force/not_defined
  336. # Add or remove space before '[]'.
  337. sp_before_squares = ignore # ignore/add/remove/force/not_defined
  338. # Add or remove space before C++17 structured bindings.
  339. sp_cpp_before_struct_binding = ignore # ignore/add/remove/force/not_defined
  340. # Add or remove space inside a non-empty '[' and ']'.
  341. sp_inside_square = remove # ignore/add/remove/force/not_defined
  342. # Add or remove space inside '[]'.
  343. sp_inside_square_empty = ignore # ignore/add/remove/force/not_defined
  344. # (OC) Add or remove space inside a non-empty Objective-C boxed array '@[' and
  345. # ']'. If set to ignore, sp_inside_square is used.
  346. sp_inside_square_oc_array = ignore # ignore/add/remove/force/not_defined
  347. # Add or remove space after ',', i.e. 'a,b' vs. 'a, b'.
  348. sp_after_comma = add # ignore/add/remove/force/not_defined
  349. # Add or remove space before ',', i.e. 'a,b' vs. 'a ,b'.
  350. #
  351. # Default: remove
  352. sp_before_comma = remove # ignore/add/remove/force/not_defined
  353. # (C#, Vala) Add or remove space between ',' and ']' in multidimensional array type
  354. # like 'int[,,]'.
  355. sp_after_mdatype_commas = ignore # ignore/add/remove/force/not_defined
  356. # (C#, Vala) Add or remove space between '[' and ',' in multidimensional array type
  357. # like 'int[,,]'.
  358. sp_before_mdatype_commas = ignore # ignore/add/remove/force/not_defined
  359. # (C#, Vala) Add or remove space between ',' in multidimensional array type
  360. # like 'int[,,]'.
  361. sp_between_mdatype_commas = ignore # ignore/add/remove/force/not_defined
  362. # Add or remove space between an open parenthesis and comma,
  363. # i.e. '(,' vs. '( ,'.
  364. #
  365. # Default: force
  366. sp_paren_comma = force # ignore/add/remove/force/not_defined
  367. # Add or remove space between a type and ':'.
  368. sp_type_colon = ignore # ignore/add/remove/force/not_defined
  369. # Add or remove space after the variadic '...' when preceded by a
  370. # non-punctuator.
  371. # The value REMOVE will be overridden with FORCE
  372. sp_after_ellipsis = ignore # ignore/add/remove/force/not_defined
  373. # Add or remove space before the variadic '...' when preceded by a
  374. # non-punctuator.
  375. # The value REMOVE will be overridden with FORCE
  376. sp_before_ellipsis = ignore # ignore/add/remove/force/not_defined
  377. # Add or remove space between a type and '...'.
  378. sp_type_ellipsis = ignore # ignore/add/remove/force/not_defined
  379. # Add or remove space between a '*' and '...'.
  380. sp_ptr_type_ellipsis = ignore # ignore/add/remove/force/not_defined
  381. # Add or remove space between ')' and '...'.
  382. sp_paren_ellipsis = ignore # ignore/add/remove/force/not_defined
  383. # Add or remove space between '&&' and '...'.
  384. sp_byref_ellipsis = ignore # ignore/add/remove/force/not_defined
  385. # Add or remove space between ')' and a qualifier such as 'const'.
  386. sp_paren_qualifier = ignore # ignore/add/remove/force/not_defined
  387. # Add or remove space between ')' and 'noexcept'.
  388. sp_paren_noexcept = ignore # ignore/add/remove/force/not_defined
  389. # Add or remove space after class ':'.
  390. sp_after_class_colon = add # ignore/add/remove/force/not_defined
  391. # Add or remove space before class ':'.
  392. sp_before_class_colon = add # ignore/add/remove/force/not_defined
  393. # Add or remove space after class constructor ':'.
  394. #
  395. # Default: add
  396. sp_after_constr_colon = add # ignore/add/remove/force/not_defined
  397. # Add or remove space before class constructor ':'.
  398. #
  399. # Default: add
  400. sp_before_constr_colon = add # ignore/add/remove/force/not_defined
  401. # Add or remove space before case ':'.
  402. #
  403. # Default: remove
  404. sp_before_case_colon = remove # ignore/add/remove/force/not_defined
  405. # Add or remove space between 'operator' and operator sign.
  406. sp_after_operator = ignore # ignore/add/remove/force/not_defined
  407. # Add or remove space between the operator symbol and the open parenthesis, as
  408. # in 'operator ++('.
  409. sp_after_operator_sym = ignore # ignore/add/remove/force/not_defined
  410. # Overrides sp_after_operator_sym when the operator has no arguments, as in
  411. # 'operator *()'.
  412. sp_after_operator_sym_empty = ignore # ignore/add/remove/force/not_defined
  413. # Add or remove space after C/D cast, i.e. 'cast(int)a' vs. 'cast(int) a' or
  414. # '(int)a' vs. '(int) a'.
  415. sp_after_cast = ignore # ignore/add/remove/force/not_defined
  416. # Add or remove spaces inside cast parentheses.
  417. sp_inside_paren_cast = ignore # ignore/add/remove/force/not_defined
  418. # Add or remove space between the type and open parenthesis in a C++ cast,
  419. # i.e. 'int(exp)' vs. 'int (exp)'.
  420. sp_cpp_cast_paren = ignore # ignore/add/remove/force/not_defined
  421. # Add or remove space between 'sizeof' and '('.
  422. sp_sizeof_paren = ignore # ignore/add/remove/force/not_defined
  423. # Add or remove space between 'sizeof' and '...'.
  424. sp_sizeof_ellipsis = ignore # ignore/add/remove/force/not_defined
  425. # Add or remove space between 'sizeof...' and '('.
  426. sp_sizeof_ellipsis_paren = ignore # ignore/add/remove/force/not_defined
  427. # Add or remove space between '...' and a parameter pack.
  428. sp_ellipsis_parameter_pack = ignore # ignore/add/remove/force/not_defined
  429. # Add or remove space between a parameter pack and '...'.
  430. sp_parameter_pack_ellipsis = ignore # ignore/add/remove/force/not_defined
  431. # Add or remove space between 'decltype' and '('.
  432. sp_decltype_paren = ignore # ignore/add/remove/force/not_defined
  433. # (Pawn) Add or remove space after the tag keyword.
  434. sp_after_tag = ignore # ignore/add/remove/force/not_defined
  435. # Add or remove space inside enum '{' and '}'.
  436. sp_inside_braces_enum = ignore # ignore/add/remove/force/not_defined
  437. # Add or remove space inside struct/union '{' and '}'.
  438. sp_inside_braces_struct = ignore # ignore/add/remove/force/not_defined
  439. # (OC) Add or remove space inside Objective-C boxed dictionary '{' and '}'
  440. sp_inside_braces_oc_dict = ignore # ignore/add/remove/force/not_defined
  441. # Add or remove space after open brace in an unnamed temporary
  442. # direct-list-initialization
  443. # if statement is a brace_init_lst
  444. # works only if sp_brace_brace is set to ignore.
  445. sp_after_type_brace_init_lst_open = ignore # ignore/add/remove/force/not_defined
  446. # Add or remove space before close brace in an unnamed temporary
  447. # direct-list-initialization
  448. # if statement is a brace_init_lst
  449. # works only if sp_brace_brace is set to ignore.
  450. sp_before_type_brace_init_lst_close = ignore # ignore/add/remove/force/not_defined
  451. # Add or remove space inside an unnamed temporary direct-list-initialization
  452. # if statement is a brace_init_lst
  453. # works only if sp_brace_brace is set to ignore
  454. # works only if sp_before_type_brace_init_lst_close is set to ignore.
  455. sp_inside_type_brace_init_lst = ignore # ignore/add/remove/force/not_defined
  456. # Add or remove space inside '{' and '}'.
  457. sp_inside_braces = ignore # ignore/add/remove/force/not_defined
  458. # Add or remove space inside '{}'.
  459. sp_inside_braces_empty = ignore # ignore/add/remove/force/not_defined
  460. # Add or remove space around trailing return operator '->'.
  461. sp_trailing_return = ignore # ignore/add/remove/force/not_defined
  462. # Add or remove space between return type and function name. A minimum of 1
  463. # is forced except for pointer return types.
  464. sp_type_func = ignore # ignore/add/remove/force/not_defined
  465. # Add or remove space between type and open brace of an unnamed temporary
  466. # direct-list-initialization.
  467. sp_type_brace_init_lst = ignore # ignore/add/remove/force/not_defined
  468. # Add or remove space between function name and '(' on function declaration.
  469. sp_func_proto_paren = remove # ignore/add/remove/force/not_defined
  470. # Add or remove space between function name and '()' on function declaration
  471. # without parameters.
  472. sp_func_proto_paren_empty = ignore # ignore/add/remove/force/not_defined
  473. # Add or remove space between function name and '(' with a typedef specifier.
  474. sp_func_type_paren = ignore # ignore/add/remove/force/not_defined
  475. # Add or remove space between alias name and '(' of a non-pointer function type typedef.
  476. sp_func_def_paren = ignore # ignore/add/remove/force/not_defined
  477. # Add or remove space between function name and '()' on function definition
  478. # without parameters.
  479. sp_func_def_paren_empty = ignore # ignore/add/remove/force/not_defined
  480. # Add or remove space inside empty function '()'.
  481. # Overrides sp_after_angle unless use_sp_after_angle_always is set to true.
  482. sp_inside_fparens = ignore # ignore/add/remove/force/not_defined
  483. # Add or remove space inside function '(' and ')'.
  484. sp_inside_fparen = ignore # ignore/add/remove/force/not_defined
  485. # Add or remove space inside user functor '(' and ')'.
  486. sp_func_call_user_inside_rparen = ignore # ignore/add/remove/force/not_defined
  487. # Add or remove space inside empty functor '()'.
  488. # Overrides sp_after_angle unless use_sp_after_angle_always is set to true.
  489. sp_inside_rparens = ignore # ignore/add/remove/force/not_defined
  490. # Add or remove space inside functor '(' and ')'.
  491. sp_inside_rparen = ignore # ignore/add/remove/force/not_defined
  492. # Add or remove space inside the first parentheses in a function type, as in
  493. # 'void (*x)(...)'.
  494. sp_inside_tparen = ignore # ignore/add/remove/force/not_defined
  495. # Add or remove space between the ')' and '(' in a function type, as in
  496. # 'void (*x)(...)'.
  497. sp_after_tparen_close = ignore # ignore/add/remove/force/not_defined
  498. # Add or remove space between ']' and '(' when part of a function call.
  499. sp_square_fparen = ignore # ignore/add/remove/force/not_defined
  500. # Add or remove space between ')' and '{' of function.
  501. sp_fparen_brace = force # ignore/add/remove/force/not_defined
  502. # Add or remove space between ')' and '{' of a function call in object
  503. # initialization.
  504. #
  505. # Overrides sp_fparen_brace.
  506. sp_fparen_brace_initializer = ignore # ignore/add/remove/force/not_defined
  507. # (Java) Add or remove space between ')' and '{{' of double brace initializer.
  508. sp_fparen_dbrace = ignore # ignore/add/remove/force/not_defined
  509. # Add or remove space between function name and '(' on function calls.
  510. sp_func_call_paren = remove # ignore/add/remove/force/not_defined
  511. # Add or remove space between function name and '()' on function calls without
  512. # parameters. If set to ignore (the default), sp_func_call_paren is used.
  513. sp_func_call_paren_empty = ignore # ignore/add/remove/force/not_defined
  514. # Add or remove space between the user function name and '(' on function
  515. # calls. You need to set a keyword to be a user function in the config file,
  516. # like:
  517. # set func_call_user tr _ i18n
  518. sp_func_call_user_paren = ignore # ignore/add/remove/force/not_defined
  519. # Add or remove space inside user function '(' and ')'.
  520. sp_func_call_user_inside_fparen = ignore # ignore/add/remove/force/not_defined
  521. # Add or remove space between nested parentheses with user functions,
  522. # i.e. '((' vs. '( ('.
  523. sp_func_call_user_paren_paren = ignore # ignore/add/remove/force/not_defined
  524. # Add or remove space between a constructor/destructor and the open
  525. # parenthesis.
  526. sp_func_class_paren = remove # ignore/add/remove/force/not_defined
  527. # Add or remove space between a constructor without parameters or destructor
  528. # and '()'.
  529. sp_func_class_paren_empty = remove # ignore/add/remove/force/not_defined
  530. # Add or remove space after 'return'.
  531. #
  532. # Default: force
  533. sp_return = force # ignore/add/remove/force/not_defined
  534. # Add or remove space between 'return' and '('.
  535. sp_return_paren = ignore # ignore/add/remove/force/not_defined
  536. # Add or remove space between 'return' and '{'.
  537. sp_return_brace = ignore # ignore/add/remove/force/not_defined
  538. # Add or remove space between '__attribute__' and '('.
  539. sp_attribute_paren = ignore # ignore/add/remove/force/not_defined
  540. # Add or remove space between 'defined' and '(' in '#if defined (FOO)'.
  541. sp_defined_paren = ignore # ignore/add/remove/force/not_defined
  542. # Add or remove space between 'throw' and '(' in 'throw (something)'.
  543. sp_throw_paren = ignore # ignore/add/remove/force/not_defined
  544. # Add or remove space between 'throw' and anything other than '(' as in
  545. # '@throw [...];'.
  546. sp_after_throw = ignore # ignore/add/remove/force/not_defined
  547. # Add or remove space between 'catch' and '(' in 'catch (something) { }'.
  548. # If set to ignore, sp_before_sparen is used.
  549. sp_catch_paren = ignore # ignore/add/remove/force/not_defined
  550. # (OC) Add or remove space between '@catch' and '('
  551. # in '@catch (something) { }'. If set to ignore, sp_catch_paren is used.
  552. sp_oc_catch_paren = ignore # ignore/add/remove/force/not_defined
  553. # (OC) Add or remove space before Objective-C protocol list
  554. # as in '@protocol Protocol<here><Protocol_A>' or '@interface MyClass : NSObject<here><MyProtocol>'.
  555. sp_before_oc_proto_list = ignore # ignore/add/remove/force/not_defined
  556. # (OC) Add or remove space between class name and '('
  557. # in '@interface className(categoryName)<ProtocolName>:BaseClass'
  558. sp_oc_classname_paren = ignore # ignore/add/remove/force/not_defined
  559. # (D) Add or remove space between 'version' and '('
  560. # in 'version (something) { }'. If set to ignore, sp_before_sparen is used.
  561. sp_version_paren = ignore # ignore/add/remove/force/not_defined
  562. # (D) Add or remove space between 'scope' and '('
  563. # in 'scope (something) { }'. If set to ignore, sp_before_sparen is used.
  564. sp_scope_paren = ignore # ignore/add/remove/force/not_defined
  565. # Add or remove space between 'super' and '(' in 'super (something)'.
  566. #
  567. # Default: remove
  568. sp_super_paren = remove # ignore/add/remove/force/not_defined
  569. # Add or remove space between 'this' and '(' in 'this (something)'.
  570. #
  571. # Default: remove
  572. sp_this_paren = remove # ignore/add/remove/force/not_defined
  573. # Add or remove space between a macro name and its definition.
  574. sp_macro = ignore # ignore/add/remove/force/not_defined
  575. # Add or remove space between a macro function ')' and its definition.
  576. sp_macro_func = ignore # ignore/add/remove/force/not_defined
  577. # Add or remove space between 'else' and '{' if on the same line.
  578. sp_else_brace = add # ignore/add/remove/force/not_defined
  579. # Add or remove space between '}' and 'else' if on the same line.
  580. sp_brace_else = force # ignore/add/remove/force/not_defined
  581. # Add or remove space between '}' and the name of a typedef on the same line.
  582. sp_brace_typedef = ignore # ignore/add/remove/force/not_defined
  583. # Add or remove space before the '{' of a 'catch' statement, if the '{' and
  584. # 'catch' are on the same line, as in 'catch (decl) <here> {'.
  585. sp_catch_brace = ignore # ignore/add/remove/force/not_defined
  586. # (OC) Add or remove space before the '{' of a '@catch' statement, if the '{'
  587. # and '@catch' are on the same line, as in '@catch (decl) <here> {'.
  588. # If set to ignore, sp_catch_brace is used.
  589. sp_oc_catch_brace = ignore # ignore/add/remove/force/not_defined
  590. # Add or remove space between '}' and 'catch' if on the same line.
  591. sp_brace_catch = ignore # ignore/add/remove/force/not_defined
  592. # (OC) Add or remove space between '}' and '@catch' if on the same line.
  593. # If set to ignore, sp_brace_catch is used.
  594. sp_oc_brace_catch = ignore # ignore/add/remove/force/not_defined
  595. # Add or remove space between 'finally' and '{' if on the same line.
  596. sp_finally_brace = ignore # ignore/add/remove/force/not_defined
  597. # Add or remove space between '}' and 'finally' if on the same line.
  598. sp_brace_finally = ignore # ignore/add/remove/force/not_defined
  599. # Add or remove space between 'try' and '{' if on the same line.
  600. sp_try_brace = ignore # ignore/add/remove/force/not_defined
  601. # Add or remove space between get/set and '{' if on the same line.
  602. sp_getset_brace = ignore # ignore/add/remove/force/not_defined
  603. # Add or remove space between a variable and '{' for C++ uniform
  604. # initialization.
  605. sp_word_brace_init_lst = ignore # ignore/add/remove/force/not_defined
  606. # Add or remove space between a variable and '{' for a namespace.
  607. #
  608. # Default: add
  609. sp_word_brace_ns = add # ignore/add/remove/force/not_defined
  610. # Add or remove space before the '::' operator.
  611. sp_before_dc = ignore # ignore/add/remove/force/not_defined
  612. # Add or remove space after the '::' operator.
  613. sp_after_dc = ignore # ignore/add/remove/force/not_defined
  614. # (D) Add or remove around the D named array initializer ':' operator.
  615. sp_d_array_colon = ignore # ignore/add/remove/force/not_defined
  616. # Add or remove space after the '!' (not) unary operator.
  617. #
  618. # Default: remove
  619. sp_not = remove # ignore/add/remove/force/not_defined
  620. # Add or remove space between two '!' (not) unary operators.
  621. # If set to ignore, sp_not will be used.
  622. sp_not_not = ignore # ignore/add/remove/force/not_defined
  623. # Add or remove space after the '~' (invert) unary operator.
  624. #
  625. # Default: remove
  626. sp_inv = remove # ignore/add/remove/force/not_defined
  627. # Add or remove space after the '&' (address-of) unary operator. This does not
  628. # affect the spacing after a '&' that is part of a type.
  629. #
  630. # Default: remove
  631. sp_addr = remove # ignore/add/remove/force/not_defined
  632. # Add or remove space around the '.' or '->' operators.
  633. #
  634. # Default: remove
  635. sp_member = remove # ignore/add/remove/force/not_defined
  636. # Add or remove space after the '*' (dereference) unary operator. This does
  637. # not affect the spacing after a '*' that is part of a type.
  638. #
  639. # Default: remove
  640. sp_deref = remove # ignore/add/remove/force/not_defined
  641. # Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'.
  642. #
  643. # Default: remove
  644. sp_sign = remove # ignore/add/remove/force/not_defined
  645. # Add or remove space between '++' and '--' the word to which it is being
  646. # applied, as in '(--x)' or 'y++;'.
  647. #
  648. # Default: remove
  649. sp_incdec = remove # ignore/add/remove/force/not_defined
  650. # Add or remove space before a backslash-newline at the end of a line.
  651. #
  652. # Default: add
  653. sp_before_nl_cont = add # ignore/add/remove/force/not_defined
  654. # (OC) Add or remove space after the scope '+' or '-', as in '-(void) foo;'
  655. # or '+(int) bar;'.
  656. sp_after_oc_scope = ignore # ignore/add/remove/force/not_defined
  657. # (OC) Add or remove space after the colon in message specs,
  658. # i.e. '-(int) f:(int) x;' vs. '-(int) f: (int) x;'.
  659. sp_after_oc_colon = ignore # ignore/add/remove/force/not_defined
  660. # (OC) Add or remove space before the colon in message specs,
  661. # i.e. '-(int) f: (int) x;' vs. '-(int) f : (int) x;'.
  662. sp_before_oc_colon = ignore # ignore/add/remove/force/not_defined
  663. # (OC) Add or remove space after the colon in immutable dictionary expression
  664. # 'NSDictionary *test = @{@"foo" :@"bar"};'.
  665. sp_after_oc_dict_colon = ignore # ignore/add/remove/force/not_defined
  666. # (OC) Add or remove space before the colon in immutable dictionary expression
  667. # 'NSDictionary *test = @{@"foo" :@"bar"};'.
  668. sp_before_oc_dict_colon = ignore # ignore/add/remove/force/not_defined
  669. # (OC) Add or remove space after the colon in message specs,
  670. # i.e. '[object setValue:1];' vs. '[object setValue: 1];'.
  671. sp_after_send_oc_colon = ignore # ignore/add/remove/force/not_defined
  672. # (OC) Add or remove space before the colon in message specs,
  673. # i.e. '[object setValue:1];' vs. '[object setValue :1];'.
  674. sp_before_send_oc_colon = ignore # ignore/add/remove/force/not_defined
  675. # (OC) Add or remove space after the (type) in message specs,
  676. # i.e. '-(int)f: (int) x;' vs. '-(int)f: (int)x;'.
  677. sp_after_oc_type = ignore # ignore/add/remove/force/not_defined
  678. # (OC) Add or remove space after the first (type) in message specs,
  679. # i.e. '-(int) f:(int)x;' vs. '-(int)f:(int)x;'.
  680. sp_after_oc_return_type = ignore # ignore/add/remove/force/not_defined
  681. # (OC) Add or remove space between '@selector' and '(',
  682. # i.e. '@selector(msgName)' vs. '@selector (msgName)'.
  683. # Also applies to '@protocol()' constructs.
  684. sp_after_oc_at_sel = ignore # ignore/add/remove/force/not_defined
  685. # (OC) Add or remove space between '@selector(x)' and the following word,
  686. # i.e. '@selector(foo) a:' vs. '@selector(foo)a:'.
  687. sp_after_oc_at_sel_parens = ignore # ignore/add/remove/force/not_defined
  688. # (OC) Add or remove space inside '@selector' parentheses,
  689. # i.e. '@selector(foo)' vs. '@selector( foo )'.
  690. # Also applies to '@protocol()' constructs.
  691. sp_inside_oc_at_sel_parens = ignore # ignore/add/remove/force/not_defined
  692. # (OC) Add or remove space before a block pointer caret,
  693. # i.e. '^int (int arg){...}' vs. ' ^int (int arg){...}'.
  694. sp_before_oc_block_caret = ignore # ignore/add/remove/force/not_defined
  695. # (OC) Add or remove space after a block pointer caret,
  696. # i.e. '^int (int arg){...}' vs. '^ int (int arg){...}'.
  697. sp_after_oc_block_caret = ignore # ignore/add/remove/force/not_defined
  698. # (OC) Add or remove space between the receiver and selector in a message,
  699. # as in '[receiver selector ...]'.
  700. sp_after_oc_msg_receiver = ignore # ignore/add/remove/force/not_defined
  701. # (OC) Add or remove space after '@property'.
  702. sp_after_oc_property = ignore # ignore/add/remove/force/not_defined
  703. # (OC) Add or remove space between '@synchronized' and the open parenthesis,
  704. # i.e. '@synchronized(foo)' vs. '@synchronized (foo)'.
  705. sp_after_oc_synchronized = ignore # ignore/add/remove/force/not_defined
  706. # Add or remove space around the ':' in 'b ? t : f'.
  707. sp_cond_colon = add # ignore/add/remove/force/not_defined
  708. # Add or remove space before the ':' in 'b ? t : f'.
  709. #
  710. # Overrides sp_cond_colon.
  711. sp_cond_colon_before = ignore # ignore/add/remove/force/not_defined
  712. # Add or remove space after the ':' in 'b ? t : f'.
  713. #
  714. # Overrides sp_cond_colon.
  715. sp_cond_colon_after = ignore # ignore/add/remove/force/not_defined
  716. # Add or remove space around the '?' in 'b ? t : f'.
  717. sp_cond_question = add # ignore/add/remove/force/not_defined
  718. # Add or remove space before the '?' in 'b ? t : f'.
  719. #
  720. # Overrides sp_cond_question.
  721. sp_cond_question_before = ignore # ignore/add/remove/force/not_defined
  722. # Add or remove space after the '?' in 'b ? t : f'.
  723. #
  724. # Overrides sp_cond_question.
  725. sp_cond_question_after = ignore # ignore/add/remove/force/not_defined
  726. # In the abbreviated ternary form '(a ?: b)', add or remove space between '?'
  727. # and ':'.
  728. #
  729. # Overrides all other sp_cond_* options.
  730. sp_cond_ternary_short = ignore # ignore/add/remove/force/not_defined
  731. # Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make
  732. # sense here.
  733. sp_case_label = ignore # ignore/add/remove/force/not_defined
  734. # (D) Add or remove space around the D '..' operator.
  735. sp_range = ignore # ignore/add/remove/force/not_defined
  736. # Add or remove space after ':' in a Java/C++11 range-based 'for',
  737. # as in 'for (Type var : <here> expr)'.
  738. sp_after_for_colon = ignore # ignore/add/remove/force/not_defined
  739. # Add or remove space before ':' in a Java/C++11 range-based 'for',
  740. # as in 'for (Type var <here> : expr)'.
  741. sp_before_for_colon = ignore # ignore/add/remove/force/not_defined
  742. # (D) Add or remove space between 'extern' and '(' as in 'extern <here> (C)'.
  743. sp_extern_paren = ignore # ignore/add/remove/force/not_defined
  744. # Add or remove space after the opening of a C++ comment, as in '// <here> A'.
  745. sp_cmt_cpp_start = add # ignore/add/remove/force/not_defined
  746. # remove space after the '//' and the pvs command '-V1234',
  747. # only works with sp_cmt_cpp_start set to add or force.
  748. sp_cmt_cpp_pvs = false # true/false
  749. # remove space after the '//' and the command 'lint',
  750. # only works with sp_cmt_cpp_start set to add or force.
  751. sp_cmt_cpp_lint = false # true/false
  752. # Add or remove space in a C++ region marker comment, as in '// <here> BEGIN'.
  753. # A region marker is defined as a comment which is not preceded by other text
  754. # (i.e. the comment is the first non-whitespace on the line), and which starts
  755. # with either 'BEGIN' or 'END'.
  756. #
  757. # Overrides sp_cmt_cpp_start.
  758. sp_cmt_cpp_region = ignore # ignore/add/remove/force/not_defined
  759. # If true, space added with sp_cmt_cpp_start will be added after Doxygen
  760. # sequences like '///', '///<', '//!' and '//!<'.
  761. sp_cmt_cpp_doxygen = true # true/false
  762. # If true, space added with sp_cmt_cpp_start will be added after Qt translator
  763. # or meta-data comments like '//:', '//=', and '//~'.
  764. sp_cmt_cpp_qttr = false # true/false
  765. # Add or remove space between #else or #endif and a trailing comment.
  766. sp_endif_cmt = add # ignore/add/remove/force/not_defined
  767. # Add or remove space after 'new', 'delete' and 'delete[]'.
  768. sp_after_new = ignore # ignore/add/remove/force/not_defined
  769. # Add or remove space between 'new' and '(' in 'new()'.
  770. sp_between_new_paren = ignore # ignore/add/remove/force/not_defined
  771. # Add or remove space between ')' and type in 'new(foo) BAR'.
  772. sp_after_newop_paren = ignore # ignore/add/remove/force/not_defined
  773. # Add or remove space inside parentheses of the new operator
  774. # as in 'new(foo) BAR'.
  775. sp_inside_newop_paren = ignore # ignore/add/remove/force/not_defined
  776. # Add or remove space after the open parenthesis of the new operator,
  777. # as in 'new(foo) BAR'.
  778. #
  779. # Overrides sp_inside_newop_paren.
  780. sp_inside_newop_paren_open = ignore # ignore/add/remove/force/not_defined
  781. # Add or remove space before the close parenthesis of the new operator,
  782. # as in 'new(foo) BAR'.
  783. #
  784. # Overrides sp_inside_newop_paren.
  785. sp_inside_newop_paren_close = ignore # ignore/add/remove/force/not_defined
  786. # Add or remove space before a trailing comment.
  787. sp_before_tr_cmt = ignore # ignore/add/remove/force/not_defined
  788. # Number of spaces before a trailing comment.
  789. sp_num_before_tr_cmt = 0 # unsigned number
  790. # Add or remove space before an embedded comment.
  791. #
  792. # Default: force
  793. sp_before_emb_cmt = force # ignore/add/remove/force/not_defined
  794. # Number of spaces before an embedded comment.
  795. #
  796. # Default: 1
  797. sp_num_before_emb_cmt = 1 # unsigned number
  798. # Add or remove space after an embedded comment.
  799. #
  800. # Default: force
  801. sp_after_emb_cmt = force # ignore/add/remove/force/not_defined
  802. # Number of spaces after an embedded comment.
  803. #
  804. # Default: 1
  805. sp_num_after_emb_cmt = 1 # unsigned number
  806. # (Java) Add or remove space between an annotation and the open parenthesis.
  807. sp_annotation_paren = ignore # ignore/add/remove/force/not_defined
  808. # If true, vbrace tokens are dropped to the previous token and skipped.
  809. sp_skip_vbrace_tokens = false # true/false
  810. # Add or remove space after 'noexcept'.
  811. sp_after_noexcept = ignore # ignore/add/remove/force/not_defined
  812. # Add or remove space after '_'.
  813. sp_vala_after_translation = ignore # ignore/add/remove/force/not_defined
  814. # If true, a <TAB> is inserted after #define.
  815. force_tab_after_define = false # true/false
  816. #
  817. # Indenting options
  818. #
  819. # The number of columns to indent per level. Usually 2, 3, 4, or 8.
  820. #
  821. # Default: 8
  822. indent_columns = 2 # unsigned number
  823. # Whether to ignore indent for the first continuation line. Subsequent
  824. # continuation lines will still be indented to match the first.
  825. indent_ignore_first_continue = false # true/false
  826. # The continuation indent. If non-zero, this overrides the indent of '(', '['
  827. # and '=' continuation indents. Negative values are OK; negative value is
  828. # absolute and not increased for each '(' or '[' level.
  829. #
  830. # For FreeBSD, this is set to 4.
  831. # Requires indent_ignore_first_continue=false.
  832. indent_continue = 0 # number
  833. # The continuation indent, only for class header line(s). If non-zero, this
  834. # overrides the indent of 'class' continuation indents.
  835. # Requires indent_ignore_first_continue=false.
  836. indent_continue_class_head = 0 # unsigned number
  837. # Whether to indent empty lines (i.e. lines which contain only spaces before
  838. # the newline character).
  839. indent_single_newlines = false # true/false
  840. # The continuation indent for func_*_param if they are true. If non-zero, this
  841. # overrides the indent.
  842. indent_param = 0 # unsigned number
  843. # How to use tabs when indenting code.
  844. #
  845. # 0: Spaces only
  846. # 1: Indent with tabs to brace level, align with spaces (default)
  847. # 2: Indent and align with tabs, using spaces when not on a tabstop
  848. #
  849. # Default: 1
  850. indent_with_tabs = 0 # unsigned number
  851. # Whether to indent comments that are not at a brace level with tabs on a
  852. # tabstop. Requires indent_with_tabs=2. If false, will use spaces.
  853. indent_cmt_with_tabs = false # true/false
  854. # Whether to indent strings broken by '\' so that they line up.
  855. indent_align_string = false # true/false
  856. # The number of spaces to indent multi-line XML strings.
  857. # Requires indent_align_string=true.
  858. indent_xml_string = 0 # unsigned number
  859. # Spaces to indent '{' from level.
  860. indent_brace = 0 # unsigned number
  861. # Whether braces are indented to the body level.
  862. indent_braces = false # true/false
  863. # Whether to disable indenting function braces if indent_braces=true.
  864. indent_braces_no_func = false # true/false
  865. # Whether to disable indenting class braces if indent_braces=true.
  866. indent_braces_no_class = false # true/false
  867. # Whether to disable indenting struct braces if indent_braces=true.
  868. indent_braces_no_struct = false # true/false
  869. # Whether to indent based on the size of the brace parent,
  870. # i.e. 'if' => 3 spaces, 'for' => 4 spaces, etc.
  871. indent_brace_parent = false # true/false
  872. # Whether to indent based on the open parenthesis instead of the open brace
  873. # in '({\n'.
  874. indent_paren_open_brace = false # true/false
  875. # (C#) Whether to indent the brace of a C# delegate by another level.
  876. indent_cs_delegate_brace = false # true/false
  877. # (C#) Whether to indent a C# delegate (to handle delegates with no brace) by
  878. # another level.
  879. indent_cs_delegate_body = false # true/false
  880. # Whether to indent the body of a 'namespace'.
  881. indent_namespace = false # true/false
  882. # Whether to indent only the first namespace, and not any nested namespaces.
  883. # Requires indent_namespace=true.
  884. indent_namespace_single_indent = false # true/false
  885. # The number of spaces to indent a namespace block.
  886. # If set to zero, use the value indent_columns
  887. indent_namespace_level = 0 # unsigned number
  888. # If the body of the namespace is longer than this number, it won't be
  889. # indented. Requires indent_namespace=true. 0 means no limit.
  890. indent_namespace_limit = 0 # unsigned number
  891. # Whether to indent only in inner namespaces (nested in other namespaces).
  892. # Requires indent_namespace=true.
  893. indent_namespace_inner_only = false # true/false
  894. # Whether the 'extern "C"' body is indented.
  895. indent_extern = false # true/false
  896. # Whether the 'class' body is indented.
  897. indent_class = true # true/false
  898. # Whether to ignore indent for the leading base class colon.
  899. indent_ignore_before_class_colon = false # true/false
  900. # Additional indent before the leading base class colon.
  901. # Negative values decrease indent down to the first column.
  902. # Requires indent_ignore_before_class_colon=false and a newline break before
  903. # the colon (see pos_class_colon and nl_class_colon)
  904. indent_before_class_colon = 0 # number
  905. # Whether to indent the stuff after a leading base class colon.
  906. indent_class_colon = false # true/false
  907. # Whether to indent based on a class colon instead of the stuff after the
  908. # colon. Requires indent_class_colon=true.
  909. indent_class_on_colon = false # true/false
  910. # Whether to ignore indent for a leading class initializer colon.
  911. indent_ignore_before_constr_colon = false # true/false
  912. # Whether to indent the stuff after a leading class initializer colon.
  913. indent_constr_colon = false # true/false
  914. # Virtual indent from the ':' for leading member initializers.
  915. #
  916. # Default: 2
  917. indent_ctor_init_leading = 2 # unsigned number
  918. # Virtual indent from the ':' for following member initializers.
  919. #
  920. # Default: 2
  921. indent_ctor_init_following = 2 # unsigned number
  922. # Additional indent for constructor initializer list.
  923. # Negative values decrease indent down to the first column.
  924. indent_ctor_init = 0 # number
  925. # Whether to indent 'if' following 'else' as a new block under the 'else'.
  926. # If false, 'else\nif' is treated as 'else if' for indenting purposes.
  927. indent_else_if = false # true/false
  928. # Amount to indent variable declarations after a open brace.
  929. #
  930. # <0: Relative
  931. # >=0: Absolute
  932. indent_var_def_blk = 0 # number
  933. # Whether to indent continued variable declarations instead of aligning.
  934. indent_var_def_cont = false # true/false
  935. # How to indent continued shift expressions ('<<' and '>>').
  936. # Set align_left_shift=false when using this.
  937. # 0: Align shift operators instead of indenting them (default)
  938. # 1: Indent by one level
  939. # -1: Preserve original indentation
  940. indent_shift = 0 # number
  941. # Whether to force indentation of function definitions to start in column 1.
  942. indent_func_def_force_col1 = false # true/false
  943. # Whether to indent continued function call parameters one indent level,
  944. # rather than aligning parameters under the open parenthesis.
  945. indent_func_call_param = true # true/false
  946. # Whether to indent continued function definition parameters one indent level,
  947. # rather than aligning parameters under the open parenthesis.
  948. indent_func_def_param = true # true/false
  949. # for function definitions, only if indent_func_def_param is false
  950. # Allows to align params when appropriate and indent them when not
  951. # behave as if it was true if paren position is more than this value
  952. # if paren position is more than the option value
  953. indent_func_def_param_paren_pos_threshold = 0 # unsigned number
  954. # Whether to indent continued function call prototype one indent level,
  955. # rather than aligning parameters under the open parenthesis.
  956. indent_func_proto_param = false # true/false
  957. # Whether to indent continued function call declaration one indent level,
  958. # rather than aligning parameters under the open parenthesis.
  959. indent_func_class_param = false # true/false
  960. # Whether to indent continued class variable constructors one indent level,
  961. # rather than aligning parameters under the open parenthesis.
  962. indent_func_ctor_var_param = false # true/false
  963. # Whether to indent continued template parameter list one indent level,
  964. # rather than aligning parameters under the open parenthesis.
  965. indent_template_param = false # true/false
  966. # Double the indent for indent_func_xxx_param options.
  967. # Use both values of the options indent_columns and indent_param.
  968. indent_func_param_double = false # true/false
  969. # Indentation column for standalone 'const' qualifier on a function
  970. # prototype.
  971. indent_func_const = 0 # unsigned number
  972. # Indentation column for standalone 'throw' qualifier on a function
  973. # prototype.
  974. indent_func_throw = 0 # unsigned number
  975. # How to indent within a macro followed by a brace on the same line
  976. # This allows reducing the indent in macros that have (for example)
  977. # `do { ... } while (0)` blocks bracketing them.
  978. #
  979. # true: add an indent for the brace on the same line as the macro
  980. # false: do not add an indent for the brace on the same line as the macro
  981. #
  982. # Default: true
  983. indent_macro_brace = true # true/false
  984. # The number of spaces to indent a continued '->' or '.'.
  985. # Usually set to 0, 1, or indent_columns.
  986. indent_member = 0 # unsigned number
  987. # Whether lines broken at '.' or '->' should be indented by a single indent.
  988. # The indent_member option will not be effective if this is set to true.
  989. indent_member_single = false # true/false
  990. # Spaces to indent single line ('//') comments on lines before code.
  991. indent_single_line_comments_before = 0 # unsigned number
  992. # Spaces to indent single line ('//') comments on lines after code.
  993. indent_single_line_comments_after = 0 # unsigned number
  994. # When opening a paren for a control statement (if, for, while, etc), increase
  995. # the indent level by this value. Negative values decrease the indent level.
  996. indent_sparen_extra = 0 # number
  997. # Whether to indent trailing single line ('//') comments relative to the code
  998. # instead of trying to keep the same absolute column.
  999. indent_relative_single_line_comments = false # true/false
  1000. # Spaces to indent 'case' from 'switch'. Usually 0 or indent_columns.
  1001. # It might be wise to choose the same value for the option indent_case_brace.
  1002. indent_switch_case = 2 # unsigned number
  1003. # Spaces to indent the body of a 'switch' before any 'case'.
  1004. # Usually the same as indent_columns or indent_switch_case.
  1005. indent_switch_body = 0 # unsigned number
  1006. # Whether to ignore indent for '{' following 'case'.
  1007. indent_ignore_case_brace = false # true/false
  1008. # Spaces to indent '{' from 'case'. By default, the brace will appear under
  1009. # the 'c' in case. Usually set to 0 or indent_columns. Negative values are OK.
  1010. # It might be wise to choose the same value for the option indent_switch_case.
  1011. indent_case_brace = 0 # number
  1012. # indent 'break' with 'case' from 'switch'.
  1013. indent_switch_break_with_case = false # true/false
  1014. # Whether to indent preprocessor statements inside of switch statements.
  1015. #
  1016. # Default: true
  1017. indent_switch_pp = true # true/false
  1018. # Spaces to shift the 'case' line, without affecting any other lines.
  1019. # Usually 0.
  1020. indent_case_shift = 0 # unsigned number
  1021. # Whether to align comments before 'case' with the 'case'.
  1022. #
  1023. # Default: true
  1024. indent_case_comment = true # true/false
  1025. # Whether to indent comments not found in first column.
  1026. #
  1027. # Default: true
  1028. indent_comment = true # true/false
  1029. # Whether to indent comments found in first column.
  1030. indent_col1_comment = true # true/false
  1031. # Whether to indent multi string literal in first column.
  1032. indent_col1_multi_string_literal = false # true/false
  1033. # Align comments on adjacent lines that are this many columns apart or less.
  1034. #
  1035. # Default: 3
  1036. indent_comment_align_thresh = 3 # unsigned number
  1037. # Whether to ignore indent for goto labels.
  1038. indent_ignore_label = false # true/false
  1039. # How to indent goto labels. Requires indent_ignore_label=false.
  1040. #
  1041. # >0: Absolute column where 1 is the leftmost column
  1042. # <=0: Subtract from brace indent
  1043. #
  1044. # Default: 1
  1045. indent_label = 1 # number
  1046. # How to indent access specifiers that are followed by a
  1047. # colon.
  1048. #
  1049. # >0: Absolute column where 1 is the leftmost column
  1050. # <=0: Subtract from brace indent
  1051. #
  1052. # Default: 1
  1053. indent_access_spec = 1 # number
  1054. # Whether to indent the code after an access specifier by one level.
  1055. # If true, this option forces 'indent_access_spec=0'.
  1056. indent_access_spec_body = false # true/false
  1057. # If an open parenthesis is followed by a newline, whether to indent the next
  1058. # line so that it lines up after the open parenthesis (not recommended).
  1059. indent_paren_nl = false # true/false
  1060. # How to indent a close parenthesis after a newline.
  1061. #
  1062. # 0: Indent to body level (default)
  1063. # 1: Align under the open parenthesis
  1064. # 2: Indent to the brace level
  1065. # -1: Preserve original indentation
  1066. indent_paren_close = 0 # number
  1067. # Whether to indent the open parenthesis of a function definition,
  1068. # if the parenthesis is on its own line.
  1069. indent_paren_after_func_def = false # true/false
  1070. # Whether to indent the open parenthesis of a function declaration,
  1071. # if the parenthesis is on its own line.
  1072. indent_paren_after_func_decl = false # true/false
  1073. # Whether to indent the open parenthesis of a function call,
  1074. # if the parenthesis is on its own line.
  1075. indent_paren_after_func_call = false # true/false
  1076. # How to indent a comma when inside braces.
  1077. # 0: Indent by one level (default)
  1078. # 1: Align under the open brace
  1079. # -1: Preserve original indentation
  1080. indent_comma_brace = 0 # number
  1081. # How to indent a comma when inside parentheses.
  1082. # 0: Indent by one level (default)
  1083. # 1: Align under the open parenthesis
  1084. # -1: Preserve original indentation
  1085. indent_comma_paren = 0 # number
  1086. # How to indent a Boolean operator when inside parentheses.
  1087. # 0: Indent by one level (default)
  1088. # 1: Align under the open parenthesis
  1089. # -1: Preserve original indentation
  1090. indent_bool_paren = 0 # number
  1091. # Whether to ignore the indentation of a Boolean operator when outside
  1092. # parentheses.
  1093. indent_ignore_bool = false # true/false
  1094. # Whether to ignore the indentation of an arithmetic operator.
  1095. indent_ignore_arith = false # true/false
  1096. # Whether to indent a semicolon when inside a for parenthesis.
  1097. # If true, aligns under the open for parenthesis.
  1098. indent_semicolon_for_paren = false # true/false
  1099. # Whether to ignore the indentation of a semicolon outside of a 'for'
  1100. # statement.
  1101. indent_ignore_semicolon = false # true/false
  1102. # Whether to align the first expression to following ones
  1103. # if indent_bool_paren=1.
  1104. indent_first_bool_expr = false # true/false
  1105. # Whether to align the first expression to following ones
  1106. # if indent_semicolon_for_paren=true.
  1107. indent_first_for_expr = false # true/false
  1108. # If an open square is followed by a newline, whether to indent the next line
  1109. # so that it lines up after the open square (not recommended).
  1110. indent_square_nl = false # true/false
  1111. # (ESQL/C) Whether to preserve the relative indent of 'EXEC SQL' bodies.
  1112. indent_preserve_sql = false # true/false
  1113. # Whether to ignore the indentation of an assignment operator.
  1114. indent_ignore_assign = false # true/false
  1115. # Whether to align continued statements at the '='. If false or if the '=' is
  1116. # followed by a newline, the next line is indent one tab.
  1117. #
  1118. # Default: true
  1119. indent_align_assign = false # true/false
  1120. # If true, the indentation of the chunks after a '=' sequence will be set at
  1121. # LHS token indentation column before '='.
  1122. indent_off_after_assign = false # true/false
  1123. # Whether to align continued statements at the '('. If false or the '(' is
  1124. # followed by a newline, the next line indent is one tab.
  1125. #
  1126. # Default: true
  1127. indent_align_paren = true # true/false
  1128. # (OC) Whether to indent Objective-C code inside message selectors.
  1129. indent_oc_inside_msg_sel = false # true/false
  1130. # (OC) Whether to indent Objective-C blocks at brace level instead of usual
  1131. # rules.
  1132. indent_oc_block = false # true/false
  1133. # (OC) Indent for Objective-C blocks in a message relative to the parameter
  1134. # name.
  1135. #
  1136. # =0: Use indent_oc_block rules
  1137. # >0: Use specified number of spaces to indent
  1138. indent_oc_block_msg = 0 # unsigned number
  1139. # (OC) Minimum indent for subsequent parameters
  1140. indent_oc_msg_colon = 0 # unsigned number
  1141. # (OC) Whether to prioritize aligning with initial colon (and stripping spaces
  1142. # from lines, if necessary).
  1143. #
  1144. # Default: true
  1145. indent_oc_msg_prioritize_first_colon = true # true/false
  1146. # (OC) Whether to indent blocks the way that Xcode does by default
  1147. # (from the keyword if the parameter is on its own line; otherwise, from the
  1148. # previous indentation level). Requires indent_oc_block_msg=true.
  1149. indent_oc_block_msg_xcode_style = false # true/false
  1150. # (OC) Whether to indent blocks from where the brace is, relative to a
  1151. # message keyword. Requires indent_oc_block_msg=true.
  1152. indent_oc_block_msg_from_keyword = false # true/false
  1153. # (OC) Whether to indent blocks from where the brace is, relative to a message
  1154. # colon. Requires indent_oc_block_msg=true.
  1155. indent_oc_block_msg_from_colon = false # true/false
  1156. # (OC) Whether to indent blocks from where the block caret is.
  1157. # Requires indent_oc_block_msg=true.
  1158. indent_oc_block_msg_from_caret = false # true/false
  1159. # (OC) Whether to indent blocks from where the brace caret is.
  1160. # Requires indent_oc_block_msg=true.
  1161. indent_oc_block_msg_from_brace = false # true/false
  1162. # When indenting after virtual brace open and newline add further spaces to
  1163. # reach this minimum indent.
  1164. indent_min_vbrace_open = 0 # unsigned number
  1165. # Whether to add further spaces after regular indent to reach next tabstop
  1166. # when indenting after virtual brace open and newline.
  1167. indent_vbrace_open_on_tabstop = false # true/false
  1168. # How to indent after a brace followed by another token (not a newline).
  1169. # true: indent all contained lines to match the token
  1170. # false: indent all contained lines to match the brace
  1171. #
  1172. # Default: true
  1173. indent_token_after_brace = true # true/false
  1174. # Whether to indent the body of a C++11 lambda.
  1175. indent_cpp_lambda_body = false # true/false
  1176. # How to indent compound literals that are being returned.
  1177. # true: add both the indent from return & the compound literal open brace
  1178. # (i.e. 2 indent levels)
  1179. # false: only indent 1 level, don't add the indent for the open brace, only
  1180. # add the indent for the return.
  1181. #
  1182. # Default: true
  1183. indent_compound_literal_return = true # true/false
  1184. # (C#) Whether to indent a 'using' block if no braces are used.
  1185. #
  1186. # Default: true
  1187. indent_using_block = true # true/false
  1188. # How to indent the continuation of ternary operator.
  1189. #
  1190. # 0: Off (default)
  1191. # 1: When the `if_false` is a continuation, indent it under the `if_true` branch
  1192. # 2: When the `:` is a continuation, indent it under `?`
  1193. indent_ternary_operator = 0 # unsigned number
  1194. # Whether to indent the statements inside ternary operator.
  1195. indent_inside_ternary_operator = false # true/false
  1196. # If true, the indentation of the chunks after a `return` sequence will be set at return indentation column.
  1197. indent_off_after_return = false # true/false
  1198. # If true, the indentation of the chunks after a `return new` sequence will be set at return indentation column.
  1199. indent_off_after_return_new = false # true/false
  1200. # If true, the tokens after return are indented with regular single indentation. By default (false) the indentation is after the return token.
  1201. indent_single_after_return = false # true/false
  1202. # Whether to ignore indent and alignment for 'asm' blocks (i.e. assume they
  1203. # have their own indentation).
  1204. indent_ignore_asm_block = false # true/false
  1205. # Don't indent the close parenthesis of a function definition,
  1206. # if the parenthesis is on its own line.
  1207. donot_indent_func_def_close_paren = false # true/false
  1208. #
  1209. # Newline adding and removing options
  1210. #
  1211. # Whether to collapse empty blocks between '{' and '}' except for functions.
  1212. # Use nl_collapse_empty_body_functions to specify how empty function braces
  1213. # should be formatted.
  1214. nl_collapse_empty_body = false # true/false
  1215. # Whether to collapse empty blocks between '{' and '}' for functions only.
  1216. # If true, overrides nl_inside_empty_func.
  1217. nl_collapse_empty_body_functions = false # true/false
  1218. # Don't split one-line braced assignments, as in 'foo_t f = { 1, 2 };'.
  1219. nl_assign_leave_one_liners = true # true/false
  1220. # Don't split one-line braced statements inside a 'class xx { }' body.
  1221. nl_class_leave_one_liners = true # true/false
  1222. # Don't split one-line enums, as in 'enum foo { BAR = 15 };'
  1223. nl_enum_leave_one_liners = true # true/false
  1224. # Don't split one-line get or set functions.
  1225. nl_getset_leave_one_liners = true # true/false
  1226. # (C#) Don't split one-line property get or set functions.
  1227. nl_cs_property_leave_one_liners = false # true/false
  1228. # Don't split one-line function definitions, as in 'int foo() { return 0; }'.
  1229. # might modify nl_func_type_name
  1230. nl_func_leave_one_liners = true # true/false
  1231. # Don't split one-line C++11 lambdas, as in '[]() { return 0; }'.
  1232. nl_cpp_lambda_leave_one_liners = false # true/false
  1233. # Don't split one-line if/else statements, as in 'if(...) b++;'.
  1234. nl_if_leave_one_liners = true # true/false
  1235. # Don't split one-line while statements, as in 'while(...) b++;'.
  1236. nl_while_leave_one_liners = false # true/false
  1237. # Don't split one-line do statements, as in 'do { b++; } while(...);'.
  1238. nl_do_leave_one_liners = true # true/false
  1239. # Don't split one-line for statements, as in 'for(...) b++;'.
  1240. nl_for_leave_one_liners = false # true/false
  1241. # (OC) Don't split one-line Objective-C messages.
  1242. nl_oc_msg_leave_one_liner = false # true/false
  1243. # (OC) Add or remove newline between method declaration and '{'.
  1244. nl_oc_mdef_brace = ignore # ignore/add/remove/force/not_defined
  1245. # (OC) Add or remove newline between Objective-C block signature and '{'.
  1246. nl_oc_block_brace = ignore # ignore/add/remove/force/not_defined
  1247. # (OC) Add or remove blank line before '@interface' statement.
  1248. nl_oc_before_interface = ignore # ignore/add/remove/force/not_defined
  1249. # (OC) Add or remove blank line before '@implementation' statement.
  1250. nl_oc_before_implementation = ignore # ignore/add/remove/force/not_defined
  1251. # (OC) Add or remove blank line before '@end' statement.
  1252. nl_oc_before_end = ignore # ignore/add/remove/force/not_defined
  1253. # (OC) Add or remove newline between '@interface' and '{'.
  1254. nl_oc_interface_brace = ignore # ignore/add/remove/force/not_defined
  1255. # (OC) Add or remove newline between '@implementation' and '{'.
  1256. nl_oc_implementation_brace = ignore # ignore/add/remove/force/not_defined
  1257. # Add or remove newlines at the start of the file.
  1258. nl_start_of_file = ignore # ignore/add/remove/force/not_defined
  1259. # The minimum number of newlines at the start of the file (only used if
  1260. # nl_start_of_file is 'add' or 'force').
  1261. nl_start_of_file_min = 0 # unsigned number
  1262. # Add or remove newline at the end of the file.
  1263. nl_end_of_file = add # ignore/add/remove/force/not_defined
  1264. # The minimum number of newlines at the end of the file (only used if
  1265. # nl_end_of_file is 'add' or 'force').
  1266. nl_end_of_file_min = 0 # unsigned number
  1267. # Add or remove newline between '=' and '{'.
  1268. nl_assign_brace = remove # ignore/add/remove/force/not_defined
  1269. # (D) Add or remove newline between '=' and '['.
  1270. nl_assign_square = remove # ignore/add/remove/force/not_defined
  1271. # Add or remove newline between '[]' and '{'.
  1272. nl_tsquare_brace = ignore # ignore/add/remove/force/not_defined
  1273. # (D) Add or remove newline after '= ['. Will also affect the newline before
  1274. # the ']'.
  1275. nl_after_square_assign = ignore # ignore/add/remove/force/not_defined
  1276. # Add or remove newline between a function call's ')' and '{', as in
  1277. # 'list_for_each(item, &list) { }'.
  1278. nl_fcall_brace = ignore # ignore/add/remove/force/not_defined
  1279. # Add or remove newline between 'enum' and '{'.
  1280. nl_enum_brace = remove # ignore/add/remove/force/not_defined
  1281. # Add or remove newline between 'enum' and 'class'.
  1282. nl_enum_class = ignore # ignore/add/remove/force/not_defined
  1283. # Add or remove newline between 'enum class' and the identifier.
  1284. nl_enum_class_identifier = ignore # ignore/add/remove/force/not_defined
  1285. # Add or remove newline between 'enum class' type and ':'.
  1286. nl_enum_identifier_colon = ignore # ignore/add/remove/force/not_defined
  1287. # Add or remove newline between 'enum class identifier :' and type.
  1288. nl_enum_colon_type = ignore # ignore/add/remove/force/not_defined
  1289. # Add or remove newline between 'struct and '{'.
  1290. nl_struct_brace = remove # ignore/add/remove/force/not_defined
  1291. # Add or remove newline between 'union' and '{'.
  1292. nl_union_brace = remove # ignore/add/remove/force/not_defined
  1293. # Add or remove newline between 'if' and '{'.
  1294. nl_if_brace = remove # ignore/add/remove/force/not_defined
  1295. # Add or remove newline between '}' and 'else'.
  1296. nl_brace_else = add # ignore/add/remove/force/not_defined
  1297. # Add or remove newline between 'else if' and '{'. If set to ignore,
  1298. # nl_if_brace is used instead.
  1299. nl_elseif_brace = ignore # ignore/add/remove/force/not_defined
  1300. # Add or remove newline between 'else' and '{'.
  1301. nl_else_brace = remove # ignore/add/remove/force/not_defined
  1302. # Add or remove newline between 'else' and 'if'.
  1303. nl_else_if = ignore # ignore/add/remove/force/not_defined
  1304. # Add or remove newline before '{' opening brace
  1305. nl_before_opening_brace_func_class_def = remove # ignore/add/remove/force/not_defined
  1306. # Add or remove newline before 'if'/'else if' closing parenthesis.
  1307. nl_before_if_closing_paren = ignore # ignore/add/remove/force/not_defined
  1308. # Add or remove newline between '}' and 'finally'.
  1309. nl_brace_finally = ignore # ignore/add/remove/force/not_defined
  1310. # Add or remove newline between 'finally' and '{'.
  1311. nl_finally_brace = ignore # ignore/add/remove/force/not_defined
  1312. # Add or remove newline between 'try' and '{'.
  1313. nl_try_brace = ignore # ignore/add/remove/force/not_defined
  1314. # Add or remove newline between get/set and '{'.
  1315. nl_getset_brace = ignore # ignore/add/remove/force/not_defined
  1316. # Add or remove newline between 'for' and '{'.
  1317. nl_for_brace = remove # ignore/add/remove/force/not_defined
  1318. # Add or remove newline before the '{' of a 'catch' statement, as in
  1319. # 'catch (decl) <here> {'.
  1320. nl_catch_brace = ignore # ignore/add/remove/force/not_defined
  1321. # (OC) Add or remove newline before the '{' of a '@catch' statement, as in
  1322. # '@catch (decl) <here> {'. If set to ignore, nl_catch_brace is used.
  1323. nl_oc_catch_brace = ignore # ignore/add/remove/force/not_defined
  1324. # Add or remove newline between '}' and 'catch'.
  1325. nl_brace_catch = ignore # ignore/add/remove/force/not_defined
  1326. # (OC) Add or remove newline between '}' and '@catch'. If set to ignore,
  1327. # nl_brace_catch is used.
  1328. nl_oc_brace_catch = ignore # ignore/add/remove/force/not_defined
  1329. # Add or remove newline between '}' and ']'.
  1330. nl_brace_square = ignore # ignore/add/remove/force/not_defined
  1331. # Add or remove newline between '}' and ')' in a function invocation.
  1332. nl_brace_fparen = ignore # ignore/add/remove/force/not_defined
  1333. # Add or remove newline between 'while' and '{'.
  1334. nl_while_brace = remove # ignore/add/remove/force/not_defined
  1335. # (D) Add or remove newline between 'scope (x)' and '{'.
  1336. nl_scope_brace = ignore # ignore/add/remove/force/not_defined
  1337. # (D) Add or remove newline between 'unittest' and '{'.
  1338. nl_unittest_brace = ignore # ignore/add/remove/force/not_defined
  1339. # (D) Add or remove newline between 'version (x)' and '{'.
  1340. nl_version_brace = ignore # ignore/add/remove/force/not_defined
  1341. # (C#) Add or remove newline between 'using' and '{'.
  1342. nl_using_brace = ignore # ignore/add/remove/force/not_defined
  1343. # Add or remove newline between two open or close braces. Due to general
  1344. # newline/brace handling, REMOVE may not work.
  1345. nl_brace_brace = ignore # ignore/add/remove/force/not_defined
  1346. # Add or remove newline between 'do' and '{'.
  1347. nl_do_brace = remove # ignore/add/remove/force/not_defined
  1348. # Add or remove newline between '}' and 'while' of 'do' statement.
  1349. nl_brace_while = ignore # ignore/add/remove/force/not_defined
  1350. # Add or remove newline between 'switch' and '{'.
  1351. nl_switch_brace = remove # ignore/add/remove/force/not_defined
  1352. # Add or remove newline between 'synchronized' and '{'.
  1353. nl_synchronized_brace = ignore # ignore/add/remove/force/not_defined
  1354. # Add a newline between ')' and '{' if the ')' is on a different line than the
  1355. # if/for/etc.
  1356. #
  1357. # Overrides nl_for_brace, nl_if_brace, nl_switch_brace, nl_while_switch and
  1358. # nl_catch_brace.
  1359. nl_multi_line_cond = false # true/false
  1360. # Add a newline after '(' if an if/for/while/switch condition spans multiple
  1361. # lines
  1362. nl_multi_line_sparen_open = ignore # ignore/add/remove/force/not_defined
  1363. # Add a newline before ')' if an if/for/while/switch condition spans multiple
  1364. # lines. Overrides nl_before_if_closing_paren if both are specified.
  1365. nl_multi_line_sparen_close = add # ignore/add/remove/force/not_defined
  1366. # Force a newline in a define after the macro name for multi-line defines.
  1367. nl_multi_line_define = false # true/false
  1368. # Whether to add a newline before 'case', and a blank line before a 'case'
  1369. # statement that follows a ';' or '}'.
  1370. nl_before_case = false # true/false
  1371. # Whether to add a newline after a 'case' statement.
  1372. nl_after_case = false # true/false
  1373. # Add or remove newline between a case ':' and '{'.
  1374. #
  1375. # Overrides nl_after_case.
  1376. nl_case_colon_brace = remove # ignore/add/remove/force/not_defined
  1377. # Add or remove newline between ')' and 'throw'.
  1378. nl_before_throw = ignore # ignore/add/remove/force/not_defined
  1379. # Add or remove newline between 'namespace' and '{'.
  1380. nl_namespace_brace = ignore # ignore/add/remove/force/not_defined
  1381. # Add or remove newline after 'template<...>' of a template class.
  1382. nl_template_class = ignore # ignore/add/remove/force/not_defined
  1383. # Add or remove newline after 'template<...>' of a template class declaration.
  1384. #
  1385. # Overrides nl_template_class.
  1386. nl_template_class_decl = ignore # ignore/add/remove/force/not_defined
  1387. # Add or remove newline after 'template<>' of a specialized class declaration.
  1388. #
  1389. # Overrides nl_template_class_decl.
  1390. nl_template_class_decl_special = ignore # ignore/add/remove/force/not_defined
  1391. # Add or remove newline after 'template<...>' of a template class definition.
  1392. #
  1393. # Overrides nl_template_class.
  1394. nl_template_class_def = ignore # ignore/add/remove/force/not_defined
  1395. # Add or remove newline after 'template<>' of a specialized class definition.
  1396. #
  1397. # Overrides nl_template_class_def.
  1398. nl_template_class_def_special = ignore # ignore/add/remove/force/not_defined
  1399. # Add or remove newline after 'template<...>' of a template function.
  1400. nl_template_func = ignore # ignore/add/remove/force/not_defined
  1401. # Add or remove newline after 'template<...>' of a template function
  1402. # declaration.
  1403. #
  1404. # Overrides nl_template_func.
  1405. nl_template_func_decl = ignore # ignore/add/remove/force/not_defined
  1406. # Add or remove newline after 'template<>' of a specialized function
  1407. # declaration.
  1408. #
  1409. # Overrides nl_template_func_decl.
  1410. nl_template_func_decl_special = ignore # ignore/add/remove/force/not_defined
  1411. # Add or remove newline after 'template<...>' of a template function
  1412. # definition.
  1413. #
  1414. # Overrides nl_template_func.
  1415. nl_template_func_def = ignore # ignore/add/remove/force/not_defined
  1416. # Add or remove newline after 'template<>' of a specialized function
  1417. # definition.
  1418. #
  1419. # Overrides nl_template_func_def.
  1420. nl_template_func_def_special = ignore # ignore/add/remove/force/not_defined
  1421. # Add or remove newline after 'template<...>' of a template variable.
  1422. nl_template_var = ignore # ignore/add/remove/force/not_defined
  1423. # Add or remove newline between 'template<...>' and 'using' of a templated
  1424. # type alias.
  1425. nl_template_using = ignore # ignore/add/remove/force/not_defined
  1426. # Add or remove newline between 'class' and '{'.
  1427. nl_class_brace = remove # ignore/add/remove/force/not_defined
  1428. # Add or remove newline before or after (depending on pos_class_comma,
  1429. # may not be IGNORE) each',' in the base class list.
  1430. nl_class_init_args = ignore # ignore/add/remove/force/not_defined
  1431. # Add or remove newline after each ',' in the constructor member
  1432. # initialization. Related to nl_constr_colon, pos_constr_colon and
  1433. # pos_constr_comma.
  1434. nl_constr_init_args = ignore # ignore/add/remove/force/not_defined
  1435. # Add or remove newline before first element, after comma, and after last
  1436. # element, in 'enum'.
  1437. nl_enum_own_lines = ignore # ignore/add/remove/force/not_defined
  1438. # Add or remove newline between return type and function name in a function
  1439. # definition.
  1440. # might be modified by nl_func_leave_one_liners
  1441. nl_func_type_name = ignore # ignore/add/remove/force/not_defined
  1442. # Add or remove newline between return type and function name inside a class
  1443. # definition. If set to ignore, nl_func_type_name or nl_func_proto_type_name
  1444. # is used instead.
  1445. nl_func_type_name_class = ignore # ignore/add/remove/force/not_defined
  1446. # Add or remove newline between class specification and '::'
  1447. # in 'void A::f() { }'. Only appears in separate member implementation (does
  1448. # not appear with in-line implementation).
  1449. nl_func_class_scope = ignore # ignore/add/remove/force/not_defined
  1450. # Add or remove newline between function scope and name, as in
  1451. # 'void A :: <here> f() { }'.
  1452. nl_func_scope_name = ignore # ignore/add/remove/force/not_defined
  1453. # Add or remove newline between return type and function name in a prototype.
  1454. nl_func_proto_type_name = ignore # ignore/add/remove/force/not_defined
  1455. # Add or remove newline between a function name and the opening '(' in the
  1456. # declaration.
  1457. nl_func_paren = ignore # ignore/add/remove/force/not_defined
  1458. # Overrides nl_func_paren for functions with no parameters.
  1459. nl_func_paren_empty = ignore # ignore/add/remove/force/not_defined
  1460. # Add or remove newline between a function name and the opening '(' in the
  1461. # definition.
  1462. nl_func_def_paren = ignore # ignore/add/remove/force/not_defined
  1463. # Overrides nl_func_def_paren for functions with no parameters.
  1464. nl_func_def_paren_empty = ignore # ignore/add/remove/force/not_defined
  1465. # Add or remove newline between a function name and the opening '(' in the
  1466. # call.
  1467. nl_func_call_paren = ignore # ignore/add/remove/force/not_defined
  1468. # Overrides nl_func_call_paren for functions with no parameters.
  1469. nl_func_call_paren_empty = ignore # ignore/add/remove/force/not_defined
  1470. # Add or remove newline after '(' in a function declaration.
  1471. nl_func_decl_start = ignore # ignore/add/remove/force/not_defined
  1472. # Add or remove newline after '(' in a function definition.
  1473. nl_func_def_start = ignore # ignore/add/remove/force/not_defined
  1474. # Overrides nl_func_decl_start when there is only one parameter.
  1475. nl_func_decl_start_single = ignore # ignore/add/remove/force/not_defined
  1476. # Overrides nl_func_def_start when there is only one parameter.
  1477. nl_func_def_start_single = ignore # ignore/add/remove/force/not_defined
  1478. # Whether to add a newline after '(' in a function declaration if '(' and ')'
  1479. # are in different lines. If false, nl_func_decl_start is used instead.
  1480. nl_func_decl_start_multi_line = false # true/false
  1481. # Whether to add a newline after '(' in a function definition if '(' and ')'
  1482. # are in different lines. If false, nl_func_def_start is used instead.
  1483. nl_func_def_start_multi_line = false # true/false
  1484. # Add or remove newline after each ',' in a function declaration.
  1485. nl_func_decl_args = ignore # ignore/add/remove/force/not_defined
  1486. # Add or remove newline after each ',' in a function definition.
  1487. nl_func_def_args = ignore # ignore/add/remove/force/not_defined
  1488. # Add or remove newline after each ',' in a function call.
  1489. nl_func_call_args = ignore # ignore/add/remove/force/not_defined
  1490. # Whether to add a newline after each ',' in a function declaration if '('
  1491. # and ')' are in different lines. If false, nl_func_decl_args is used instead.
  1492. nl_func_decl_args_multi_line = false # true/false
  1493. # Whether to add a newline after each ',' in a function definition if '('
  1494. # and ')' are in different lines. If false, nl_func_def_args is used instead.
  1495. nl_func_def_args_multi_line = false # true/false
  1496. # Add or remove newline before the ')' in a function declaration.
  1497. nl_func_decl_end = ignore # ignore/add/remove/force/not_defined
  1498. # Add or remove newline before the ')' in a function definition.
  1499. nl_func_def_end = ignore # ignore/add/remove/force/not_defined
  1500. # Overrides nl_func_decl_end when there is only one parameter.
  1501. nl_func_decl_end_single = ignore # ignore/add/remove/force/not_defined
  1502. # Overrides nl_func_def_end when there is only one parameter.
  1503. nl_func_def_end_single = ignore # ignore/add/remove/force/not_defined
  1504. # Whether to add a newline before ')' in a function declaration if '(' and ')'
  1505. # are in different lines. If false, nl_func_decl_end is used instead.
  1506. nl_func_decl_end_multi_line = false # true/false
  1507. # Whether to add a newline before ')' in a function definition if '(' and ')'
  1508. # are in different lines. If false, nl_func_def_end is used instead.
  1509. nl_func_def_end_multi_line = false # true/false
  1510. # Add or remove newline between '()' in a function declaration.
  1511. nl_func_decl_empty = ignore # ignore/add/remove/force/not_defined
  1512. # Add or remove newline between '()' in a function definition.
  1513. nl_func_def_empty = ignore # ignore/add/remove/force/not_defined
  1514. # Add or remove newline between '()' in a function call.
  1515. nl_func_call_empty = ignore # ignore/add/remove/force/not_defined
  1516. # Whether to add a newline after '(' in a function call,
  1517. # has preference over nl_func_call_start_multi_line.
  1518. nl_func_call_start = ignore # ignore/add/remove/force/not_defined
  1519. # Whether to add a newline before ')' in a function call.
  1520. nl_func_call_end = ignore # ignore/add/remove/force/not_defined
  1521. # Whether to add a newline after '(' in a function call if '(' and ')' are in
  1522. # different lines.
  1523. nl_func_call_start_multi_line = false # true/false
  1524. # Whether to add a newline after each ',' in a function call if '(' and ')'
  1525. # are in different lines.
  1526. nl_func_call_args_multi_line = false # true/false
  1527. # Whether to add a newline before ')' in a function call if '(' and ')' are in
  1528. # different lines.
  1529. nl_func_call_end_multi_line = false # true/false
  1530. # Whether to respect nl_func_call_XXX option in case of closure args.
  1531. nl_func_call_args_multi_line_ignore_closures = false # true/false
  1532. # Whether to add a newline after '<' of a template parameter list.
  1533. nl_template_start = false # true/false
  1534. # Whether to add a newline after each ',' in a template parameter list.
  1535. nl_template_args = false # true/false
  1536. # Whether to add a newline before '>' of a template parameter list.
  1537. nl_template_end = false # true/false
  1538. # (OC) Whether to put each Objective-C message parameter on a separate line.
  1539. # See nl_oc_msg_leave_one_liner.
  1540. nl_oc_msg_args = false # true/false
  1541. # (OC) Minimum number of Objective-C message parameters before applying nl_oc_msg_args.
  1542. nl_oc_msg_args_min_params = 0 # unsigned number
  1543. # (OC) Max code width of Objective-C message before applying nl_oc_msg_args.
  1544. nl_oc_msg_args_max_code_width = 0 # unsigned number
  1545. # Add or remove newline between function signature and '{'.
  1546. nl_fdef_brace = remove # ignore/add/remove/force/not_defined
  1547. # Add or remove newline between function signature and '{',
  1548. # if signature ends with ')'. Overrides nl_fdef_brace.
  1549. nl_fdef_brace_cond = ignore # ignore/add/remove/force/not_defined
  1550. # Add or remove newline between C++11 lambda signature and '{'.
  1551. nl_cpp_ldef_brace = ignore # ignore/add/remove/force/not_defined
  1552. # Add or remove newline between 'return' and the return expression.
  1553. nl_return_expr = ignore # ignore/add/remove/force/not_defined
  1554. # Add or remove newline between 'throw' and the throw expression.
  1555. nl_throw_expr = ignore # ignore/add/remove/force/not_defined
  1556. # Whether to add a newline after semicolons, except in 'for' statements.
  1557. nl_after_semicolon = false # true/false
  1558. # (Java) Add or remove newline between the ')' and '{{' of the double brace
  1559. # initializer.
  1560. nl_paren_dbrace_open = ignore # ignore/add/remove/force/not_defined
  1561. # Whether to add a newline after the type in an unnamed temporary
  1562. # direct-list-initialization, better:
  1563. # before a direct-list-initialization.
  1564. nl_type_brace_init_lst = ignore # ignore/add/remove/force/not_defined
  1565. # Whether to add a newline after the open brace in an unnamed temporary
  1566. # direct-list-initialization.
  1567. nl_type_brace_init_lst_open = ignore # ignore/add/remove/force/not_defined
  1568. # Whether to add a newline before the close brace in an unnamed temporary
  1569. # direct-list-initialization.
  1570. nl_type_brace_init_lst_close = ignore # ignore/add/remove/force/not_defined
  1571. # Whether to add a newline before '{'.
  1572. nl_before_brace_open = false # true/false
  1573. # Whether to add a newline after '{'.
  1574. nl_after_brace_open = true # true/false
  1575. # Whether to add a newline between the open brace and a trailing single-line
  1576. # comment. Requires nl_after_brace_open=true.
  1577. nl_after_brace_open_cmt = false # true/false
  1578. # Whether to add a newline after a virtual brace open with a non-empty body.
  1579. # These occur in un-braced if/while/do/for statement bodies.
  1580. nl_after_vbrace_open = false # true/false
  1581. # Whether to add a newline after a virtual brace open with an empty body.
  1582. # These occur in un-braced if/while/do/for statement bodies.
  1583. nl_after_vbrace_open_empty = false # true/false
  1584. # Whether to add a newline after '}'. Does not apply if followed by a
  1585. # necessary ';'.
  1586. nl_after_brace_close = true # true/false
  1587. # Whether to add a newline after a virtual brace close,
  1588. # as in 'if (foo) a++; <here> return;'.
  1589. nl_after_vbrace_close = false # true/false
  1590. # Add or remove newline between the close brace and identifier,
  1591. # as in 'struct { int a; } <here> b;'. Affects enumerations, unions and
  1592. # structures. If set to ignore, uses nl_after_brace_close.
  1593. nl_brace_struct_var = ignore # ignore/add/remove/force/not_defined
  1594. # Whether to alter newlines in '#define' macros.
  1595. nl_define_macro = false # true/false
  1596. # Whether to alter newlines between consecutive parenthesis closes. The number
  1597. # of closing parentheses in a line will depend on respective open parenthesis
  1598. # lines.
  1599. nl_squeeze_paren_close = false # true/false
  1600. # Whether to remove blanks after '#ifxx' and '#elxx', or before '#elxx' and
  1601. # '#endif'. Does not affect top-level #ifdefs.
  1602. nl_squeeze_ifdef = false # true/false
  1603. # Makes the nl_squeeze_ifdef option affect the top-level #ifdefs as well.
  1604. nl_squeeze_ifdef_top_level = false # true/false
  1605. # Add or remove blank line before 'if'.
  1606. nl_before_if = ignore # ignore/add/remove/force/not_defined
  1607. # Add or remove blank line after 'if' statement. Add/Force work only if the
  1608. # next token is not a closing brace.
  1609. nl_after_if = ignore # ignore/add/remove/force/not_defined
  1610. # Add or remove blank line before 'for'.
  1611. nl_before_for = ignore # ignore/add/remove/force/not_defined
  1612. # Add or remove blank line after 'for' statement.
  1613. nl_after_for = ignore # ignore/add/remove/force/not_defined
  1614. # Add or remove blank line before 'while'.
  1615. nl_before_while = ignore # ignore/add/remove/force/not_defined
  1616. # Add or remove blank line after 'while' statement.
  1617. nl_after_while = ignore # ignore/add/remove/force/not_defined
  1618. # Add or remove blank line before 'switch'.
  1619. nl_before_switch = ignore # ignore/add/remove/force/not_defined
  1620. # Add or remove blank line after 'switch' statement.
  1621. nl_after_switch = ignore # ignore/add/remove/force/not_defined
  1622. # Add or remove blank line before 'synchronized'.
  1623. nl_before_synchronized = ignore # ignore/add/remove/force/not_defined
  1624. # Add or remove blank line after 'synchronized' statement.
  1625. nl_after_synchronized = ignore # ignore/add/remove/force/not_defined
  1626. # Add or remove blank line before 'do'.
  1627. nl_before_do = ignore # ignore/add/remove/force/not_defined
  1628. # Add or remove blank line after 'do/while' statement.
  1629. nl_after_do = ignore # ignore/add/remove/force/not_defined
  1630. # Ignore nl_before_{if,for,switch,do,synchronized} if the control
  1631. # statement is immediately after a case statement.
  1632. # if nl_before_{if,for,switch,do} is set to remove, this option
  1633. # does nothing.
  1634. nl_before_ignore_after_case = false # true/false
  1635. # Whether to put a blank line before 'return' statements, unless after an open
  1636. # brace.
  1637. nl_before_return = false # true/false
  1638. # Whether to put a blank line after 'return' statements, unless followed by a
  1639. # close brace.
  1640. nl_after_return = false # true/false
  1641. # Whether to put a blank line before a member '.' or '->' operators.
  1642. nl_before_member = ignore # ignore/add/remove/force/not_defined
  1643. # (Java) Whether to put a blank line after a member '.' or '->' operators.
  1644. nl_after_member = ignore # ignore/add/remove/force/not_defined
  1645. # Whether to double-space commented-entries in 'struct'/'union'/'enum'.
  1646. nl_ds_struct_enum_cmt = false # true/false
  1647. # Whether to force a newline before '}' of a 'struct'/'union'/'enum'.
  1648. # (Lower priority than eat_blanks_before_close_brace.)
  1649. nl_ds_struct_enum_close_brace = false # true/false
  1650. # Add or remove newline before or after (depending on pos_class_colon) a class
  1651. # colon, as in 'class Foo <here> : <or here> public Bar'.
  1652. nl_class_colon = ignore # ignore/add/remove/force/not_defined
  1653. # Add or remove newline around a class constructor colon. The exact position
  1654. # depends on nl_constr_init_args, pos_constr_colon and pos_constr_comma.
  1655. nl_constr_colon = ignore # ignore/add/remove/force/not_defined
  1656. # Whether to collapse a two-line namespace, like 'namespace foo\n{ decl; }'
  1657. # into a single line. If true, prevents other brace newline rules from turning
  1658. # such code into four lines. If true, it also preserves one-liner namespaces.
  1659. nl_namespace_two_to_one_liner = false # true/false
  1660. # Whether to remove a newline in simple unbraced if statements, turning them
  1661. # into one-liners, as in 'if(b)\n i++;' => 'if(b) i++;'.
  1662. nl_create_if_one_liner = false # true/false
  1663. # Whether to remove a newline in simple unbraced for statements, turning them
  1664. # into one-liners, as in 'for (...)\n stmt;' => 'for (...) stmt;'.
  1665. nl_create_for_one_liner = true # true/false
  1666. # Whether to remove a newline in simple unbraced while statements, turning
  1667. # them into one-liners, as in 'while (expr)\n stmt;' => 'while (expr) stmt;'.
  1668. nl_create_while_one_liner = true # true/false
  1669. # Whether to collapse a function definition whose body (not counting braces)
  1670. # is only one line so that the entire definition (prototype, braces, body) is
  1671. # a single line.
  1672. nl_create_func_def_one_liner = false # true/false
  1673. # Whether to split one-line simple list definitions into three lines by
  1674. # adding newlines, as in 'int a[12] = { <here> 0 <here> };'.
  1675. nl_create_list_one_liner = false # true/false
  1676. # Whether to split one-line simple unbraced if statements into two lines by
  1677. # adding a newline, as in 'if(b) <here> i++;'.
  1678. nl_split_if_one_liner = false # true/false
  1679. # Whether to split one-line simple unbraced for statements into two lines by
  1680. # adding a newline, as in 'for (...) <here> stmt;'.
  1681. nl_split_for_one_liner = false # true/false
  1682. # Whether to split one-line simple unbraced while statements into two lines by
  1683. # adding a newline, as in 'while (expr) <here> stmt;'.
  1684. nl_split_while_one_liner = false # true/false
  1685. # Don't add a newline before a cpp-comment in a parameter list of a function
  1686. # call.
  1687. donot_add_nl_before_cpp_comment = false # true/false
  1688. #
  1689. # Blank line options
  1690. #
  1691. # The maximum number of consecutive newlines (3 = 2 blank lines).
  1692. nl_max = 0 # unsigned number
  1693. # The maximum number of consecutive newlines in a function.
  1694. nl_max_blank_in_func = 0 # unsigned number
  1695. # The number of newlines inside an empty function body.
  1696. # This option overrides eat_blanks_after_open_brace and
  1697. # eat_blanks_before_close_brace, but is ignored when
  1698. # nl_collapse_empty_body_functions=true
  1699. nl_inside_empty_func = 0 # unsigned number
  1700. # The number of newlines before a function prototype.
  1701. nl_before_func_body_proto = 0 # unsigned number
  1702. # The number of newlines before a multi-line function definition. Where
  1703. # applicable, this option is overridden with eat_blanks_after_open_brace=true
  1704. nl_before_func_body_def = 0 # unsigned number
  1705. # The number of newlines before a class constructor/destructor prototype.
  1706. nl_before_func_class_proto = 0 # unsigned number
  1707. # The number of newlines before a class constructor/destructor definition.
  1708. nl_before_func_class_def = 0 # unsigned number
  1709. # The number of newlines after a function prototype.
  1710. nl_after_func_proto = 0 # unsigned number
  1711. # The number of newlines after a function prototype, if not followed by
  1712. # another function prototype.
  1713. nl_after_func_proto_group = 0 # unsigned number
  1714. # The number of newlines after a class constructor/destructor prototype.
  1715. nl_after_func_class_proto = 0 # unsigned number
  1716. # The number of newlines after a class constructor/destructor prototype,
  1717. # if not followed by another constructor/destructor prototype.
  1718. nl_after_func_class_proto_group = 0 # unsigned number
  1719. # Whether one-line method definitions inside a class body should be treated
  1720. # as if they were prototypes for the purposes of adding newlines.
  1721. #
  1722. # Requires nl_class_leave_one_liners=true. Overrides nl_before_func_body_def
  1723. # and nl_before_func_class_def for one-liners.
  1724. nl_class_leave_one_liner_groups = false # true/false
  1725. # The number of newlines after '}' of a multi-line function body.
  1726. nl_after_func_body = 0 # unsigned number
  1727. # The number of newlines after '}' of a multi-line function body in a class
  1728. # declaration. Also affects class constructors/destructors.
  1729. #
  1730. # Overrides nl_after_func_body.
  1731. nl_after_func_body_class = 0 # unsigned number
  1732. # The number of newlines after '}' of a single line function body. Also
  1733. # affects class constructors/destructors.
  1734. #
  1735. # Overrides nl_after_func_body and nl_after_func_body_class.
  1736. nl_after_func_body_one_liner = 0 # unsigned number
  1737. # The number of newlines before a block of typedefs. If nl_after_access_spec
  1738. # is non-zero, that option takes precedence.
  1739. #
  1740. # 0: No change (default).
  1741. nl_typedef_blk_start = 0 # unsigned number
  1742. # The number of newlines after a block of typedefs.
  1743. #
  1744. # 0: No change (default).
  1745. nl_typedef_blk_end = 0 # unsigned number
  1746. # The maximum number of consecutive newlines within a block of typedefs.
  1747. #
  1748. # 0: No change (default).
  1749. nl_typedef_blk_in = 0 # unsigned number
  1750. # The minimum number of blank lines after a block of variable definitions
  1751. # at the top of a function body. If any preprocessor directives appear
  1752. # between the opening brace of the function and the variable block, then
  1753. # it is considered as not at the top of the function.Newlines are added
  1754. # before trailing preprocessor directives, if any exist.
  1755. #
  1756. # 0: No change (default).
  1757. nl_var_def_blk_end_func_top = 0 # unsigned number
  1758. # The minimum number of empty newlines before a block of variable definitions
  1759. # not at the top of a function body. If nl_after_access_spec is non-zero,
  1760. # that option takes precedence. Newlines are not added at the top of the
  1761. # file or just after an opening brace. Newlines are added above any
  1762. # preprocessor directives before the block.
  1763. #
  1764. # 0: No change (default).
  1765. nl_var_def_blk_start = 0 # unsigned number
  1766. # The minimum number of empty newlines after a block of variable definitions
  1767. # not at the top of a function body. Newlines are not added if the block
  1768. # is at the bottom of the file or just before a preprocessor directive.
  1769. #
  1770. # 0: No change (default).
  1771. nl_var_def_blk_end = 0 # unsigned number
  1772. # The maximum number of consecutive newlines within a block of variable
  1773. # definitions.
  1774. #
  1775. # 0: No change (default).
  1776. nl_var_def_blk_in = 0 # unsigned number
  1777. # The minimum number of newlines before a multi-line comment.
  1778. # Doesn't apply if after a brace open or another multi-line comment.
  1779. nl_before_block_comment = 0 # unsigned number
  1780. # The minimum number of newlines before a single-line C comment.
  1781. # Doesn't apply if after a brace open or other single-line C comments.
  1782. nl_before_c_comment = 0 # unsigned number
  1783. # The minimum number of newlines before a CPP comment.
  1784. # Doesn't apply if after a brace open or other CPP comments.
  1785. nl_before_cpp_comment = 0 # unsigned number
  1786. # Whether to force a newline after a multi-line comment.
  1787. nl_after_multiline_comment = false # true/false
  1788. # Whether to force a newline after a label's colon.
  1789. nl_after_label_colon = false # true/false
  1790. # The number of newlines before a struct definition.
  1791. nl_before_struct = 0 # unsigned number
  1792. # The number of newlines after '}' or ';' of a struct/enum/union definition.
  1793. nl_after_struct = 0 # unsigned number
  1794. # The number of newlines before a class definition.
  1795. nl_before_class = 0 # unsigned number
  1796. # The number of newlines after '}' or ';' of a class definition.
  1797. nl_after_class = 2 # unsigned number
  1798. # The number of newlines before a namespace.
  1799. nl_before_namespace = 0 # unsigned number
  1800. # The number of newlines after '{' of a namespace. This also adds newlines
  1801. # before the matching '}'.
  1802. #
  1803. # 0: Apply eat_blanks_after_open_brace or eat_blanks_before_close_brace if
  1804. # applicable, otherwise no change.
  1805. #
  1806. # Overrides eat_blanks_after_open_brace and eat_blanks_before_close_brace.
  1807. nl_inside_namespace = 0 # unsigned number
  1808. # The number of newlines after '}' of a namespace.
  1809. nl_after_namespace = 0 # unsigned number
  1810. # The number of newlines before an access specifier label. This also includes
  1811. # the Qt-specific 'signals:' and 'slots:'. Will not change the newline count
  1812. # if after a brace open.
  1813. #
  1814. # 0: No change (default).
  1815. nl_before_access_spec = 0 # unsigned number
  1816. # The number of newlines after an access specifier label. This also includes
  1817. # the Qt-specific 'signals:' and 'slots:'. Will not change the newline count
  1818. # if after a brace open.
  1819. #
  1820. # 0: No change (default).
  1821. #
  1822. # Overrides nl_typedef_blk_start and nl_var_def_blk_start.
  1823. nl_after_access_spec = 0 # unsigned number
  1824. # The number of newlines between a function definition and the function
  1825. # comment, as in '// comment\n <here> void foo() {...}'.
  1826. #
  1827. # 0: No change (default).
  1828. nl_comment_func_def = 0 # unsigned number
  1829. # The number of newlines after a try-catch-finally block that isn't followed
  1830. # by a brace close.
  1831. #
  1832. # 0: No change (default).
  1833. nl_after_try_catch_finally = 0 # unsigned number
  1834. # (C#) The number of newlines before and after a property, indexer or event
  1835. # declaration.
  1836. #
  1837. # 0: No change (default).
  1838. nl_around_cs_property = 0 # unsigned number
  1839. # (C#) The number of newlines between the get/set/add/remove handlers.
  1840. #
  1841. # 0: No change (default).
  1842. nl_between_get_set = 0 # unsigned number
  1843. # (C#) Add or remove newline between property and the '{'.
  1844. nl_property_brace = ignore # ignore/add/remove/force/not_defined
  1845. # Whether to remove blank lines after '{'.
  1846. eat_blanks_after_open_brace = false # true/false
  1847. # Whether to remove blank lines before '}'.
  1848. eat_blanks_before_close_brace = false # true/false
  1849. # How aggressively to remove extra newlines not in preprocessor.
  1850. #
  1851. # 0: No change (default)
  1852. # 1: Remove most newlines not handled by other config
  1853. # 2: Remove all newlines and reformat completely by config
  1854. nl_remove_extra_newlines = 0 # unsigned number
  1855. # (Java) Add or remove newline after an annotation statement. Only affects
  1856. # annotations that are after a newline.
  1857. nl_after_annotation = ignore # ignore/add/remove/force/not_defined
  1858. # (Java) Add or remove newline between two annotations.
  1859. nl_between_annotation = ignore # ignore/add/remove/force/not_defined
  1860. # The number of newlines before a whole-file #ifdef.
  1861. #
  1862. # 0: No change (default).
  1863. nl_before_whole_file_ifdef = 0 # unsigned number
  1864. # The number of newlines after a whole-file #ifdef.
  1865. #
  1866. # 0: No change (default).
  1867. nl_after_whole_file_ifdef = 0 # unsigned number
  1868. # The number of newlines before a whole-file #endif.
  1869. #
  1870. # 0: No change (default).
  1871. nl_before_whole_file_endif = 0 # unsigned number
  1872. # The number of newlines after a whole-file #endif.
  1873. #
  1874. # 0: No change (default).
  1875. nl_after_whole_file_endif = 0 # unsigned number
  1876. #
  1877. # Positioning options
  1878. #
  1879. # The position of arithmetic operators in wrapped expressions.
  1880. pos_arith = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1881. # The position of assignment in wrapped expressions. Do not affect '='
  1882. # followed by '{'.
  1883. pos_assign = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1884. # The position of Boolean operators in wrapped expressions.
  1885. pos_bool = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1886. # The position of comparison operators in wrapped expressions.
  1887. pos_compare = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1888. # The position of conditional operators, as in the '?' and ':' of
  1889. # 'expr ? stmt : stmt', in wrapped expressions.
  1890. pos_conditional = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1891. # The position of the comma in wrapped expressions.
  1892. pos_comma = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1893. # The position of the comma in enum entries.
  1894. pos_enum_comma = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1895. # The position of the comma in the base class list if there is more than one
  1896. # line. Affects nl_class_init_args.
  1897. pos_class_comma = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1898. # The position of the comma in the constructor initialization list.
  1899. # Related to nl_constr_colon, nl_constr_init_args and pos_constr_colon.
  1900. pos_constr_comma = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1901. # The position of trailing/leading class colon, between class and base class
  1902. # list. Affects nl_class_colon.
  1903. pos_class_colon = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1904. # The position of colons between constructor and member initialization.
  1905. # Related to nl_constr_colon, nl_constr_init_args and pos_constr_comma.
  1906. pos_constr_colon = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1907. # The position of shift operators in wrapped expressions.
  1908. pos_shift = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
  1909. #
  1910. # Line splitting options
  1911. #
  1912. # Try to limit code width to N columns.
  1913. code_width = 0 # unsigned number
  1914. # Whether to fully split long 'for' statements at semi-colons.
  1915. ls_for_split_full = false # true/false
  1916. # Whether to fully split long function prototypes/calls at commas.
  1917. # The option ls_code_width has priority over the option ls_func_split_full.
  1918. ls_func_split_full = false # true/false
  1919. # Whether to split lines as close to code_width as possible and ignore some
  1920. # groupings.
  1921. # The option ls_code_width has priority over the option ls_func_split_full.
  1922. ls_code_width = false # true/false
  1923. #
  1924. # Code alignment options (not left column spaces/tabs)
  1925. #
  1926. # Whether to keep non-indenting tabs.
  1927. align_keep_tabs = false # true/false
  1928. # Whether to use tabs for aligning.
  1929. align_with_tabs = false # true/false
  1930. # Whether to bump out to the next tab when aligning.
  1931. align_on_tabstop = false # true/false
  1932. # Whether to right-align numbers.
  1933. align_number_right = false # true/false
  1934. # Whether to keep whitespace not required for alignment.
  1935. align_keep_extra_space = false # true/false
  1936. # Whether to align variable definitions in prototypes and functions.
  1937. align_func_params = false # true/false
  1938. # The span for aligning parameter definitions in function on parameter name.
  1939. #
  1940. # 0: Don't align (default).
  1941. align_func_params_span = 0 # unsigned number
  1942. # The threshold for aligning function parameter definitions.
  1943. # Use a negative number for absolute thresholds.
  1944. #
  1945. # 0: No limit (default).
  1946. align_func_params_thresh = 0 # number
  1947. # The gap for aligning function parameter definitions.
  1948. align_func_params_gap = 0 # unsigned number
  1949. # The span for aligning constructor value.
  1950. #
  1951. # 0: Don't align (default).
  1952. align_constr_value_span = 0 # unsigned number
  1953. # The threshold for aligning constructor value.
  1954. # Use a negative number for absolute thresholds.
  1955. #
  1956. # 0: No limit (default).
  1957. align_constr_value_thresh = 0 # number
  1958. # The gap for aligning constructor value.
  1959. align_constr_value_gap = 0 # unsigned number
  1960. # Whether to align parameters in single-line functions that have the same
  1961. # name. The function names must already be aligned with each other.
  1962. align_same_func_call_params = false # true/false
  1963. # The span for aligning function-call parameters for single line functions.
  1964. #
  1965. # 0: Don't align (default).
  1966. align_same_func_call_params_span = 0 # unsigned number
  1967. # The threshold for aligning function-call parameters for single line
  1968. # functions.
  1969. # Use a negative number for absolute thresholds.
  1970. #
  1971. # 0: No limit (default).
  1972. align_same_func_call_params_thresh = 0 # number
  1973. # The span for aligning variable definitions.
  1974. #
  1975. # 0: Don't align (default).
  1976. align_var_def_span = 0 # unsigned number
  1977. # How to consider (or treat) the '*' in the alignment of variable definitions.
  1978. #
  1979. # 0: Part of the type 'void * foo;' (default)
  1980. # 1: Part of the variable 'void *foo;'
  1981. # 2: Dangling 'void *foo;'
  1982. # Dangling: the '*' will not be taken into account when aligning.
  1983. align_var_def_star_style = 1 # unsigned number
  1984. # How to consider (or treat) the '&' in the alignment of variable definitions.
  1985. #
  1986. # 0: Part of the type 'long & foo;' (default)
  1987. # 1: Part of the variable 'long &foo;'
  1988. # 2: Dangling 'long &foo;'
  1989. # Dangling: the '&' will not be taken into account when aligning.
  1990. align_var_def_amp_style = 0 # unsigned number
  1991. # The threshold for aligning variable definitions.
  1992. # Use a negative number for absolute thresholds.
  1993. #
  1994. # 0: No limit (default).
  1995. align_var_def_thresh = 0 # number
  1996. # The gap for aligning variable definitions.
  1997. align_var_def_gap = 0 # unsigned number
  1998. # Whether to align the colon in struct bit fields.
  1999. align_var_def_colon = false # true/false
  2000. # The gap for aligning the colon in struct bit fields.
  2001. align_var_def_colon_gap = 0 # unsigned number
  2002. # Whether to align any attribute after the variable name.
  2003. align_var_def_attribute = false # true/false
  2004. # Whether to align inline struct/enum/union variable definitions.
  2005. align_var_def_inline = false # true/false
  2006. # The span for aligning on '=' in assignments.
  2007. #
  2008. # 0: Don't align (default).
  2009. align_assign_span = 0 # unsigned number
  2010. # The span for aligning on '=' in function prototype modifier.
  2011. #
  2012. # 0: Don't align (default).
  2013. align_assign_func_proto_span = 0 # unsigned number
  2014. # The threshold for aligning on '=' in assignments.
  2015. # Use a negative number for absolute thresholds.
  2016. #
  2017. # 0: No limit (default).
  2018. align_assign_thresh = 0 # number
  2019. # Whether to align on the left most assignment when multiple
  2020. # definitions are found on the same line.
  2021. # Depends on 'align_assign_span' and 'align_assign_thresh' settings.
  2022. align_assign_on_multi_var_defs = false # true/false
  2023. # The span for aligning on '{' in braced init list.
  2024. #
  2025. # 0: Don't align (default).
  2026. align_braced_init_list_span = 0 # unsigned number
  2027. # The threshold for aligning on '{' in braced init list.
  2028. # Use a negative number for absolute thresholds.
  2029. #
  2030. # 0: No limit (default).
  2031. align_braced_init_list_thresh = 0 # number
  2032. # How to apply align_assign_span to function declaration "assignments", i.e.
  2033. # 'virtual void foo() = 0' or '~foo() = {default|delete}'.
  2034. #
  2035. # 0: Align with other assignments (default)
  2036. # 1: Align with each other, ignoring regular assignments
  2037. # 2: Don't align
  2038. align_assign_decl_func = 0 # unsigned number
  2039. # The span for aligning on '=' in enums.
  2040. #
  2041. # 0: Don't align (default).
  2042. align_enum_equ_span = 0 # unsigned number
  2043. # The threshold for aligning on '=' in enums.
  2044. # Use a negative number for absolute thresholds.
  2045. #
  2046. # 0: no limit (default).
  2047. align_enum_equ_thresh = 0 # number
  2048. # The span for aligning class member definitions.
  2049. #
  2050. # 0: Don't align (default).
  2051. align_var_class_span = 0 # unsigned number
  2052. # The threshold for aligning class member definitions.
  2053. # Use a negative number for absolute thresholds.
  2054. #
  2055. # 0: No limit (default).
  2056. align_var_class_thresh = 0 # number
  2057. # The gap for aligning class member definitions.
  2058. align_var_class_gap = 0 # unsigned number
  2059. # The span for aligning struct/union member definitions.
  2060. #
  2061. # 0: Don't align (default).
  2062. align_var_struct_span = 0 # unsigned number
  2063. # The threshold for aligning struct/union member definitions.
  2064. # Use a negative number for absolute thresholds.
  2065. #
  2066. # 0: No limit (default).
  2067. align_var_struct_thresh = 0 # number
  2068. # The gap for aligning struct/union member definitions.
  2069. align_var_struct_gap = 0 # unsigned number
  2070. # The span for aligning struct initializer values.
  2071. #
  2072. # 0: Don't align (default).
  2073. align_struct_init_span = 0 # unsigned number
  2074. # The span for aligning single-line typedefs.
  2075. #
  2076. # 0: Don't align (default).
  2077. align_typedef_span = 0 # unsigned number
  2078. # The minimum space between the type and the synonym of a typedef.
  2079. align_typedef_gap = 0 # unsigned number
  2080. # How to align typedef'd functions with other typedefs.
  2081. #
  2082. # 0: Don't mix them at all (default)
  2083. # 1: Align the open parenthesis with the types
  2084. # 2: Align the function type name with the other type names
  2085. align_typedef_func = 0 # unsigned number
  2086. # How to consider (or treat) the '*' in the alignment of typedefs.
  2087. #
  2088. # 0: Part of the typedef type, 'typedef int * pint;' (default)
  2089. # 1: Part of type name: 'typedef int *pint;'
  2090. # 2: Dangling: 'typedef int *pint;'
  2091. # Dangling: the '*' will not be taken into account when aligning.
  2092. align_typedef_star_style = 1 # unsigned number
  2093. # How to consider (or treat) the '&' in the alignment of typedefs.
  2094. #
  2095. # 0: Part of the typedef type, 'typedef int & intref;' (default)
  2096. # 1: Part of type name: 'typedef int &intref;'
  2097. # 2: Dangling: 'typedef int &intref;'
  2098. # Dangling: the '&' will not be taken into account when aligning.
  2099. align_typedef_amp_style = 0 # unsigned number
  2100. # The span for aligning comments that end lines.
  2101. #
  2102. # 0: Don't align (default).
  2103. align_right_cmt_span = 0 # unsigned number
  2104. # Minimum number of columns between preceding text and a trailing comment in
  2105. # order for the comment to qualify for being aligned. Must be non-zero to have
  2106. # an effect.
  2107. align_right_cmt_gap = 0 # unsigned number
  2108. # If aligning comments, whether to mix with comments after '}' and #endif with
  2109. # less than three spaces before the comment.
  2110. align_right_cmt_mix = false # true/false
  2111. # Whether to only align trailing comments that are at the same brace level.
  2112. align_right_cmt_same_level = false # true/false
  2113. # Minimum column at which to align trailing comments. Comments which are
  2114. # aligned beyond this column, but which can be aligned in a lesser column,
  2115. # may be "pulled in".
  2116. #
  2117. # 0: Ignore (default).
  2118. align_right_cmt_at_col = 0 # unsigned number
  2119. # The span for aligning function prototypes.
  2120. #
  2121. # 0: Don't align (default).
  2122. align_func_proto_span = 0 # unsigned number
  2123. # How to consider (or treat) the '*' in the alignment of function prototypes.
  2124. #
  2125. # 0: Part of the type 'void * foo();' (default)
  2126. # 1: Part of the function 'void *foo();'
  2127. # 2: Dangling 'void *foo();'
  2128. # Dangling: the '*' will not be taken into account when aligning.
  2129. align_func_proto_star_style = 0 # unsigned number
  2130. # How to consider (or treat) the '&' in the alignment of function prototypes.
  2131. #
  2132. # 0: Part of the type 'long & foo();' (default)
  2133. # 1: Part of the function 'long &foo();'
  2134. # 2: Dangling 'long &foo();'
  2135. # Dangling: the '&' will not be taken into account when aligning.
  2136. align_func_proto_amp_style = 0 # unsigned number
  2137. # The threshold for aligning function prototypes.
  2138. # Use a negative number for absolute thresholds.
  2139. #
  2140. # 0: No limit (default).
  2141. align_func_proto_thresh = 0 # number
  2142. # Minimum gap between the return type and the function name.
  2143. align_func_proto_gap = 0 # unsigned number
  2144. # Whether to align function prototypes on the 'operator' keyword instead of
  2145. # what follows.
  2146. align_on_operator = false # true/false
  2147. # Whether to mix aligning prototype and variable declarations. If true,
  2148. # align_var_def_XXX options are used instead of align_func_proto_XXX options.
  2149. align_mix_var_proto = false # true/false
  2150. # Whether to align single-line functions with function prototypes.
  2151. # Uses align_func_proto_span.
  2152. align_single_line_func = false # true/false
  2153. # Whether to align the open brace of single-line functions.
  2154. # Requires align_single_line_func=true. Uses align_func_proto_span.
  2155. align_single_line_brace = false # true/false
  2156. # Gap for align_single_line_brace.
  2157. align_single_line_brace_gap = 0 # unsigned number
  2158. # (OC) The span for aligning Objective-C message specifications.
  2159. #
  2160. # 0: Don't align (default).
  2161. align_oc_msg_spec_span = 0 # unsigned number
  2162. # Whether and how to align backslashes that split a macro onto multiple lines.
  2163. # This will not work right if the macro contains a multi-line comment.
  2164. #
  2165. # 0: Do nothing (default)
  2166. # 1: Align the backslashes in the column at the end of the longest line
  2167. # 2: Align with the backslash that is farthest to the left, or, if that
  2168. # backslash is farther left than the end of the longest line, at the end of
  2169. # the longest line
  2170. # 3: Align with the backslash that is farthest to the right
  2171. align_nl_cont = 0 # unsigned number
  2172. # Whether to align macro functions and variables together.
  2173. align_pp_define_together = true # true/false
  2174. # The span for aligning on '#define' bodies.
  2175. #
  2176. # =0: Don't align (default)
  2177. # >0: Number of lines (including comments) between blocks
  2178. align_pp_define_span = 0 # unsigned number
  2179. # The minimum space between label and value of a preprocessor define.
  2180. align_pp_define_gap = 0 # unsigned number
  2181. # Whether to align lines that start with '<<' with previous '<<'.
  2182. #
  2183. # Default: true
  2184. align_left_shift = true # true/false
  2185. # Whether to align comma-separated statements following '<<' (as used to
  2186. # initialize Eigen matrices).
  2187. align_eigen_comma_init = false # true/false
  2188. # Whether to align text after 'asm volatile ()' colons.
  2189. align_asm_colon = false # true/false
  2190. # (OC) Span for aligning parameters in an Objective-C message call
  2191. # on the ':'.
  2192. #
  2193. # 0: Don't align.
  2194. align_oc_msg_colon_span = 0 # unsigned number
  2195. # (OC) Whether to always align with the first parameter, even if it is too
  2196. # short.
  2197. align_oc_msg_colon_first = false # true/false
  2198. # (OC) Whether to align parameters in an Objective-C '+' or '-' declaration
  2199. # on the ':'.
  2200. align_oc_decl_colon = false # true/false
  2201. # (OC) Whether to not align parameters in an Objectve-C message call if first
  2202. # colon is not on next line of the message call (the same way Xcode does
  2203. # alignment)
  2204. align_oc_msg_colon_xcode_like = false # true/false
  2205. #
  2206. # Comment modification options
  2207. #
  2208. # Try to wrap comments at N columns.
  2209. cmt_width = 0 # unsigned number
  2210. # How to reflow comments.
  2211. #
  2212. # 0: No reflowing (apart from the line wrapping due to cmt_width) (default)
  2213. # 1: No touching at all
  2214. # 2: Full reflow (enable cmt_indent_multi for indent with line wrapping due to cmt_width)
  2215. cmt_reflow_mode = 1 # unsigned number
  2216. # Path to a file that contains regular expressions describing patterns for
  2217. # which the end of one line and the beginning of the next will be folded into
  2218. # the same sentence or paragraph during full comment reflow. The regular
  2219. # expressions are described using ECMAScript syntax. The syntax for this
  2220. # specification is as follows, where "..." indicates the custom regular
  2221. # expression and "n" indicates the nth end_of_prev_line_regex and
  2222. # beg_of_next_line_regex regular expression pair:
  2223. #
  2224. # end_of_prev_line_regex[1] = "...$"
  2225. # beg_of_next_line_regex[1] = "^..."
  2226. # end_of_prev_line_regex[2] = "...$"
  2227. # beg_of_next_line_regex[2] = "^..."
  2228. # .
  2229. # .
  2230. # .
  2231. # end_of_prev_line_regex[n] = "...$"
  2232. # beg_of_next_line_regex[n] = "^..."
  2233. #
  2234. # Note that use of this option overrides the default reflow fold regular
  2235. # expressions, which are internally defined as follows:
  2236. #
  2237. # end_of_prev_line_regex[1] = "[\w,\]\)]$"
  2238. # beg_of_next_line_regex[1] = "^[\w,\[\(]"
  2239. # end_of_prev_line_regex[2] = "\.$"
  2240. # beg_of_next_line_regex[2] = "^[A-Z]"
  2241. cmt_reflow_fold_regex_file = "" # string
  2242. # Whether to indent wrapped lines to the start of the encompassing paragraph
  2243. # during full comment reflow (cmt_reflow_mode = 2). Overrides the value
  2244. # specified by cmt_sp_after_star_cont.
  2245. #
  2246. # Note that cmt_align_doxygen_javadoc_tags overrides this option for
  2247. # paragraphs associated with javadoc tags
  2248. cmt_reflow_indent_to_paragraph_start = false # true/false
  2249. # Whether to convert all tabs to spaces in comments. If false, tabs in
  2250. # comments are left alone, unless used for indenting.
  2251. cmt_convert_tab_to_spaces = true # true/false
  2252. # Whether to apply changes to multi-line comments, including cmt_width,
  2253. # keyword substitution and leading chars.
  2254. #
  2255. # Default: true
  2256. cmt_indent_multi = false # true/false
  2257. # Whether to align doxygen javadoc-style tags ('@param', '@return', etc.)
  2258. # and corresponding fields such that groups of consecutive block tags,
  2259. # parameter names, and descriptions align with one another. Overrides that
  2260. # which is specified by the cmt_sp_after_star_cont. If cmt_width > 0, it may
  2261. # be necessary to enable cmt_indent_multi and set cmt_reflow_mode = 2
  2262. # in order to achieve the desired alignment for line-wrapping.
  2263. cmt_align_doxygen_javadoc_tags = false # true/false
  2264. # The number of spaces to insert after the star and before doxygen
  2265. # javadoc-style tags (@param, @return, etc). Requires enabling
  2266. # cmt_align_doxygen_javadoc_tags. Overrides that which is specified by the
  2267. # cmt_sp_after_star_cont.
  2268. #
  2269. # Default: 1
  2270. cmt_sp_before_doxygen_javadoc_tags = 1 # unsigned number
  2271. # Whether to change trailing, single-line c-comments into cpp-comments.
  2272. cmt_trailing_single_line_c_to_cpp = true # true/false
  2273. # Whether to group c-comments that look like they are in a block.
  2274. cmt_c_group = false # true/false
  2275. # Whether to put an empty '/*' on the first line of the combined c-comment.
  2276. cmt_c_nl_start = true # true/false
  2277. # Whether to add a newline before the closing '*/' of the combined c-comment.
  2278. cmt_c_nl_end = false # true/false
  2279. # Whether to change cpp-comments into c-comments.
  2280. cmt_cpp_to_c = false # true/false
  2281. # Whether to group cpp-comments that look like they are in a block. Only
  2282. # meaningful if cmt_cpp_to_c=true.
  2283. cmt_cpp_group = false # true/false
  2284. # Whether to put an empty '/*' on the first line of the combined cpp-comment
  2285. # when converting to a c-comment.
  2286. #
  2287. # Requires cmt_cpp_to_c=true and cmt_cpp_group=true.
  2288. cmt_cpp_nl_start = false # true/false
  2289. # Whether to add a newline before the closing '*/' of the combined cpp-comment
  2290. # when converting to a c-comment.
  2291. #
  2292. # Requires cmt_cpp_to_c=true and cmt_cpp_group=true.
  2293. cmt_cpp_nl_end = false # true/false
  2294. # Whether to put a star on subsequent comment lines.
  2295. cmt_star_cont = true # true/false
  2296. # The number of spaces to insert at the start of subsequent comment lines.
  2297. cmt_sp_before_star_cont = 1 # unsigned number
  2298. # The number of spaces to insert after the star on subsequent comment lines.
  2299. cmt_sp_after_star_cont = 1 # unsigned number
  2300. # For multi-line comments with a '*' lead, remove leading spaces if the first
  2301. # and last lines of the comment are the same length.
  2302. #
  2303. # Default: true
  2304. cmt_multi_check_last = true # true/false
  2305. # For multi-line comments with a '*' lead, remove leading spaces if the first
  2306. # and last lines of the comment are the same length AND if the length is
  2307. # bigger as the first_len minimum.
  2308. #
  2309. # Default: 4
  2310. cmt_multi_first_len_minimum = 4 # unsigned number
  2311. # Path to a file that contains text to insert at the beginning of a file if
  2312. # the file doesn't start with a C/C++ comment. If the inserted text contains
  2313. # '$(filename)', that will be replaced with the current file's name.
  2314. cmt_insert_file_header = "./buildroot/share/uncrustify/file_header.h" # string
  2315. # Path to a file that contains text to insert at the end of a file if the
  2316. # file doesn't end with a C/C++ comment. If the inserted text contains
  2317. # '$(filename)', that will be replaced with the current file's name.
  2318. cmt_insert_file_footer = "" # string
  2319. # Path to a file that contains text to insert before a function definition if
  2320. # the function isn't preceded by a C/C++ comment. If the inserted text
  2321. # contains '$(function)', '$(javaparam)' or '$(fclass)', these will be
  2322. # replaced with, respectively, the name of the function, the javadoc '@param'
  2323. # and '@return' stuff, or the name of the class to which the member function
  2324. # belongs.
  2325. cmt_insert_func_header = "" # string
  2326. # Path to a file that contains text to insert before a class if the class
  2327. # isn't preceded by a C/C++ comment. If the inserted text contains '$(class)',
  2328. # that will be replaced with the class name.
  2329. cmt_insert_class_header = "" # string
  2330. # Path to a file that contains text to insert before an Objective-C message
  2331. # specification, if the method isn't preceded by a C/C++ comment. If the
  2332. # inserted text contains '$(message)' or '$(javaparam)', these will be
  2333. # replaced with, respectively, the name of the function, or the javadoc
  2334. # '@param' and '@return' stuff.
  2335. cmt_insert_oc_msg_header = "" # string
  2336. # Whether a comment should be inserted if a preprocessor is encountered when
  2337. # stepping backwards from a function name.
  2338. #
  2339. # Applies to cmt_insert_oc_msg_header, cmt_insert_func_header and
  2340. # cmt_insert_class_header.
  2341. cmt_insert_before_preproc = false # true/false
  2342. # Whether a comment should be inserted if a function is declared inline to a
  2343. # class definition.
  2344. #
  2345. # Applies to cmt_insert_func_header.
  2346. #
  2347. # Default: true
  2348. cmt_insert_before_inlines = true # true/false
  2349. # Whether a comment should be inserted if the function is a class constructor
  2350. # or destructor.
  2351. #
  2352. # Applies to cmt_insert_func_header.
  2353. cmt_insert_before_ctor_dtor = false # true/false
  2354. #
  2355. # Code modifying options (non-whitespace)
  2356. #
  2357. # Add or remove braces on a single-line 'do' statement.
  2358. mod_full_brace_do = ignore # ignore/add/remove/force/not_defined
  2359. # Add or remove braces on a single-line 'for' statement.
  2360. mod_full_brace_for = ignore # ignore/add/remove/force/not_defined
  2361. # (Pawn) Add or remove braces on a single-line function definition.
  2362. mod_full_brace_function = ignore # ignore/add/remove/force/not_defined
  2363. # Add or remove braces on a single-line 'if' statement. Braces will not be
  2364. # removed if the braced statement contains an 'else'.
  2365. mod_full_brace_if = ignore # ignore/add/remove/force/not_defined
  2366. # Whether to enforce that all blocks of an 'if'/'else if'/'else' chain either
  2367. # have, or do not have, braces. Overrides mod_full_brace_if.
  2368. #
  2369. # 0: Don't override mod_full_brace_if
  2370. # 1: Add braces to all blocks if any block needs braces and remove braces if
  2371. # they can be removed from all blocks
  2372. # 2: Add braces to all blocks if any block already has braces, regardless of
  2373. # whether it needs them
  2374. # 3: Add braces to all blocks if any block needs braces and remove braces if
  2375. # they can be removed from all blocks, except if all blocks have braces
  2376. # despite none needing them
  2377. mod_full_brace_if_chain = 1 # unsigned number
  2378. # Whether to add braces to all blocks of an 'if'/'else if'/'else' chain.
  2379. # If true, mod_full_brace_if_chain will only remove braces from an 'if' that
  2380. # does not have an 'else if' or 'else'.
  2381. mod_full_brace_if_chain_only = false # true/false
  2382. # Add or remove braces on single-line 'while' statement.
  2383. mod_full_brace_while = ignore # ignore/add/remove/force/not_defined
  2384. # Add or remove braces on single-line 'using ()' statement.
  2385. mod_full_brace_using = ignore # ignore/add/remove/force/not_defined
  2386. # Don't remove braces around statements that span N newlines
  2387. mod_full_brace_nl = 0 # unsigned number
  2388. # Whether to prevent removal of braces from 'if'/'for'/'while'/etc. blocks
  2389. # which span multiple lines.
  2390. #
  2391. # Affects:
  2392. # mod_full_brace_for
  2393. # mod_full_brace_if
  2394. # mod_full_brace_if_chain
  2395. # mod_full_brace_if_chain_only
  2396. # mod_full_brace_while
  2397. # mod_full_brace_using
  2398. #
  2399. # Does not affect:
  2400. # mod_full_brace_do
  2401. # mod_full_brace_function
  2402. mod_full_brace_nl_block_rem_mlcond = false # true/false
  2403. # Add or remove unnecessary parentheses on 'return' statement.
  2404. mod_paren_on_return = ignore # ignore/add/remove/force/not_defined
  2405. # Add or remove unnecessary parentheses on 'throw' statement.
  2406. mod_paren_on_throw = ignore # ignore/add/remove/force/not_defined
  2407. # (Pawn) Whether to change optional semicolons to real semicolons.
  2408. mod_pawn_semicolon = false # true/false
  2409. # Whether to fully parenthesize Boolean expressions in 'while' and 'if'
  2410. # statement, as in 'if (a && b > c)' => 'if (a && (b > c))'.
  2411. mod_full_paren_if_bool = false # true/false
  2412. # Whether to fully parenthesize Boolean expressions after '='
  2413. # statement, as in 'x = a && b > c;' => 'x = (a && (b > c));'.
  2414. mod_full_paren_assign_bool = false # true/false
  2415. # Whether to fully parenthesize Boolean expressions after '='
  2416. # statement, as in 'return a && b > c;' => 'return (a && (b > c));'.
  2417. mod_full_paren_return_bool = false # true/false
  2418. # Whether to remove superfluous semicolons.
  2419. mod_remove_extra_semicolon = true # true/false
  2420. # Whether to remove duplicate include.
  2421. mod_remove_duplicate_include = false # true/false
  2422. # the following options (mod_XX_closebrace_comment) use different comment,
  2423. # depending of the setting of the next option.
  2424. # false: Use the c comment (default)
  2425. # true : Use the cpp comment
  2426. mod_add_force_c_closebrace_comment = false # true/false
  2427. # If a function body exceeds the specified number of newlines and doesn't have
  2428. # a comment after the close brace, a comment will be added.
  2429. mod_add_long_function_closebrace_comment = 0 # unsigned number
  2430. # If a namespace body exceeds the specified number of newlines and doesn't
  2431. # have a comment after the close brace, a comment will be added.
  2432. mod_add_long_namespace_closebrace_comment = 0 # unsigned number
  2433. # If a class body exceeds the specified number of newlines and doesn't have a
  2434. # comment after the close brace, a comment will be added.
  2435. mod_add_long_class_closebrace_comment = 0 # unsigned number
  2436. # If a switch body exceeds the specified number of newlines and doesn't have a
  2437. # comment after the close brace, a comment will be added.
  2438. mod_add_long_switch_closebrace_comment = 0 # unsigned number
  2439. # If an #ifdef body exceeds the specified number of newlines and doesn't have
  2440. # a comment after the #endif, a comment will be added.
  2441. mod_add_long_ifdef_endif_comment = 20 # unsigned number
  2442. # If an #ifdef or #else body exceeds the specified number of newlines and
  2443. # doesn't have a comment after the #else, a comment will be added.
  2444. mod_add_long_ifdef_else_comment = 20 # unsigned number
  2445. # Whether to take care of the case by the mod_sort_xx options.
  2446. mod_sort_case_sensitive = false # true/false
  2447. # Whether to sort consecutive single-line 'import' statements.
  2448. mod_sort_import = false # true/false
  2449. # (C#) Whether to sort consecutive single-line 'using' statements.
  2450. mod_sort_using = false # true/false
  2451. # Whether to sort consecutive single-line '#include' statements (C/C++) and
  2452. # '#import' statements (Objective-C). Be aware that this has the potential to
  2453. # break your code if your includes/imports have ordering dependencies.
  2454. mod_sort_include = false # true/false
  2455. # Whether to prioritize '#include' and '#import' statements that contain
  2456. # filename without extension when sorting is enabled.
  2457. mod_sort_incl_import_prioritize_filename = false # true/false
  2458. # Whether to prioritize '#include' and '#import' statements that does not
  2459. # contain extensions when sorting is enabled.
  2460. mod_sort_incl_import_prioritize_extensionless = false # true/false
  2461. # Whether to prioritize '#include' and '#import' statements that contain
  2462. # angle over quotes when sorting is enabled.
  2463. mod_sort_incl_import_prioritize_angle_over_quotes = false # true/false
  2464. # Whether to ignore file extension in '#include' and '#import' statements
  2465. # for sorting comparison.
  2466. mod_sort_incl_import_ignore_extension = false # true/false
  2467. # Whether to group '#include' and '#import' statements when sorting is enabled.
  2468. mod_sort_incl_import_grouping_enabled = false # true/false
  2469. # Whether to move a 'break' that appears after a fully braced 'case' before
  2470. # the close brace, as in 'case X: { ... } break;' => 'case X: { ... break; }'.
  2471. mod_move_case_break = false # true/false
  2472. # Whether to move a 'return' that appears after a fully braced 'case' before
  2473. # the close brace, as in 'case X: { ... } return;' => 'case X: { ... return; }'.
  2474. mod_move_case_return = false # true/false
  2475. # Add or remove braces around a fully braced case statement. Will only remove
  2476. # braces if there are no variable declarations in the block.
  2477. mod_case_brace = ignore # ignore/add/remove/force/not_defined
  2478. # Whether to remove a void 'return;' that appears as the last statement in a
  2479. # function.
  2480. mod_remove_empty_return = false # true/false
  2481. # Add or remove the comma after the last value of an enumeration.
  2482. mod_enum_last_comma = ignore # ignore/add/remove/force/not_defined
  2483. # Syntax to use for infinite loops.
  2484. #
  2485. # 0: Leave syntax alone (default)
  2486. # 1: Rewrite as `for(;;)`
  2487. # 2: Rewrite as `while(true)`
  2488. # 3: Rewrite as `do`...`while(true);`
  2489. # 4: Rewrite as `while(1)`
  2490. # 5: Rewrite as `do`...`while(1);`
  2491. #
  2492. # Infinite loops that do not already match one of these syntaxes are ignored.
  2493. # Other options that affect loop formatting will be applied after transforming
  2494. # the syntax.
  2495. mod_infinite_loop = 0 # unsigned number
  2496. # Add or remove the 'int' keyword in 'int short'.
  2497. mod_int_short = ignore # ignore/add/remove/force/not_defined
  2498. # Add or remove the 'int' keyword in 'short int'.
  2499. mod_short_int = ignore # ignore/add/remove/force/not_defined
  2500. # Add or remove the 'int' keyword in 'int long'.
  2501. mod_int_long = ignore # ignore/add/remove/force/not_defined
  2502. # Add or remove the 'int' keyword in 'long int'.
  2503. mod_long_int = ignore # ignore/add/remove/force/not_defined
  2504. # Add or remove the 'int' keyword in 'int signed'.
  2505. mod_int_signed = ignore # ignore/add/remove/force/not_defined
  2506. # Add or remove the 'int' keyword in 'signed int'.
  2507. mod_signed_int = ignore # ignore/add/remove/force/not_defined
  2508. # Add or remove the 'int' keyword in 'int unsigned'.
  2509. mod_int_unsigned = ignore # ignore/add/remove/force/not_defined
  2510. # Add or remove the 'int' keyword in 'unsigned int'.
  2511. mod_unsigned_int = ignore # ignore/add/remove/force/not_defined
  2512. # If there is a situation where mod_int_* and mod_*_int would result in
  2513. # multiple int keywords, whether to keep the rightmost int (the default) or the
  2514. # leftmost int.
  2515. mod_int_prefer_int_on_left = false # true/false
  2516. # (OC) Whether to organize the properties. If true, properties will be
  2517. # rearranged according to the mod_sort_oc_property_*_weight factors.
  2518. mod_sort_oc_properties = false # true/false
  2519. # (OC) Weight of a class property modifier.
  2520. mod_sort_oc_property_class_weight = 0 # number
  2521. # (OC) Weight of 'atomic' and 'nonatomic'.
  2522. mod_sort_oc_property_thread_safe_weight = 0 # number
  2523. # (OC) Weight of 'readwrite' when organizing properties.
  2524. mod_sort_oc_property_readwrite_weight = 0 # number
  2525. # (OC) Weight of a reference type specifier ('retain', 'copy', 'assign',
  2526. # 'weak', 'strong') when organizing properties.
  2527. mod_sort_oc_property_reference_weight = 0 # number
  2528. # (OC) Weight of getter type ('getter=') when organizing properties.
  2529. mod_sort_oc_property_getter_weight = 0 # number
  2530. # (OC) Weight of setter type ('setter=') when organizing properties.
  2531. mod_sort_oc_property_setter_weight = 0 # number
  2532. # (OC) Weight of nullability type ('nullable', 'nonnull', 'null_unspecified',
  2533. # 'null_resettable') when organizing properties.
  2534. mod_sort_oc_property_nullability_weight = 0 # number
  2535. #
  2536. # Preprocessor options
  2537. #
  2538. # How to use tabs when indenting preprocessor code.
  2539. #
  2540. # -1: Use 'indent_with_tabs' setting (default)
  2541. # 0: Spaces only
  2542. # 1: Indent with tabs to brace level, align with spaces
  2543. # 2: Indent and align with tabs, using spaces when not on a tabstop
  2544. #
  2545. # Default: -1
  2546. pp_indent_with_tabs = -1 # number
  2547. # Add or remove indentation of preprocessor directives inside #if blocks
  2548. # at brace level 0 (file-level).
  2549. pp_indent = add # ignore/add/remove/force/not_defined
  2550. # Whether to indent #if/#else/#endif at the brace level. If false, these are
  2551. # indented from column 1.
  2552. pp_indent_at_level = true # true/false
  2553. # Whether to indent #if/#else/#endif at the parenthesis level if the brace
  2554. # level is 0. If false, these are indented from column 1.
  2555. pp_indent_at_level0 = false # true/false
  2556. # Specifies the number of columns to indent preprocessors per level
  2557. # at brace level 0 (file-level). If pp_indent_at_level=false, also specifies
  2558. # the number of columns to indent preprocessors per level
  2559. # at brace level > 0 (function-level).
  2560. #
  2561. # Default: 1
  2562. pp_indent_count = 2 # unsigned number
  2563. # Add or remove space after # based on pp level of #if blocks.
  2564. pp_space_after = ignore # ignore/add/remove/force/not_defined
  2565. # Sets the number of spaces per level added with pp_space_after.
  2566. pp_space_count = 0 # unsigned number
  2567. # The indent for '#region' and '#endregion' in C# and '#pragma region' in
  2568. # C/C++. Negative values decrease indent down to the first column.
  2569. pp_indent_region = 0 # number
  2570. # Whether to indent the code between #region and #endregion.
  2571. pp_region_indent_code = false # true/false
  2572. # If pp_indent_at_level=true, sets the indent for #if, #else and #endif when
  2573. # not at file-level. Negative values decrease indent down to the first column.
  2574. #
  2575. # =0: Indent preprocessors using output_tab_size
  2576. # >0: Column at which all preprocessors will be indented
  2577. pp_indent_if = 0 # number
  2578. # Whether to indent the code between #if, #else and #endif.
  2579. pp_if_indent_code = true # true/false
  2580. # Whether to indent the body of an #if that encompasses all the code in the file.
  2581. pp_indent_in_guard = false # true/false
  2582. # Whether to indent '#define' at the brace level. If false, these are
  2583. # indented from column 1.
  2584. pp_define_at_level = true # true/false
  2585. # Whether to indent '#include' at the brace level.
  2586. pp_include_at_level = false # true/false
  2587. # Whether to ignore the '#define' body while formatting.
  2588. pp_ignore_define_body = false # true/false
  2589. # An offset value that controls the indentation of the body of a multiline #define.
  2590. # 'body' refers to all the lines of a multiline #define except the first line.
  2591. # Requires 'pp_ignore_define_body = false'.
  2592. #
  2593. # <0: Absolute column: the body indentation starts off at the specified column
  2594. # (ex. -3 ==> the body is indented starting from column 3)
  2595. # >=0: Relative to the column of the '#' of '#define'
  2596. # (ex. 3 ==> the body is indented starting 3 columns at the right of '#')
  2597. #
  2598. # Default: 8
  2599. pp_multiline_define_body_indent = 8 # number
  2600. # Whether to indent case statements between #if, #else, and #endif.
  2601. # Only applies to the indent of the preprocessor that the case statements
  2602. # directly inside of.
  2603. #
  2604. # Default: true
  2605. pp_indent_case = true # true/false
  2606. # Whether to indent whole function definitions between #if, #else, and #endif.
  2607. # Only applies to the indent of the preprocessor that the function definition
  2608. # is directly inside of.
  2609. #
  2610. # Default: true
  2611. pp_indent_func_def = true # true/false
  2612. # Whether to indent extern C blocks between #if, #else, and #endif.
  2613. # Only applies to the indent of the preprocessor that the extern block is
  2614. # directly inside of.
  2615. #
  2616. # Default: true
  2617. pp_indent_extern = true # true/false
  2618. # How to indent braces directly inside #if, #else, and #endif.
  2619. # Requires pp_if_indent_code=true and only applies to the indent of the
  2620. # preprocessor that the braces are directly inside of.
  2621. # 0: No extra indent
  2622. # 1: Indent by one level
  2623. # -1: Preserve original indentation
  2624. #
  2625. # Default: 1
  2626. pp_indent_brace = 1 # number
  2627. # Whether to print warning messages for unbalanced #if and #else blocks.
  2628. # This will print a message in the following cases:
  2629. # - if an #ifdef block ends on a different indent level than
  2630. # where it started from. Example:
  2631. #
  2632. # #ifdef TEST
  2633. # int i;
  2634. # {
  2635. # int j;
  2636. # #endif
  2637. #
  2638. # - an #elif/#else block ends on a different indent level than
  2639. # the corresponding #ifdef block. Example:
  2640. #
  2641. # #ifdef TEST
  2642. # int i;
  2643. # #else
  2644. # }
  2645. # int j;
  2646. # #endif
  2647. pp_warn_unbalanced_if = false # true/false
  2648. #
  2649. # Sort includes options
  2650. #
  2651. # The regex for include category with priority 0.
  2652. include_category_0 = "" # string
  2653. # The regex for include category with priority 1.
  2654. include_category_1 = "" # string
  2655. # The regex for include category with priority 2.
  2656. include_category_2 = "" # string
  2657. #
  2658. # Use or Do not Use options
  2659. #
  2660. # true: indent_func_call_param will be used (default)
  2661. # false: indent_func_call_param will NOT be used
  2662. #
  2663. # Default: true
  2664. use_indent_func_call_param = true # true/false
  2665. # The value of the indentation for a continuation line is calculated
  2666. # differently if the statement is:
  2667. # - a declaration: your case with QString fileName ...
  2668. # - an assignment: your case with pSettings = new QSettings( ...
  2669. #
  2670. # At the second case the indentation value might be used twice:
  2671. # - at the assignment
  2672. # - at the function call (if present)
  2673. #
  2674. # To prevent the double use of the indentation value, use this option with the
  2675. # value 'true'.
  2676. #
  2677. # true: indent_continue will be used only once
  2678. # false: indent_continue will be used every time (default)
  2679. #
  2680. # Requires indent_ignore_first_continue=false.
  2681. use_indent_continue_only_once = false # true/false
  2682. # The indentation can be:
  2683. # - after the assignment, at the '[' character
  2684. # - at the beginning of the lambda body
  2685. #
  2686. # true: indentation will be at the beginning of the lambda body
  2687. # false: indentation will be after the assignment (default)
  2688. indent_cpp_lambda_only_once = false # true/false
  2689. # Whether sp_after_angle takes precedence over sp_inside_fparen. This was the
  2690. # historic behavior, but is probably not the desired behavior, so this is off
  2691. # by default.
  2692. use_sp_after_angle_always = false # true/false
  2693. # Whether to apply special formatting for Qt SIGNAL/SLOT macros. Essentially,
  2694. # this tries to format these so that they match Qt's normalized form (i.e. the
  2695. # result of QMetaObject::normalizedSignature), which can slightly improve the
  2696. # performance of the QObject::connect call, rather than how they would
  2697. # otherwise be formatted.
  2698. #
  2699. # See options_for_QT.cpp for details.
  2700. #
  2701. # Default: true
  2702. use_options_overriding_for_qt_macros = true # true/false
  2703. # If true: the form feed character is removed from the list of whitespace
  2704. # characters. See https://en.cppreference.com/w/cpp/string/byte/isspace.
  2705. use_form_feed_no_more_as_whitespace_character = false # true/false
  2706. #
  2707. # Warn levels - 1: error, 2: warning (default), 3: note
  2708. #
  2709. # (C#) Warning is given if doing tab-to-\t replacement and we have found one
  2710. # in a C# verbatim string literal.
  2711. #
  2712. # Default: 2
  2713. warn_level_tabs_found_in_verbatim_string_literals = 2 # unsigned number
  2714. # Limit the number of loops.
  2715. # Used by uncrustify.cpp to exit from infinite loop.
  2716. # 0: no limit.
  2717. debug_max_number_of_loops = 0 # number
  2718. # Set the number of the line to protocol;
  2719. # Used in the function prot_the_line if the 2. parameter is zero.
  2720. # 0: nothing protocol.
  2721. debug_line_number_to_protocol = 0 # number
  2722. # Set the number of second(s) before terminating formatting the current file,
  2723. # 0: no timeout.
  2724. # only for linux
  2725. debug_timeout = 0 # number
  2726. # Set the number of characters to be printed if the text is too long,
  2727. # 0: do not truncate.
  2728. debug_truncate = 0 # unsigned number
  2729. # sort (or not) the tracking info.
  2730. #
  2731. # Default: true
  2732. debug_sort_the_tracks = true # true/false
  2733. # decode (or not) the flags as a new line.
  2734. # only if the -p option is set.
  2735. debug_decode_the_flags = false # true/false
  2736. # insert the number of the line at the beginning of each line
  2737. set_numbering_for_html_output = false # true/false
  2738. # Meaning of the settings:
  2739. # Ignore - do not do any changes
  2740. # Add - makes sure there is 1 or more space/brace/newline/etc
  2741. # Force - makes sure there is exactly 1 space/brace/newline/etc,
  2742. # behaves like Add in some contexts
  2743. # Remove - removes space/brace/newline/etc
  2744. #
  2745. #
  2746. # - Token(s) can be treated as specific type(s) with the 'set' option:
  2747. # `set tokenType tokenString [tokenString...]`
  2748. #
  2749. # Example:
  2750. # `set BOOL __AND__ __OR__`
  2751. #
  2752. # tokenTypes are defined in src/token_enum.h, use them without the
  2753. # 'CT_' prefix: 'CT_BOOL' => 'BOOL'
  2754. #
  2755. #
  2756. # - Token(s) can be treated as type(s) with the 'type' option.
  2757. # `type tokenString [tokenString...]`
  2758. #
  2759. # Example:
  2760. # `type int c_uint_8 Rectangle`
  2761. #
  2762. # This can also be achieved with `set TYPE int c_uint_8 Rectangle`
  2763. #
  2764. #
  2765. # To embed whitespace in tokenStrings use the '\' escape character, or quote
  2766. # the tokenStrings. These quotes are supported: "'`
  2767. #
  2768. #
  2769. # - Support for the auto detection of languages through the file ending can be
  2770. # added using the 'file_ext' command.
  2771. # `file_ext langType langString [langString..]`
  2772. #
  2773. # Example:
  2774. # `file_ext CPP .ch .cxx .cpp.in`
  2775. #
  2776. # langTypes are defined in uncrusify_types.h in the lang_flag_e enum, use
  2777. # them without the 'LANG_' prefix: 'LANG_CPP' => 'CPP'
  2778. #
  2779. #
  2780. # - Custom macro-based indentation can be set up using 'macro-open',
  2781. # 'macro-else' and 'macro-close'.
  2782. # `(macro-open | macro-else | macro-close) tokenString`
  2783. #
  2784. # Example:
  2785. # `macro-open BEGIN_TEMPLATE_MESSAGE_MAP`
  2786. # `macro-open BEGIN_MESSAGE_MAP`
  2787. # `macro-close END_MESSAGE_MAP`
  2788. #
  2789. #
  2790. # option(s) with 'not default' value: 0
  2791. #