uncrustify.cfg 147 KB

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