Lines Matching refs:IO
63 static void enumInput(IO &IO, FormatStyle::AlignConsecutiveStyle &Value) { in enumInput()
64 IO.enumCase(Value, "None", in enumInput()
69 IO.enumCase(Value, "Consecutive", in enumInput()
74 IO.enumCase(Value, "AcrossEmptyLines", in enumInput()
79 IO.enumCase(Value, "AcrossComments", in enumInput()
85 IO.enumCase(Value, "AcrossEmptyLinesAndComments", in enumInput()
93 IO.enumCase(Value, "true", in enumInput()
98 IO.enumCase(Value, "false", in enumInput()
105 static void mapping(IO &IO, FormatStyle::AlignConsecutiveStyle &Value) { in mapping()
106 IO.mapOptional("Enabled", Value.Enabled); in mapping()
107 IO.mapOptional("AcrossEmptyLines", Value.AcrossEmptyLines); in mapping()
108 IO.mapOptional("AcrossComments", Value.AcrossComments); in mapping()
109 IO.mapOptional("AlignCompound", Value.AlignCompound); in mapping()
110 IO.mapOptional("PadOperators", Value.PadOperators); in mapping()
116 static void enumeration(IO &IO, FormatStyle::AttributeBreakingStyle &Value) { in enumeration()
117 IO.enumCase(Value, "Always", FormatStyle::ABS_Always); in enumeration()
118 IO.enumCase(Value, "Leave", FormatStyle::ABS_Leave); in enumeration()
119 IO.enumCase(Value, "Never", FormatStyle::ABS_Never); in enumeration()
125 static void enumeration(IO &IO, in enumeration()
127 IO.enumCase(Value, "None", FormatStyle::AIAS_None); in enumeration()
128 IO.enumCase(Value, "Left", FormatStyle::AIAS_Left); in enumeration()
129 IO.enumCase(Value, "Right", FormatStyle::AIAS_Right); in enumeration()
134 static void enumeration(IO &IO, FormatStyle::BinaryOperatorStyle &Value) { in enumeration()
135 IO.enumCase(Value, "All", FormatStyle::BOS_All); in enumeration()
136 IO.enumCase(Value, "true", FormatStyle::BOS_All); in enumeration()
137 IO.enumCase(Value, "None", FormatStyle::BOS_None); in enumeration()
138 IO.enumCase(Value, "false", FormatStyle::BOS_None); in enumeration()
139 IO.enumCase(Value, "NonAssignment", FormatStyle::BOS_NonAssignment); in enumeration()
144 static void enumeration(IO &IO, FormatStyle::BinPackStyle &Value) { in enumeration()
145 IO.enumCase(Value, "Auto", FormatStyle::BPS_Auto); in enumeration()
146 IO.enumCase(Value, "Always", FormatStyle::BPS_Always); in enumeration()
147 IO.enumCase(Value, "Never", FormatStyle::BPS_Never); in enumeration()
153 static void enumeration(IO &IO, in enumeration()
155 IO.enumCase(Value, "Both", FormatStyle::BFCS_Both); in enumeration()
156 IO.enumCase(Value, "None", FormatStyle::BFCS_None); in enumeration()
157 IO.enumCase(Value, "Before", FormatStyle::BFCS_Before); in enumeration()
158 IO.enumCase(Value, "After", FormatStyle::BFCS_After); in enumeration()
163 static void enumeration(IO &IO, FormatStyle::BraceBreakingStyle &Value) { in enumeration()
164 IO.enumCase(Value, "Attach", FormatStyle::BS_Attach); in enumeration()
165 IO.enumCase(Value, "Linux", FormatStyle::BS_Linux); in enumeration()
166 IO.enumCase(Value, "Mozilla", FormatStyle::BS_Mozilla); in enumeration()
167 IO.enumCase(Value, "Stroustrup", FormatStyle::BS_Stroustrup); in enumeration()
168 IO.enumCase(Value, "Allman", FormatStyle::BS_Allman); in enumeration()
169 IO.enumCase(Value, "Whitesmiths", FormatStyle::BS_Whitesmiths); in enumeration()
170 IO.enumCase(Value, "GNU", FormatStyle::BS_GNU); in enumeration()
171 IO.enumCase(Value, "WebKit", FormatStyle::BS_WebKit); in enumeration()
172 IO.enumCase(Value, "Custom", FormatStyle::BS_Custom); in enumeration()
177 static void mapping(IO &IO, FormatStyle::BraceWrappingFlags &Wrapping) { in mapping()
178 IO.mapOptional("AfterCaseLabel", Wrapping.AfterCaseLabel); in mapping()
179 IO.mapOptional("AfterClass", Wrapping.AfterClass); in mapping()
180 IO.mapOptional("AfterControlStatement", Wrapping.AfterControlStatement); in mapping()
181 IO.mapOptional("AfterEnum", Wrapping.AfterEnum); in mapping()
182 IO.mapOptional("AfterExternBlock", Wrapping.AfterExternBlock); in mapping()
183 IO.mapOptional("AfterFunction", Wrapping.AfterFunction); in mapping()
184 IO.mapOptional("AfterNamespace", Wrapping.AfterNamespace); in mapping()
185 IO.mapOptional("AfterObjCDeclaration", Wrapping.AfterObjCDeclaration); in mapping()
186 IO.mapOptional("AfterStruct", Wrapping.AfterStruct); in mapping()
187 IO.mapOptional("AfterUnion", Wrapping.AfterUnion); in mapping()
188 IO.mapOptional("BeforeCatch", Wrapping.BeforeCatch); in mapping()
189 IO.mapOptional("BeforeElse", Wrapping.BeforeElse); in mapping()
190 IO.mapOptional("BeforeLambdaBody", Wrapping.BeforeLambdaBody); in mapping()
191 IO.mapOptional("BeforeWhile", Wrapping.BeforeWhile); in mapping()
192 IO.mapOptional("IndentBraces", Wrapping.IndentBraces); in mapping()
193 IO.mapOptional("SplitEmptyFunction", Wrapping.SplitEmptyFunction); in mapping()
194 IO.mapOptional("SplitEmptyRecord", Wrapping.SplitEmptyRecord); in mapping()
195 IO.mapOptional("SplitEmptyNamespace", Wrapping.SplitEmptyNamespace); in mapping()
200 static void enumeration(IO &IO, FormatStyle::BracketAlignmentStyle &Value) { in enumeration()
201 IO.enumCase(Value, "Align", FormatStyle::BAS_Align); in enumeration()
202 IO.enumCase(Value, "DontAlign", FormatStyle::BAS_DontAlign); in enumeration()
203 IO.enumCase(Value, "AlwaysBreak", FormatStyle::BAS_AlwaysBreak); in enumeration()
204 IO.enumCase(Value, "BlockIndent", FormatStyle::BAS_BlockIndent); in enumeration()
207 IO.enumCase(Value, "true", FormatStyle::BAS_Align); in enumeration()
208 IO.enumCase(Value, "false", FormatStyle::BAS_DontAlign); in enumeration()
216 enumeration(IO &IO, in enumeration()
218 IO.enumCase(Value, "Never", FormatStyle::BWACS_Never); in enumeration()
219 IO.enumCase(Value, "MultiLine", FormatStyle::BWACS_MultiLine); in enumeration()
220 IO.enumCase(Value, "Always", FormatStyle::BWACS_Always); in enumeration()
223 IO.enumCase(Value, "false", FormatStyle::BWACS_Never); in enumeration()
224 IO.enumCase(Value, "true", FormatStyle::BWACS_Always); in enumeration()
232 enumeration(IO &IO, FormatStyle::BreakBeforeConceptDeclarationsStyle &Value) { in enumeration()
233 IO.enumCase(Value, "Never", FormatStyle::BBCDS_Never); in enumeration()
234 IO.enumCase(Value, "Allowed", FormatStyle::BBCDS_Allowed); in enumeration()
235 IO.enumCase(Value, "Always", FormatStyle::BBCDS_Always); in enumeration()
238 IO.enumCase(Value, "true", FormatStyle::BBCDS_Always); in enumeration()
239 IO.enumCase(Value, "false", FormatStyle::BBCDS_Allowed); in enumeration()
245 static void enumeration(IO &IO, in enumeration()
247 IO.enumCase(Value, "Never", FormatStyle::BBIAS_Never); in enumeration()
248 IO.enumCase(Value, "OnlyMultiline", FormatStyle::BBIAS_OnlyMultiline); in enumeration()
249 IO.enumCase(Value, "Always", FormatStyle::BBIAS_Always); in enumeration()
255 enumeration(IO &IO, FormatStyle::BreakConstructorInitializersStyle &Value) { in enumeration()
256 IO.enumCase(Value, "BeforeColon", FormatStyle::BCIS_BeforeColon); in enumeration()
257 IO.enumCase(Value, "BeforeComma", FormatStyle::BCIS_BeforeComma); in enumeration()
258 IO.enumCase(Value, "AfterColon", FormatStyle::BCIS_AfterColon); in enumeration()
264 static void enumeration(IO &IO, in enumeration()
266 IO.enumCase(Value, "BeforeColon", FormatStyle::BILS_BeforeColon); in enumeration()
267 IO.enumCase(Value, "BeforeComma", FormatStyle::BILS_BeforeComma); in enumeration()
268 IO.enumCase(Value, "AfterColon", FormatStyle::BILS_AfterColon); in enumeration()
269 IO.enumCase(Value, "AfterComma", FormatStyle::BILS_AfterComma); in enumeration()
275 static void enumeration(IO &IO, in enumeration()
277 IO.enumCase(Value, "No", FormatStyle::BTDS_No); in enumeration()
278 IO.enumCase(Value, "MultiLine", FormatStyle::BTDS_MultiLine); in enumeration()
279 IO.enumCase(Value, "Yes", FormatStyle::BTDS_Yes); in enumeration()
282 IO.enumCase(Value, "false", FormatStyle::BTDS_MultiLine); in enumeration()
283 IO.enumCase(Value, "true", FormatStyle::BTDS_Yes); in enumeration()
290 enumeration(IO &IO, FormatStyle::DefinitionReturnTypeBreakingStyle &Value) { in enumeration()
291 IO.enumCase(Value, "None", FormatStyle::DRTBS_None); in enumeration()
292 IO.enumCase(Value, "All", FormatStyle::DRTBS_All); in enumeration()
293 IO.enumCase(Value, "TopLevel", FormatStyle::DRTBS_TopLevel); in enumeration()
296 IO.enumCase(Value, "false", FormatStyle::DRTBS_None); in enumeration()
297 IO.enumCase(Value, "true", FormatStyle::DRTBS_All); in enumeration()
303 static void enumeration(IO &IO, in enumeration()
305 IO.enumCase(Value, "DontAlign", FormatStyle::ENAS_DontAlign); in enumeration()
306 IO.enumCase(Value, "Left", FormatStyle::ENAS_Left); in enumeration()
307 IO.enumCase(Value, "Right", FormatStyle::ENAS_Right); in enumeration()
310 IO.enumCase(Value, "true", FormatStyle::ENAS_Left); in enumeration()
311 IO.enumCase(Value, "false", FormatStyle::ENAS_Right); in enumeration()
318 enumeration(IO &IO, FormatStyle::EmptyLineAfterAccessModifierStyle &Value) { in enumeration()
319 IO.enumCase(Value, "Never", FormatStyle::ELAAMS_Never); in enumeration()
320 IO.enumCase(Value, "Leave", FormatStyle::ELAAMS_Leave); in enumeration()
321 IO.enumCase(Value, "Always", FormatStyle::ELAAMS_Always); in enumeration()
329 enumeration(IO &IO, FormatStyle::EmptyLineBeforeAccessModifierStyle &Value) { in enumeration()
330 IO.enumCase(Value, "Never", FormatStyle::ELBAMS_Never); in enumeration()
331 IO.enumCase(Value, "Leave", FormatStyle::ELBAMS_Leave); in enumeration()
332 IO.enumCase(Value, "LogicalBlock", FormatStyle::ELBAMS_LogicalBlock); in enumeration()
333 IO.enumCase(Value, "Always", FormatStyle::ELBAMS_Always); in enumeration()
339 static void enumeration(IO &IO, FormatStyle::IndentExternBlockStyle &Value) { in enumeration()
340 IO.enumCase(Value, "AfterExternBlock", FormatStyle::IEBS_AfterExternBlock); in enumeration()
341 IO.enumCase(Value, "Indent", FormatStyle::IEBS_Indent); in enumeration()
342 IO.enumCase(Value, "NoIndent", FormatStyle::IEBS_NoIndent); in enumeration()
343 IO.enumCase(Value, "true", FormatStyle::IEBS_Indent); in enumeration()
344 IO.enumCase(Value, "false", FormatStyle::IEBS_NoIndent); in enumeration()
349 static void mapping(IO &IO, FormatStyle::IntegerLiteralSeparatorStyle &Base) { in mapping()
350 IO.mapOptional("Binary", Base.Binary); in mapping()
351 IO.mapOptional("BinaryMinDigits", Base.BinaryMinDigits); in mapping()
352 IO.mapOptional("Decimal", Base.Decimal); in mapping()
353 IO.mapOptional("DecimalMinDigits", Base.DecimalMinDigits); in mapping()
354 IO.mapOptional("Hex", Base.Hex); in mapping()
355 IO.mapOptional("HexMinDigits", Base.HexMinDigits); in mapping()
360 static void enumeration(IO &IO, FormatStyle::JavaScriptQuoteStyle &Value) { in enumeration()
361 IO.enumCase(Value, "Leave", FormatStyle::JSQS_Leave); in enumeration()
362 IO.enumCase(Value, "Single", FormatStyle::JSQS_Single); in enumeration()
363 IO.enumCase(Value, "Double", FormatStyle::JSQS_Double); in enumeration()
368 static void enumeration(IO &IO, FormatStyle::LanguageKind &Value) { in enumeration()
369 IO.enumCase(Value, "Cpp", FormatStyle::LK_Cpp); in enumeration()
370 IO.enumCase(Value, "Java", FormatStyle::LK_Java); in enumeration()
371 IO.enumCase(Value, "JavaScript", FormatStyle::LK_JavaScript); in enumeration()
372 IO.enumCase(Value, "ObjC", FormatStyle::LK_ObjC); in enumeration()
373 IO.enumCase(Value, "Proto", FormatStyle::LK_Proto); in enumeration()
374 IO.enumCase(Value, "TableGen", FormatStyle::LK_TableGen); in enumeration()
375 IO.enumCase(Value, "TextProto", FormatStyle::LK_TextProto); in enumeration()
376 IO.enumCase(Value, "CSharp", FormatStyle::LK_CSharp); in enumeration()
377 IO.enumCase(Value, "Json", FormatStyle::LK_Json); in enumeration()
382 static void enumeration(IO &IO, FormatStyle::LanguageStandard &Value) { in enumeration()
383 IO.enumCase(Value, "c++03", FormatStyle::LS_Cpp03); in enumeration()
384 IO.enumCase(Value, "C++03", FormatStyle::LS_Cpp03); // Legacy alias in enumeration()
385 IO.enumCase(Value, "Cpp03", FormatStyle::LS_Cpp03); // Legacy alias in enumeration()
387 IO.enumCase(Value, "c++11", FormatStyle::LS_Cpp11); in enumeration()
388 IO.enumCase(Value, "C++11", FormatStyle::LS_Cpp11); // Legacy alias in enumeration()
390 IO.enumCase(Value, "c++14", FormatStyle::LS_Cpp14); in enumeration()
391 IO.enumCase(Value, "c++17", FormatStyle::LS_Cpp17); in enumeration()
392 IO.enumCase(Value, "c++20", FormatStyle::LS_Cpp20); in enumeration()
394 IO.enumCase(Value, "Latest", FormatStyle::LS_Latest); in enumeration()
395 IO.enumCase(Value, "Cpp11", FormatStyle::LS_Latest); // Legacy alias in enumeration()
396 IO.enumCase(Value, "Auto", FormatStyle::LS_Auto); in enumeration()
402 static void enumeration(IO &IO, in enumeration()
404 IO.enumCase(Value, "Signature", FormatStyle::LBI_Signature); in enumeration()
405 IO.enumCase(Value, "OuterScope", FormatStyle::LBI_OuterScope); in enumeration()
410 static void enumeration(IO &IO, FormatStyle::LineEndingStyle &Value) { in enumeration()
411 IO.enumCase(Value, "LF", FormatStyle::LE_LF); in enumeration()
412 IO.enumCase(Value, "CRLF", FormatStyle::LE_CRLF); in enumeration()
413 IO.enumCase(Value, "DeriveLF", FormatStyle::LE_DeriveLF); in enumeration()
414 IO.enumCase(Value, "DeriveCRLF", FormatStyle::LE_DeriveCRLF); in enumeration()
420 static void enumeration(IO &IO, in enumeration()
422 IO.enumCase(Value, "None", FormatStyle::NI_None); in enumeration()
423 IO.enumCase(Value, "Inner", FormatStyle::NI_Inner); in enumeration()
424 IO.enumCase(Value, "All", FormatStyle::NI_All); in enumeration()
429 static void enumeration(IO &IO, FormatStyle::OperandAlignmentStyle &Value) { in enumeration()
430 IO.enumCase(Value, "DontAlign", FormatStyle::OAS_DontAlign); in enumeration()
431 IO.enumCase(Value, "Align", FormatStyle::OAS_Align); in enumeration()
432 IO.enumCase(Value, "AlignAfterOperator", in enumeration()
436 IO.enumCase(Value, "true", FormatStyle::OAS_Align); in enumeration()
437 IO.enumCase(Value, "false", FormatStyle::OAS_DontAlign); in enumeration()
444 enumeration(IO &IO, FormatStyle::PackConstructorInitializersStyle &Value) { in enumeration()
445 IO.enumCase(Value, "Never", FormatStyle::PCIS_Never); in enumeration()
446 IO.enumCase(Value, "BinPack", FormatStyle::PCIS_BinPack); in enumeration()
447 IO.enumCase(Value, "CurrentLine", FormatStyle::PCIS_CurrentLine); in enumeration()
448 IO.enumCase(Value, "NextLine", FormatStyle::PCIS_NextLine); in enumeration()
453 static void enumeration(IO &IO, FormatStyle::PointerAlignmentStyle &Value) { in enumeration()
454 IO.enumCase(Value, "Middle", FormatStyle::PAS_Middle); in enumeration()
455 IO.enumCase(Value, "Left", FormatStyle::PAS_Left); in enumeration()
456 IO.enumCase(Value, "Right", FormatStyle::PAS_Right); in enumeration()
459 IO.enumCase(Value, "true", FormatStyle::PAS_Left); in enumeration()
460 IO.enumCase(Value, "false", FormatStyle::PAS_Right); in enumeration()
466 static void enumeration(IO &IO, FormatStyle::PPDirectiveIndentStyle &Value) { in enumeration()
467 IO.enumCase(Value, "None", FormatStyle::PPDIS_None); in enumeration()
468 IO.enumCase(Value, "AfterHash", FormatStyle::PPDIS_AfterHash); in enumeration()
469 IO.enumCase(Value, "BeforeHash", FormatStyle::PPDIS_BeforeHash); in enumeration()
475 static void enumeration(IO &IO, FormatStyle::QualifierAlignmentStyle &Value) { in enumeration()
476 IO.enumCase(Value, "Leave", FormatStyle::QAS_Leave); in enumeration()
477 IO.enumCase(Value, "Left", FormatStyle::QAS_Left); in enumeration()
478 IO.enumCase(Value, "Right", FormatStyle::QAS_Right); in enumeration()
479 IO.enumCase(Value, "Custom", FormatStyle::QAS_Custom); in enumeration()
484 static void mapping(IO &IO, FormatStyle::RawStringFormat &Format) { in mapping()
485 IO.mapOptional("Language", Format.Language); in mapping()
486 IO.mapOptional("Delimiters", Format.Delimiters); in mapping()
487 IO.mapOptional("EnclosingFunctions", Format.EnclosingFunctions); in mapping()
488 IO.mapOptional("CanonicalDelimiter", Format.CanonicalDelimiter); in mapping()
489 IO.mapOptional("BasedOnStyle", Format.BasedOnStyle); in mapping()
495 static void enumeration(IO &IO, FormatStyle::ReferenceAlignmentStyle &Value) { in enumeration()
496 IO.enumCase(Value, "Pointer", FormatStyle::RAS_Pointer); in enumeration()
497 IO.enumCase(Value, "Middle", FormatStyle::RAS_Middle); in enumeration()
498 IO.enumCase(Value, "Left", FormatStyle::RAS_Left); in enumeration()
499 IO.enumCase(Value, "Right", FormatStyle::RAS_Right); in enumeration()
505 static void enumeration(IO &IO, in enumeration()
507 IO.enumCase(Value, "OwnLine", FormatStyle::RCPS_OwnLine); in enumeration()
508 IO.enumCase(Value, "WithPreceding", FormatStyle::RCPS_WithPreceding); in enumeration()
509 IO.enumCase(Value, "WithFollowing", FormatStyle::RCPS_WithFollowing); in enumeration()
510 IO.enumCase(Value, "SingleLine", FormatStyle::RCPS_SingleLine); in enumeration()
517 enumeration(IO &IO, FormatStyle::RequiresExpressionIndentationKind &Value) { in enumeration()
518 IO.enumCase(Value, "Keyword", FormatStyle::REI_Keyword); in enumeration()
519 IO.enumCase(Value, "OuterScope", FormatStyle::REI_OuterScope); in enumeration()
525 static void enumeration(IO &IO, FormatStyle::ReturnTypeBreakingStyle &Value) { in enumeration()
526 IO.enumCase(Value, "None", FormatStyle::RTBS_None); in enumeration()
527 IO.enumCase(Value, "All", FormatStyle::RTBS_All); in enumeration()
528 IO.enumCase(Value, "TopLevel", FormatStyle::RTBS_TopLevel); in enumeration()
529 IO.enumCase(Value, "TopLevelDefinitions", in enumeration()
531 IO.enumCase(Value, "AllDefinitions", FormatStyle::RTBS_AllDefinitions); in enumeration()
537 static void enumeration(IO &IO, FormatStyle::SeparateDefinitionStyle &Value) { in enumeration()
538 IO.enumCase(Value, "Leave", FormatStyle::SDS_Leave); in enumeration()
539 IO.enumCase(Value, "Always", FormatStyle::SDS_Always); in enumeration()
540 IO.enumCase(Value, "Never", FormatStyle::SDS_Never); in enumeration()
545 static void enumeration(IO &IO, FormatStyle::ShortBlockStyle &Value) { in enumeration()
546 IO.enumCase(Value, "Never", FormatStyle::SBS_Never); in enumeration()
547 IO.enumCase(Value, "false", FormatStyle::SBS_Never); in enumeration()
548 IO.enumCase(Value, "Always", FormatStyle::SBS_Always); in enumeration()
549 IO.enumCase(Value, "true", FormatStyle::SBS_Always); in enumeration()
550 IO.enumCase(Value, "Empty", FormatStyle::SBS_Empty); in enumeration()
555 static void enumeration(IO &IO, FormatStyle::ShortFunctionStyle &Value) { in enumeration()
556 IO.enumCase(Value, "None", FormatStyle::SFS_None); in enumeration()
557 IO.enumCase(Value, "false", FormatStyle::SFS_None); in enumeration()
558 IO.enumCase(Value, "All", FormatStyle::SFS_All); in enumeration()
559 IO.enumCase(Value, "true", FormatStyle::SFS_All); in enumeration()
560 IO.enumCase(Value, "Inline", FormatStyle::SFS_Inline); in enumeration()
561 IO.enumCase(Value, "InlineOnly", FormatStyle::SFS_InlineOnly); in enumeration()
562 IO.enumCase(Value, "Empty", FormatStyle::SFS_Empty); in enumeration()
567 static void enumeration(IO &IO, FormatStyle::ShortIfStyle &Value) { in enumeration()
568 IO.enumCase(Value, "Never", FormatStyle::SIS_Never); in enumeration()
569 IO.enumCase(Value, "WithoutElse", FormatStyle::SIS_WithoutElse); in enumeration()
570 IO.enumCase(Value, "OnlyFirstIf", FormatStyle::SIS_OnlyFirstIf); in enumeration()
571 IO.enumCase(Value, "AllIfsAndElse", FormatStyle::SIS_AllIfsAndElse); in enumeration()
574 IO.enumCase(Value, "Always", FormatStyle::SIS_OnlyFirstIf); in enumeration()
575 IO.enumCase(Value, "false", FormatStyle::SIS_Never); in enumeration()
576 IO.enumCase(Value, "true", FormatStyle::SIS_WithoutElse); in enumeration()
581 static void enumeration(IO &IO, FormatStyle::ShortLambdaStyle &Value) { in enumeration()
582 IO.enumCase(Value, "None", FormatStyle::SLS_None); in enumeration()
583 IO.enumCase(Value, "false", FormatStyle::SLS_None); in enumeration()
584 IO.enumCase(Value, "Empty", FormatStyle::SLS_Empty); in enumeration()
585 IO.enumCase(Value, "Inline", FormatStyle::SLS_Inline); in enumeration()
586 IO.enumCase(Value, "All", FormatStyle::SLS_All); in enumeration()
587 IO.enumCase(Value, "true", FormatStyle::SLS_All); in enumeration()
592 static void enumeration(IO &IO, FormatStyle::SortIncludesOptions &Value) { in enumeration()
593 IO.enumCase(Value, "Never", FormatStyle::SI_Never); in enumeration()
594 IO.enumCase(Value, "CaseInsensitive", FormatStyle::SI_CaseInsensitive); in enumeration()
595 IO.enumCase(Value, "CaseSensitive", FormatStyle::SI_CaseSensitive); in enumeration()
598 IO.enumCase(Value, "false", FormatStyle::SI_Never); in enumeration()
599 IO.enumCase(Value, "true", FormatStyle::SI_CaseSensitive); in enumeration()
605 static void enumeration(IO &IO, in enumeration()
607 IO.enumCase(Value, "Before", FormatStyle::SJSIO_Before); in enumeration()
608 IO.enumCase(Value, "After", FormatStyle::SJSIO_After); in enumeration()
614 static void enumeration(IO &IO, in enumeration()
616 IO.enumCase(Value, "Never", FormatStyle::SUD_Never); in enumeration()
617 IO.enumCase(Value, "Lexicographic", FormatStyle::SUD_Lexicographic); in enumeration()
618 IO.enumCase(Value, "LexicographicNumeric", in enumeration()
622 IO.enumCase(Value, "false", FormatStyle::SUD_Never); in enumeration()
623 IO.enumCase(Value, "true", FormatStyle::SUD_LexicographicNumeric); in enumeration()
630 enumeration(IO &IO, FormatStyle::SpaceAroundPointerQualifiersStyle &Value) { in enumeration()
631 IO.enumCase(Value, "Default", FormatStyle::SAPQ_Default); in enumeration()
632 IO.enumCase(Value, "Before", FormatStyle::SAPQ_Before); in enumeration()
633 IO.enumCase(Value, "After", FormatStyle::SAPQ_After); in enumeration()
634 IO.enumCase(Value, "Both", FormatStyle::SAPQ_Both); in enumeration()
639 static void mapping(IO &IO, FormatStyle::SpaceBeforeParensCustom &Spacing) { in mapping()
640 IO.mapOptional("AfterControlStatements", Spacing.AfterControlStatements); in mapping()
641 IO.mapOptional("AfterForeachMacros", Spacing.AfterForeachMacros); in mapping()
642 IO.mapOptional("AfterFunctionDefinitionName", in mapping()
644 IO.mapOptional("AfterFunctionDeclarationName", in mapping()
646 IO.mapOptional("AfterIfMacros", Spacing.AfterIfMacros); in mapping()
647 IO.mapOptional("AfterOverloadedOperator", Spacing.AfterOverloadedOperator); in mapping()
648 IO.mapOptional("AfterRequiresInClause", Spacing.AfterRequiresInClause); in mapping()
649 IO.mapOptional("AfterRequiresInExpression", in mapping()
651 IO.mapOptional("BeforeNonEmptyParentheses", in mapping()
658 static void enumeration(IO &IO, FormatStyle::SpaceBeforeParensStyle &Value) { in enumeration()
659 IO.enumCase(Value, "Never", FormatStyle::SBPO_Never); in enumeration()
660 IO.enumCase(Value, "ControlStatements", in enumeration()
662 IO.enumCase(Value, "ControlStatementsExceptControlMacros", in enumeration()
664 IO.enumCase(Value, "NonEmptyParentheses", in enumeration()
666 IO.enumCase(Value, "Always", FormatStyle::SBPO_Always); in enumeration()
667 IO.enumCase(Value, "Custom", FormatStyle::SBPO_Custom); in enumeration()
670 IO.enumCase(Value, "false", FormatStyle::SBPO_Never); in enumeration()
671 IO.enumCase(Value, "true", FormatStyle::SBPO_ControlStatements); in enumeration()
672 IO.enumCase(Value, "ControlStatementsExceptForEachMacros", in enumeration()
678 static void enumeration(IO &IO, FormatStyle::SpacesInAnglesStyle &Value) { in enumeration()
679 IO.enumCase(Value, "Never", FormatStyle::SIAS_Never); in enumeration()
680 IO.enumCase(Value, "Always", FormatStyle::SIAS_Always); in enumeration()
681 IO.enumCase(Value, "Leave", FormatStyle::SIAS_Leave); in enumeration()
684 IO.enumCase(Value, "false", FormatStyle::SIAS_Never); in enumeration()
685 IO.enumCase(Value, "true", FormatStyle::SIAS_Always); in enumeration()
690 static void mapping(IO &IO, FormatStyle::SpacesInLineComment &Space) { in mapping()
693 IO.mapOptional("Minimum", Space.Minimum); in mapping()
694 IO.mapOptional("Maximum", signedMaximum); in mapping()
703 static void enumeration(IO &IO, FormatStyle::TrailingCommaStyle &Value) { in enumeration()
704 IO.enumCase(Value, "None", FormatStyle::TCS_None); in enumeration()
705 IO.enumCase(Value, "Wrapped", FormatStyle::TCS_Wrapped); in enumeration()
711 static void enumeration(IO &IO, in enumeration()
713 IO.enumCase(Value, "Leave", FormatStyle::TCAS_Leave); in enumeration()
714 IO.enumCase(Value, "Always", FormatStyle::TCAS_Always); in enumeration()
715 IO.enumCase(Value, "Never", FormatStyle::TCAS_Never); in enumeration()
720 static void enumInput(IO &IO, in enumInput()
722 IO.enumCase(Value, "Leave", in enumInput()
726 IO.enumCase(Value, "Always", in enumInput()
730 IO.enumCase(Value, "Never", in enumInput()
735 IO.enumCase(Value, "true", in enumInput()
738 IO.enumCase(Value, "false", in enumInput()
743 static void mapping(IO &IO, in mapping()
745 IO.mapOptional("Kind", Value.Kind); in mapping()
746 IO.mapOptional("OverEmptyLines", Value.OverEmptyLines); in mapping()
751 static void enumeration(IO &IO, FormatStyle::UseTabStyle &Value) { in enumeration()
752 IO.enumCase(Value, "Never", FormatStyle::UT_Never); in enumeration()
753 IO.enumCase(Value, "false", FormatStyle::UT_Never); in enumeration()
754 IO.enumCase(Value, "Always", FormatStyle::UT_Always); in enumeration()
755 IO.enumCase(Value, "true", FormatStyle::UT_Always); in enumeration()
756 IO.enumCase(Value, "ForIndentation", FormatStyle::UT_ForIndentation); in enumeration()
757 IO.enumCase(Value, "ForContinuationAndIndentation", in enumeration()
759 IO.enumCase(Value, "AlignWithSpaces", FormatStyle::UT_AlignWithSpaces); in enumeration()
764 static void mapping(IO &IO, FormatStyle &Style) { in mapping()
766 IO.mapOptional("Language", Style.Language); in mapping()
769 if (IO.outputting()) { in mapping()
776 IO.mapOptional("# BasedOnStyle", StyleName); in mapping()
782 IO.mapOptional("BasedOnStyle", BasedOnStyle); in mapping()
786 ((FormatStyle *)IO.getContext())->Language; in mapping()
788 IO.setError(Twine("Unknown value for BasedOnStyle: ", BasedOnStyle)); in mapping()
818 if (!IO.outputting()) { in mapping()
819 IO.mapOptional("AlignEscapedNewlinesLeft", Style.AlignEscapedNewlines); in mapping()
820 IO.mapOptional("AllowAllConstructorInitializersOnNextLine", OnNextLine); in mapping()
821 IO.mapOptional("BreakBeforeInheritanceComma", in mapping()
823 IO.mapOptional("BreakConstructorInitializersBeforeComma", in mapping()
825 IO.mapOptional("ConstructorInitializerAllOnOneLineOrOnePerLine", in mapping()
827 IO.mapOptional("DeriveLineEnding", DeriveLineEnding); in mapping()
828 IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment); in mapping()
829 IO.mapOptional("IndentFunctionDeclarationAfterType", in mapping()
831 IO.mapOptional("IndentRequires", Style.IndentRequiresClause); in mapping()
832 IO.mapOptional("PointerBindsToType", Style.PointerAlignment); in mapping()
833 IO.mapOptional("SpaceAfterControlStatementKeyword", in mapping()
835 IO.mapOptional("UseCRLF", UseCRLF); in mapping()
838 IO.mapOptional("AccessModifierOffset", Style.AccessModifierOffset); in mapping()
839 IO.mapOptional("AlignAfterOpenBracket", Style.AlignAfterOpenBracket); in mapping()
840 IO.mapOptional("AlignArrayOfStructures", Style.AlignArrayOfStructures); in mapping()
841 IO.mapOptional("AlignConsecutiveAssignments", in mapping()
843 IO.mapOptional("AlignConsecutiveBitFields", in mapping()
845 IO.mapOptional("AlignConsecutiveDeclarations", in mapping()
847 IO.mapOptional("AlignConsecutiveMacros", Style.AlignConsecutiveMacros); in mapping()
848 IO.mapOptional("AlignEscapedNewlines", Style.AlignEscapedNewlines); in mapping()
849 IO.mapOptional("AlignOperands", Style.AlignOperands); in mapping()
850 IO.mapOptional("AlignTrailingComments", Style.AlignTrailingComments); in mapping()
851 IO.mapOptional("AllowAllArgumentsOnNextLine", in mapping()
853 IO.mapOptional("AllowAllParametersOfDeclarationOnNextLine", in mapping()
855 IO.mapOptional("AllowShortBlocksOnASingleLine", in mapping()
857 IO.mapOptional("AllowShortCaseLabelsOnASingleLine", in mapping()
859 IO.mapOptional("AllowShortEnumsOnASingleLine", in mapping()
861 IO.mapOptional("AllowShortFunctionsOnASingleLine", in mapping()
863 IO.mapOptional("AllowShortIfStatementsOnASingleLine", in mapping()
865 IO.mapOptional("AllowShortLambdasOnASingleLine", in mapping()
867 IO.mapOptional("AllowShortLoopsOnASingleLine", in mapping()
869 IO.mapOptional("AlwaysBreakAfterDefinitionReturnType", in mapping()
871 IO.mapOptional("AlwaysBreakAfterReturnType", in mapping()
873 IO.mapOptional("AlwaysBreakBeforeMultilineStrings", in mapping()
875 IO.mapOptional("AlwaysBreakTemplateDeclarations", in mapping()
877 IO.mapOptional("AttributeMacros", Style.AttributeMacros); in mapping()
878 IO.mapOptional("BinPackArguments", Style.BinPackArguments); in mapping()
879 IO.mapOptional("BinPackParameters", Style.BinPackParameters); in mapping()
880 IO.mapOptional("BitFieldColonSpacing", Style.BitFieldColonSpacing); in mapping()
881 IO.mapOptional("BraceWrapping", Style.BraceWrapping); in mapping()
882 IO.mapOptional("BreakAfterAttributes", Style.BreakAfterAttributes); in mapping()
883 IO.mapOptional("BreakAfterJavaFieldAnnotations", in mapping()
885 IO.mapOptional("BreakArrays", Style.BreakArrays); in mapping()
886 IO.mapOptional("BreakBeforeBinaryOperators", in mapping()
888 IO.mapOptional("BreakBeforeConceptDeclarations", in mapping()
890 IO.mapOptional("BreakBeforeBraces", Style.BreakBeforeBraces); in mapping()
891 IO.mapOptional("BreakBeforeInlineASMColon", in mapping()
893 IO.mapOptional("BreakBeforeTernaryOperators", in mapping()
895 IO.mapOptional("BreakConstructorInitializers", in mapping()
897 IO.mapOptional("BreakInheritanceList", Style.BreakInheritanceList); in mapping()
898 IO.mapOptional("BreakStringLiterals", Style.BreakStringLiterals); in mapping()
899 IO.mapOptional("ColumnLimit", Style.ColumnLimit); in mapping()
900 IO.mapOptional("CommentPragmas", Style.CommentPragmas); in mapping()
901 IO.mapOptional("CompactNamespaces", Style.CompactNamespaces); in mapping()
902 IO.mapOptional("ConstructorInitializerIndentWidth", in mapping()
904 IO.mapOptional("ContinuationIndentWidth", Style.ContinuationIndentWidth); in mapping()
905 IO.mapOptional("Cpp11BracedListStyle", Style.Cpp11BracedListStyle); in mapping()
906 IO.mapOptional("DerivePointerAlignment", Style.DerivePointerAlignment); in mapping()
907 IO.mapOptional("DisableFormat", Style.DisableFormat); in mapping()
908 IO.mapOptional("EmptyLineAfterAccessModifier", in mapping()
910 IO.mapOptional("EmptyLineBeforeAccessModifier", in mapping()
912 IO.mapOptional("ExperimentalAutoDetectBinPacking", in mapping()
914 IO.mapOptional("FixNamespaceComments", Style.FixNamespaceComments); in mapping()
915 IO.mapOptional("ForEachMacros", Style.ForEachMacros); in mapping()
916 IO.mapOptional("IfMacros", Style.IfMacros); in mapping()
917 IO.mapOptional("IncludeBlocks", Style.IncludeStyle.IncludeBlocks); in mapping()
918 IO.mapOptional("IncludeCategories", Style.IncludeStyle.IncludeCategories); in mapping()
919 IO.mapOptional("IncludeIsMainRegex", Style.IncludeStyle.IncludeIsMainRegex); in mapping()
920 IO.mapOptional("IncludeIsMainSourceRegex", in mapping()
922 IO.mapOptional("IndentAccessModifiers", Style.IndentAccessModifiers); in mapping()
923 IO.mapOptional("IndentCaseBlocks", Style.IndentCaseBlocks); in mapping()
924 IO.mapOptional("IndentCaseLabels", Style.IndentCaseLabels); in mapping()
925 IO.mapOptional("IndentExternBlock", Style.IndentExternBlock); in mapping()
926 IO.mapOptional("IndentGotoLabels", Style.IndentGotoLabels); in mapping()
927 IO.mapOptional("IndentPPDirectives", Style.IndentPPDirectives); in mapping()
928 IO.mapOptional("IndentRequiresClause", Style.IndentRequiresClause); in mapping()
929 IO.mapOptional("IndentWidth", Style.IndentWidth); in mapping()
930 IO.mapOptional("IndentWrappedFunctionNames", in mapping()
932 IO.mapOptional("InsertBraces", Style.InsertBraces); in mapping()
933 IO.mapOptional("InsertNewlineAtEOF", Style.InsertNewlineAtEOF); in mapping()
934 IO.mapOptional("InsertTrailingCommas", Style.InsertTrailingCommas); in mapping()
935 IO.mapOptional("IntegerLiteralSeparator", Style.IntegerLiteralSeparator); in mapping()
936 IO.mapOptional("JavaImportGroups", Style.JavaImportGroups); in mapping()
937 IO.mapOptional("JavaScriptQuotes", Style.JavaScriptQuotes); in mapping()
938 IO.mapOptional("JavaScriptWrapImports", Style.JavaScriptWrapImports); in mapping()
939 IO.mapOptional("KeepEmptyLinesAtTheStartOfBlocks", in mapping()
941 IO.mapOptional("LambdaBodyIndentation", Style.LambdaBodyIndentation); in mapping()
942 IO.mapOptional("LineEnding", Style.LineEnding); in mapping()
943 IO.mapOptional("MacroBlockBegin", Style.MacroBlockBegin); in mapping()
944 IO.mapOptional("MacroBlockEnd", Style.MacroBlockEnd); in mapping()
945 IO.mapOptional("MaxEmptyLinesToKeep", Style.MaxEmptyLinesToKeep); in mapping()
946 IO.mapOptional("NamespaceIndentation", Style.NamespaceIndentation); in mapping()
947 IO.mapOptional("NamespaceMacros", Style.NamespaceMacros); in mapping()
948 IO.mapOptional("ObjCBinPackProtocolList", Style.ObjCBinPackProtocolList); in mapping()
949 IO.mapOptional("ObjCBlockIndentWidth", Style.ObjCBlockIndentWidth); in mapping()
950 IO.mapOptional("ObjCBreakBeforeNestedBlockParam", in mapping()
952 IO.mapOptional("ObjCSpaceAfterProperty", Style.ObjCSpaceAfterProperty); in mapping()
953 IO.mapOptional("ObjCSpaceBeforeProtocolList", in mapping()
955 IO.mapOptional("PackConstructorInitializers", in mapping()
957 IO.mapOptional("PenaltyBreakAssignment", Style.PenaltyBreakAssignment); in mapping()
958 IO.mapOptional("PenaltyBreakBeforeFirstCallParameter", in mapping()
960 IO.mapOptional("PenaltyBreakComment", Style.PenaltyBreakComment); in mapping()
961 IO.mapOptional("PenaltyBreakFirstLessLess", in mapping()
963 IO.mapOptional("PenaltyBreakOpenParenthesis", in mapping()
965 IO.mapOptional("PenaltyBreakString", Style.PenaltyBreakString); in mapping()
966 IO.mapOptional("PenaltyBreakTemplateDeclaration", in mapping()
968 IO.mapOptional("PenaltyExcessCharacter", Style.PenaltyExcessCharacter); in mapping()
969 IO.mapOptional("PenaltyIndentedWhitespace", in mapping()
971 IO.mapOptional("PenaltyReturnTypeOnItsOwnLine", in mapping()
973 IO.mapOptional("PointerAlignment", Style.PointerAlignment); in mapping()
974 IO.mapOptional("PPIndentWidth", Style.PPIndentWidth); in mapping()
975 IO.mapOptional("QualifierAlignment", Style.QualifierAlignment); in mapping()
982 IO.mapOptional("QualifierOrder", Style.QualifierOrder); in mapping()
983 IO.mapOptional("RawStringFormats", Style.RawStringFormats); in mapping()
984 IO.mapOptional("ReferenceAlignment", Style.ReferenceAlignment); in mapping()
985 IO.mapOptional("ReflowComments", Style.ReflowComments); in mapping()
986 IO.mapOptional("RemoveBracesLLVM", Style.RemoveBracesLLVM); in mapping()
987 IO.mapOptional("RemoveSemicolon", Style.RemoveSemicolon); in mapping()
988 IO.mapOptional("RequiresClausePosition", Style.RequiresClausePosition); in mapping()
989 IO.mapOptional("RequiresExpressionIndentation", in mapping()
991 IO.mapOptional("SeparateDefinitionBlocks", Style.SeparateDefinitionBlocks); in mapping()
992 IO.mapOptional("ShortNamespaceLines", Style.ShortNamespaceLines); in mapping()
993 IO.mapOptional("SortIncludes", Style.SortIncludes); in mapping()
994 IO.mapOptional("SortJavaStaticImport", Style.SortJavaStaticImport); in mapping()
995 IO.mapOptional("SortUsingDeclarations", Style.SortUsingDeclarations); in mapping()
996 IO.mapOptional("SpaceAfterCStyleCast", Style.SpaceAfterCStyleCast); in mapping()
997 IO.mapOptional("SpaceAfterLogicalNot", Style.SpaceAfterLogicalNot); in mapping()
998 IO.mapOptional("SpaceAfterTemplateKeyword", in mapping()
1000 IO.mapOptional("SpaceAroundPointerQualifiers", in mapping()
1002 IO.mapOptional("SpaceBeforeAssignmentOperators", in mapping()
1004 IO.mapOptional("SpaceBeforeCaseColon", Style.SpaceBeforeCaseColon); in mapping()
1005 IO.mapOptional("SpaceBeforeCpp11BracedList", in mapping()
1007 IO.mapOptional("SpaceBeforeCtorInitializerColon", in mapping()
1009 IO.mapOptional("SpaceBeforeInheritanceColon", in mapping()
1011 IO.mapOptional("SpaceBeforeParens", Style.SpaceBeforeParens); in mapping()
1012 IO.mapOptional("SpaceBeforeParensOptions", Style.SpaceBeforeParensOptions); in mapping()
1013 IO.mapOptional("SpaceBeforeRangeBasedForLoopColon", in mapping()
1015 IO.mapOptional("SpaceBeforeSquareBrackets", in mapping()
1017 IO.mapOptional("SpaceInEmptyBlock", Style.SpaceInEmptyBlock); in mapping()
1018 IO.mapOptional("SpaceInEmptyParentheses", Style.SpaceInEmptyParentheses); in mapping()
1019 IO.mapOptional("SpacesBeforeTrailingComments", in mapping()
1021 IO.mapOptional("SpacesInAngles", Style.SpacesInAngles); in mapping()
1022 IO.mapOptional("SpacesInConditionalStatement", in mapping()
1024 IO.mapOptional("SpacesInContainerLiterals", in mapping()
1026 IO.mapOptional("SpacesInCStyleCastParentheses", in mapping()
1028 IO.mapOptional("SpacesInLineCommentPrefix", in mapping()
1030 IO.mapOptional("SpacesInParentheses", Style.SpacesInParentheses); in mapping()
1031 IO.mapOptional("SpacesInSquareBrackets", Style.SpacesInSquareBrackets); in mapping()
1032 IO.mapOptional("Standard", Style.Standard); in mapping()
1033 IO.mapOptional("StatementAttributeLikeMacros", in mapping()
1035 IO.mapOptional("StatementMacros", Style.StatementMacros); in mapping()
1036 IO.mapOptional("TabWidth", Style.TabWidth); in mapping()
1037 IO.mapOptional("TypenameMacros", Style.TypenameMacros); in mapping()
1038 IO.mapOptional("UseTab", Style.UseTab); in mapping()
1039 IO.mapOptional("WhitespaceSensitiveMacros", in mapping()
1102 static size_t size(IO &IO, std::vector<FormatStyle> &Seq) { in size()
1105 static FormatStyle &element(IO &IO, std::vector<FormatStyle> &Seq, in element()
1113 Template = *((const FormatStyle *)IO.getContext()); in element()