Lines Matching refs:IO

61   static void enumeration(IO &IO, FormatStyle::LanguageKind &Value) {  in enumeration()
62 IO.enumCase(Value, "Cpp", FormatStyle::LK_Cpp); in enumeration()
63 IO.enumCase(Value, "Java", FormatStyle::LK_Java); in enumeration()
64 IO.enumCase(Value, "JavaScript", FormatStyle::LK_JavaScript); in enumeration()
65 IO.enumCase(Value, "ObjC", FormatStyle::LK_ObjC); in enumeration()
66 IO.enumCase(Value, "Proto", FormatStyle::LK_Proto); in enumeration()
67 IO.enumCase(Value, "TableGen", FormatStyle::LK_TableGen); in enumeration()
68 IO.enumCase(Value, "TextProto", FormatStyle::LK_TextProto); in enumeration()
69 IO.enumCase(Value, "CSharp", FormatStyle::LK_CSharp); in enumeration()
70 IO.enumCase(Value, "Json", FormatStyle::LK_Json); in enumeration()
75 static void enumeration(IO &IO, FormatStyle::LanguageStandard &Value) { in enumeration()
76 IO.enumCase(Value, "c++03", FormatStyle::LS_Cpp03); in enumeration()
77 IO.enumCase(Value, "C++03", FormatStyle::LS_Cpp03); // Legacy alias in enumeration()
78 IO.enumCase(Value, "Cpp03", FormatStyle::LS_Cpp03); // Legacy alias in enumeration()
80 IO.enumCase(Value, "c++11", FormatStyle::LS_Cpp11); in enumeration()
81 IO.enumCase(Value, "C++11", FormatStyle::LS_Cpp11); // Legacy alias in enumeration()
83 IO.enumCase(Value, "c++14", FormatStyle::LS_Cpp14); in enumeration()
84 IO.enumCase(Value, "c++17", FormatStyle::LS_Cpp17); in enumeration()
85 IO.enumCase(Value, "c++20", FormatStyle::LS_Cpp20); in enumeration()
87 IO.enumCase(Value, "Latest", FormatStyle::LS_Latest); in enumeration()
88 IO.enumCase(Value, "Cpp11", FormatStyle::LS_Latest); // Legacy alias in enumeration()
89 IO.enumCase(Value, "Auto", FormatStyle::LS_Auto); in enumeration()
95 static void enumeration(IO &IO, in enumeration()
97 IO.enumCase(Value, "Signature", FormatStyle::LBI_Signature); in enumeration()
98 IO.enumCase(Value, "OuterScope", FormatStyle::LBI_OuterScope); in enumeration()
103 static void enumeration(IO &IO, FormatStyle::UseTabStyle &Value) { in enumeration()
104 IO.enumCase(Value, "Never", FormatStyle::UT_Never); in enumeration()
105 IO.enumCase(Value, "false", FormatStyle::UT_Never); in enumeration()
106 IO.enumCase(Value, "Always", FormatStyle::UT_Always); in enumeration()
107 IO.enumCase(Value, "true", FormatStyle::UT_Always); in enumeration()
108 IO.enumCase(Value, "ForIndentation", FormatStyle::UT_ForIndentation); in enumeration()
109 IO.enumCase(Value, "ForContinuationAndIndentation", in enumeration()
111 IO.enumCase(Value, "AlignWithSpaces", FormatStyle::UT_AlignWithSpaces); in enumeration()
116 static void enumeration(IO &IO, FormatStyle::JavaScriptQuoteStyle &Value) { in enumeration()
117 IO.enumCase(Value, "Leave", FormatStyle::JSQS_Leave); in enumeration()
118 IO.enumCase(Value, "Single", FormatStyle::JSQS_Single); in enumeration()
119 IO.enumCase(Value, "Double", FormatStyle::JSQS_Double); in enumeration()
124 static void enumeration(IO &IO, FormatStyle::ShortBlockStyle &Value) { in enumeration()
125 IO.enumCase(Value, "Never", FormatStyle::SBS_Never); in enumeration()
126 IO.enumCase(Value, "false", FormatStyle::SBS_Never); in enumeration()
127 IO.enumCase(Value, "Always", FormatStyle::SBS_Always); in enumeration()
128 IO.enumCase(Value, "true", FormatStyle::SBS_Always); in enumeration()
129 IO.enumCase(Value, "Empty", FormatStyle::SBS_Empty); in enumeration()
135 static void enumeration(IO &IO, FormatStyle::QualifierAlignmentStyle &Value) { in enumeration()
136 IO.enumCase(Value, "Leave", FormatStyle::QAS_Leave); in enumeration()
137 IO.enumCase(Value, "Left", FormatStyle::QAS_Left); in enumeration()
138 IO.enumCase(Value, "Right", FormatStyle::QAS_Right); in enumeration()
139 IO.enumCase(Value, "Custom", FormatStyle::QAS_Custom); in enumeration()
144 static void enumeration(IO &IO, FormatStyle::ShortFunctionStyle &Value) { in enumeration()
145 IO.enumCase(Value, "None", FormatStyle::SFS_None); in enumeration()
146 IO.enumCase(Value, "false", FormatStyle::SFS_None); in enumeration()
147 IO.enumCase(Value, "All", FormatStyle::SFS_All); in enumeration()
148 IO.enumCase(Value, "true", FormatStyle::SFS_All); in enumeration()
149 IO.enumCase(Value, "Inline", FormatStyle::SFS_Inline); in enumeration()
150 IO.enumCase(Value, "InlineOnly", FormatStyle::SFS_InlineOnly); in enumeration()
151 IO.enumCase(Value, "Empty", FormatStyle::SFS_Empty); in enumeration()
156 static void enumInput(IO &IO, FormatStyle::AlignConsecutiveStyle &Value) { in enumInput()
157 IO.enumCase(Value, "None", in enumInput()
162 IO.enumCase(Value, "Consecutive", in enumInput()
167 IO.enumCase(Value, "AcrossEmptyLines", in enumInput()
172 IO.enumCase(Value, "AcrossComments", in enumInput()
178 IO.enumCase(Value, "AcrossEmptyLinesAndComments", in enumInput()
186 IO.enumCase(Value, "true", in enumInput()
191 IO.enumCase(Value, "false", in enumInput()
198 static void mapping(IO &IO, FormatStyle::AlignConsecutiveStyle &Value) { in mapping()
199 IO.mapOptional("Enabled", Value.Enabled); in mapping()
200 IO.mapOptional("AcrossEmptyLines", Value.AcrossEmptyLines); in mapping()
201 IO.mapOptional("AcrossComments", Value.AcrossComments); in mapping()
202 IO.mapOptional("AlignCompound", Value.AlignCompound); in mapping()
203 IO.mapOptional("PadOperators", Value.PadOperators); in mapping()
209 static void enumeration(IO &IO, in enumeration()
211 IO.enumCase(Value, "None", FormatStyle::AIAS_None); in enumeration()
212 IO.enumCase(Value, "Left", FormatStyle::AIAS_Left); in enumeration()
213 IO.enumCase(Value, "Right", FormatStyle::AIAS_Right); in enumeration()
218 static void enumeration(IO &IO, FormatStyle::ShortIfStyle &Value) { in enumeration()
219 IO.enumCase(Value, "Never", FormatStyle::SIS_Never); in enumeration()
220 IO.enumCase(Value, "WithoutElse", FormatStyle::SIS_WithoutElse); in enumeration()
221 IO.enumCase(Value, "OnlyFirstIf", FormatStyle::SIS_OnlyFirstIf); in enumeration()
222 IO.enumCase(Value, "AllIfsAndElse", FormatStyle::SIS_AllIfsAndElse); in enumeration()
225 IO.enumCase(Value, "Always", FormatStyle::SIS_OnlyFirstIf); in enumeration()
226 IO.enumCase(Value, "false", FormatStyle::SIS_Never); in enumeration()
227 IO.enumCase(Value, "true", FormatStyle::SIS_WithoutElse); in enumeration()
232 static void enumeration(IO &IO, FormatStyle::ShortLambdaStyle &Value) { in enumeration()
233 IO.enumCase(Value, "None", FormatStyle::SLS_None); in enumeration()
234 IO.enumCase(Value, "false", FormatStyle::SLS_None); in enumeration()
235 IO.enumCase(Value, "Empty", FormatStyle::SLS_Empty); in enumeration()
236 IO.enumCase(Value, "Inline", FormatStyle::SLS_Inline); in enumeration()
237 IO.enumCase(Value, "All", FormatStyle::SLS_All); in enumeration()
238 IO.enumCase(Value, "true", FormatStyle::SLS_All); in enumeration()
243 static void enumeration(IO &IO, FormatStyle::BinPackStyle &Value) { in enumeration()
244 IO.enumCase(Value, "Auto", FormatStyle::BPS_Auto); in enumeration()
245 IO.enumCase(Value, "Always", FormatStyle::BPS_Always); in enumeration()
246 IO.enumCase(Value, "Never", FormatStyle::BPS_Never); in enumeration()
251 static void enumeration(IO &IO, FormatStyle::TrailingCommaStyle &Value) { in enumeration()
252 IO.enumCase(Value, "None", FormatStyle::TCS_None); in enumeration()
253 IO.enumCase(Value, "Wrapped", FormatStyle::TCS_Wrapped); in enumeration()
258 static void enumeration(IO &IO, FormatStyle::BinaryOperatorStyle &Value) { in enumeration()
259 IO.enumCase(Value, "All", FormatStyle::BOS_All); in enumeration()
260 IO.enumCase(Value, "true", FormatStyle::BOS_All); in enumeration()
261 IO.enumCase(Value, "None", FormatStyle::BOS_None); in enumeration()
262 IO.enumCase(Value, "false", FormatStyle::BOS_None); in enumeration()
263 IO.enumCase(Value, "NonAssignment", FormatStyle::BOS_NonAssignment); in enumeration()
268 static void enumeration(IO &IO, FormatStyle::BraceBreakingStyle &Value) { in enumeration()
269 IO.enumCase(Value, "Attach", FormatStyle::BS_Attach); in enumeration()
270 IO.enumCase(Value, "Linux", FormatStyle::BS_Linux); in enumeration()
271 IO.enumCase(Value, "Mozilla", FormatStyle::BS_Mozilla); in enumeration()
272 IO.enumCase(Value, "Stroustrup", FormatStyle::BS_Stroustrup); in enumeration()
273 IO.enumCase(Value, "Allman", FormatStyle::BS_Allman); in enumeration()
274 IO.enumCase(Value, "Whitesmiths", FormatStyle::BS_Whitesmiths); in enumeration()
275 IO.enumCase(Value, "GNU", FormatStyle::BS_GNU); in enumeration()
276 IO.enumCase(Value, "WebKit", FormatStyle::BS_WebKit); in enumeration()
277 IO.enumCase(Value, "Custom", FormatStyle::BS_Custom); in enumeration()
285 enumeration(IO &IO, in enumeration()
287 IO.enumCase(Value, "Never", FormatStyle::BWACS_Never); in enumeration()
288 IO.enumCase(Value, "MultiLine", FormatStyle::BWACS_MultiLine); in enumeration()
289 IO.enumCase(Value, "Always", FormatStyle::BWACS_Always); in enumeration()
292 IO.enumCase(Value, "false", FormatStyle::BWACS_Never); in enumeration()
293 IO.enumCase(Value, "true", FormatStyle::BWACS_Always); in enumeration()
301 enumeration(IO &IO, FormatStyle::BreakBeforeConceptDeclarationsStyle &Value) { in enumeration()
302 IO.enumCase(Value, "Never", FormatStyle::BBCDS_Never); in enumeration()
303 IO.enumCase(Value, "Allowed", FormatStyle::BBCDS_Allowed); in enumeration()
304 IO.enumCase(Value, "Always", FormatStyle::BBCDS_Always); in enumeration()
307 IO.enumCase(Value, "true", FormatStyle::BBCDS_Always); in enumeration()
308 IO.enumCase(Value, "false", FormatStyle::BBCDS_Allowed); in enumeration()
315 enumeration(IO &IO, FormatStyle::BreakConstructorInitializersStyle &Value) { in enumeration()
316 IO.enumCase(Value, "BeforeColon", FormatStyle::BCIS_BeforeColon); in enumeration()
317 IO.enumCase(Value, "BeforeComma", FormatStyle::BCIS_BeforeComma); in enumeration()
318 IO.enumCase(Value, "AfterColon", FormatStyle::BCIS_AfterColon); in enumeration()
324 static void enumeration(IO &IO, in enumeration()
326 IO.enumCase(Value, "BeforeColon", FormatStyle::BILS_BeforeColon); in enumeration()
327 IO.enumCase(Value, "BeforeComma", FormatStyle::BILS_BeforeComma); in enumeration()
328 IO.enumCase(Value, "AfterColon", FormatStyle::BILS_AfterColon); in enumeration()
329 IO.enumCase(Value, "AfterComma", FormatStyle::BILS_AfterComma); in enumeration()
336 enumeration(IO &IO, FormatStyle::PackConstructorInitializersStyle &Value) { in enumeration()
337 IO.enumCase(Value, "Never", FormatStyle::PCIS_Never); in enumeration()
338 IO.enumCase(Value, "BinPack", FormatStyle::PCIS_BinPack); in enumeration()
339 IO.enumCase(Value, "CurrentLine", FormatStyle::PCIS_CurrentLine); in enumeration()
340 IO.enumCase(Value, "NextLine", FormatStyle::PCIS_NextLine); in enumeration()
347 enumeration(IO &IO, FormatStyle::EmptyLineAfterAccessModifierStyle &Value) { in enumeration()
348 IO.enumCase(Value, "Never", FormatStyle::ELAAMS_Never); in enumeration()
349 IO.enumCase(Value, "Leave", FormatStyle::ELAAMS_Leave); in enumeration()
350 IO.enumCase(Value, "Always", FormatStyle::ELAAMS_Always); in enumeration()
358 enumeration(IO &IO, FormatStyle::EmptyLineBeforeAccessModifierStyle &Value) { in enumeration()
359 IO.enumCase(Value, "Never", FormatStyle::ELBAMS_Never); in enumeration()
360 IO.enumCase(Value, "Leave", FormatStyle::ELBAMS_Leave); in enumeration()
361 IO.enumCase(Value, "LogicalBlock", FormatStyle::ELBAMS_LogicalBlock); in enumeration()
362 IO.enumCase(Value, "Always", FormatStyle::ELBAMS_Always); in enumeration()
368 static void enumeration(IO &IO, FormatStyle::PPDirectiveIndentStyle &Value) { in enumeration()
369 IO.enumCase(Value, "None", FormatStyle::PPDIS_None); in enumeration()
370 IO.enumCase(Value, "AfterHash", FormatStyle::PPDIS_AfterHash); in enumeration()
371 IO.enumCase(Value, "BeforeHash", FormatStyle::PPDIS_BeforeHash); in enumeration()
377 static void enumeration(IO &IO, FormatStyle::IndentExternBlockStyle &Value) { in enumeration()
378 IO.enumCase(Value, "AfterExternBlock", FormatStyle::IEBS_AfterExternBlock); in enumeration()
379 IO.enumCase(Value, "Indent", FormatStyle::IEBS_Indent); in enumeration()
380 IO.enumCase(Value, "NoIndent", FormatStyle::IEBS_NoIndent); in enumeration()
381 IO.enumCase(Value, "true", FormatStyle::IEBS_Indent); in enumeration()
382 IO.enumCase(Value, "false", FormatStyle::IEBS_NoIndent); in enumeration()
388 static void enumeration(IO &IO, FormatStyle::ReturnTypeBreakingStyle &Value) { in enumeration()
389 IO.enumCase(Value, "None", FormatStyle::RTBS_None); in enumeration()
390 IO.enumCase(Value, "All", FormatStyle::RTBS_All); in enumeration()
391 IO.enumCase(Value, "TopLevel", FormatStyle::RTBS_TopLevel); in enumeration()
392 IO.enumCase(Value, "TopLevelDefinitions", in enumeration()
394 IO.enumCase(Value, "AllDefinitions", FormatStyle::RTBS_AllDefinitions); in enumeration()
400 static void enumeration(IO &IO, in enumeration()
402 IO.enumCase(Value, "No", FormatStyle::BTDS_No); in enumeration()
403 IO.enumCase(Value, "MultiLine", FormatStyle::BTDS_MultiLine); in enumeration()
404 IO.enumCase(Value, "Yes", FormatStyle::BTDS_Yes); in enumeration()
407 IO.enumCase(Value, "false", FormatStyle::BTDS_MultiLine); in enumeration()
408 IO.enumCase(Value, "true", FormatStyle::BTDS_Yes); in enumeration()
415 enumeration(IO &IO, FormatStyle::DefinitionReturnTypeBreakingStyle &Value) { in enumeration()
416 IO.enumCase(Value, "None", FormatStyle::DRTBS_None); in enumeration()
417 IO.enumCase(Value, "All", FormatStyle::DRTBS_All); in enumeration()
418 IO.enumCase(Value, "TopLevel", FormatStyle::DRTBS_TopLevel); in enumeration()
421 IO.enumCase(Value, "false", FormatStyle::DRTBS_None); in enumeration()
422 IO.enumCase(Value, "true", FormatStyle::DRTBS_All); in enumeration()
428 static void enumeration(IO &IO, in enumeration()
430 IO.enumCase(Value, "None", FormatStyle::NI_None); in enumeration()
431 IO.enumCase(Value, "Inner", FormatStyle::NI_Inner); in enumeration()
432 IO.enumCase(Value, "All", FormatStyle::NI_All); in enumeration()
437 static void enumeration(IO &IO, FormatStyle::BracketAlignmentStyle &Value) { in enumeration()
438 IO.enumCase(Value, "Align", FormatStyle::BAS_Align); in enumeration()
439 IO.enumCase(Value, "DontAlign", FormatStyle::BAS_DontAlign); in enumeration()
440 IO.enumCase(Value, "AlwaysBreak", FormatStyle::BAS_AlwaysBreak); in enumeration()
441 IO.enumCase(Value, "BlockIndent", FormatStyle::BAS_BlockIndent); in enumeration()
444 IO.enumCase(Value, "true", FormatStyle::BAS_Align); in enumeration()
445 IO.enumCase(Value, "false", FormatStyle::BAS_DontAlign); in enumeration()
451 static void enumeration(IO &IO, in enumeration()
453 IO.enumCase(Value, "DontAlign", FormatStyle::ENAS_DontAlign); in enumeration()
454 IO.enumCase(Value, "Left", FormatStyle::ENAS_Left); in enumeration()
455 IO.enumCase(Value, "Right", FormatStyle::ENAS_Right); in enumeration()
458 IO.enumCase(Value, "true", FormatStyle::ENAS_Left); in enumeration()
459 IO.enumCase(Value, "false", FormatStyle::ENAS_Right); in enumeration()
464 static void enumeration(IO &IO, FormatStyle::OperandAlignmentStyle &Value) { in enumeration()
465 IO.enumCase(Value, "DontAlign", FormatStyle::OAS_DontAlign); in enumeration()
466 IO.enumCase(Value, "Align", FormatStyle::OAS_Align); in enumeration()
467 IO.enumCase(Value, "AlignAfterOperator", in enumeration()
471 IO.enumCase(Value, "true", FormatStyle::OAS_Align); in enumeration()
472 IO.enumCase(Value, "false", FormatStyle::OAS_DontAlign); in enumeration()
477 static void enumeration(IO &IO, FormatStyle::PointerAlignmentStyle &Value) { in enumeration()
478 IO.enumCase(Value, "Middle", FormatStyle::PAS_Middle); in enumeration()
479 IO.enumCase(Value, "Left", FormatStyle::PAS_Left); in enumeration()
480 IO.enumCase(Value, "Right", FormatStyle::PAS_Right); in enumeration()
483 IO.enumCase(Value, "true", FormatStyle::PAS_Left); in enumeration()
484 IO.enumCase(Value, "false", FormatStyle::PAS_Right); in enumeration()
490 static void enumeration(IO &IO, FormatStyle::SeparateDefinitionStyle &Value) { in enumeration()
491 IO.enumCase(Value, "Leave", FormatStyle::SDS_Leave); in enumeration()
492 IO.enumCase(Value, "Always", FormatStyle::SDS_Always); in enumeration()
493 IO.enumCase(Value, "Never", FormatStyle::SDS_Never); in enumeration()
500 enumeration(IO &IO, FormatStyle::SpaceAroundPointerQualifiersStyle &Value) { in enumeration()
501 IO.enumCase(Value, "Default", FormatStyle::SAPQ_Default); in enumeration()
502 IO.enumCase(Value, "Before", FormatStyle::SAPQ_Before); in enumeration()
503 IO.enumCase(Value, "After", FormatStyle::SAPQ_After); in enumeration()
504 IO.enumCase(Value, "Both", FormatStyle::SAPQ_Both); in enumeration()
510 static void enumeration(IO &IO, FormatStyle::ReferenceAlignmentStyle &Value) { in enumeration()
511 IO.enumCase(Value, "Pointer", FormatStyle::RAS_Pointer); in enumeration()
512 IO.enumCase(Value, "Middle", FormatStyle::RAS_Middle); in enumeration()
513 IO.enumCase(Value, "Left", FormatStyle::RAS_Left); in enumeration()
514 IO.enumCase(Value, "Right", FormatStyle::RAS_Right); in enumeration()
520 static void enumeration(IO &IO, in enumeration()
522 IO.enumCase(Value, "OwnLine", FormatStyle::RCPS_OwnLine); in enumeration()
523 IO.enumCase(Value, "WithPreceding", FormatStyle::RCPS_WithPreceding); in enumeration()
524 IO.enumCase(Value, "WithFollowing", FormatStyle::RCPS_WithFollowing); in enumeration()
525 IO.enumCase(Value, "SingleLine", FormatStyle::RCPS_SingleLine); in enumeration()
531 static void enumeration(IO &IO, FormatStyle::SpaceBeforeParensStyle &Value) { in enumeration()
532 IO.enumCase(Value, "Never", FormatStyle::SBPO_Never); in enumeration()
533 IO.enumCase(Value, "ControlStatements", in enumeration()
535 IO.enumCase(Value, "ControlStatementsExceptControlMacros", in enumeration()
537 IO.enumCase(Value, "NonEmptyParentheses", in enumeration()
539 IO.enumCase(Value, "Always", FormatStyle::SBPO_Always); in enumeration()
540 IO.enumCase(Value, "Custom", FormatStyle::SBPO_Custom); in enumeration()
543 IO.enumCase(Value, "false", FormatStyle::SBPO_Never); in enumeration()
544 IO.enumCase(Value, "true", FormatStyle::SBPO_ControlStatements); in enumeration()
545 IO.enumCase(Value, "ControlStatementsExceptForEachMacros", in enumeration()
552 static void enumeration(IO &IO, in enumeration()
554 IO.enumCase(Value, "Both", FormatStyle::BFCS_Both); in enumeration()
555 IO.enumCase(Value, "None", FormatStyle::BFCS_None); in enumeration()
556 IO.enumCase(Value, "Before", FormatStyle::BFCS_Before); in enumeration()
557 IO.enumCase(Value, "After", FormatStyle::BFCS_After); in enumeration()
562 static void enumeration(IO &IO, FormatStyle::SortIncludesOptions &Value) { in enumeration()
563 IO.enumCase(Value, "Never", FormatStyle::SI_Never); in enumeration()
564 IO.enumCase(Value, "CaseInsensitive", FormatStyle::SI_CaseInsensitive); in enumeration()
565 IO.enumCase(Value, "CaseSensitive", FormatStyle::SI_CaseSensitive); in enumeration()
568 IO.enumCase(Value, "false", FormatStyle::SI_Never); in enumeration()
569 IO.enumCase(Value, "true", FormatStyle::SI_CaseSensitive); in enumeration()
575 static void enumeration(IO &IO, in enumeration()
577 IO.enumCase(Value, "Before", FormatStyle::SJSIO_Before); in enumeration()
578 IO.enumCase(Value, "After", FormatStyle::SJSIO_After); in enumeration()
583 static void enumeration(IO &IO, FormatStyle::SpacesInAnglesStyle &Value) { in enumeration()
584 IO.enumCase(Value, "Never", FormatStyle::SIAS_Never); in enumeration()
585 IO.enumCase(Value, "Always", FormatStyle::SIAS_Always); in enumeration()
586 IO.enumCase(Value, "Leave", FormatStyle::SIAS_Leave); in enumeration()
589 IO.enumCase(Value, "false", FormatStyle::SIAS_Never); in enumeration()
590 IO.enumCase(Value, "true", FormatStyle::SIAS_Always); in enumeration()
595 static void mapping(IO &IO, FormatStyle &Style) { in mapping()
597 IO.mapOptional("Language", Style.Language); in mapping()
599 if (IO.outputting()) { in mapping()
606 IO.mapOptional("# BasedOnStyle", StyleName); in mapping()
612 IO.mapOptional("BasedOnStyle", BasedOnStyle); in mapping()
616 ((FormatStyle *)IO.getContext())->Language; in mapping()
618 IO.setError(Twine("Unknown value for BasedOnStyle: ", BasedOnStyle)); in mapping()
626 if (!IO.outputting()) { in mapping()
627 IO.mapOptional("AlignEscapedNewlinesLeft", Style.AlignEscapedNewlines); in mapping()
628 IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment); in mapping()
629 IO.mapOptional("IndentFunctionDeclarationAfterType", in mapping()
631 IO.mapOptional("IndentRequires", Style.IndentRequiresClause); in mapping()
632 IO.mapOptional("PointerBindsToType", Style.PointerAlignment); in mapping()
633 IO.mapOptional("SpaceAfterControlStatementKeyword", in mapping()
637 IO.mapOptional("AccessModifierOffset", Style.AccessModifierOffset); in mapping()
638 IO.mapOptional("AlignAfterOpenBracket", Style.AlignAfterOpenBracket); in mapping()
639 IO.mapOptional("AlignArrayOfStructures", Style.AlignArrayOfStructures); in mapping()
640 IO.mapOptional("AlignConsecutiveAssignments", in mapping()
642 IO.mapOptional("AlignConsecutiveBitFields", in mapping()
644 IO.mapOptional("AlignConsecutiveDeclarations", in mapping()
646 IO.mapOptional("AlignConsecutiveMacros", Style.AlignConsecutiveMacros); in mapping()
647 IO.mapOptional("AlignEscapedNewlines", Style.AlignEscapedNewlines); in mapping()
648 IO.mapOptional("AlignOperands", Style.AlignOperands); in mapping()
649 IO.mapOptional("AlignTrailingComments", Style.AlignTrailingComments); in mapping()
650 IO.mapOptional("AllowAllArgumentsOnNextLine", in mapping()
652 IO.mapOptional("AllowAllParametersOfDeclarationOnNextLine", in mapping()
654 IO.mapOptional("AllowShortEnumsOnASingleLine", in mapping()
656 IO.mapOptional("AllowShortBlocksOnASingleLine", in mapping()
658 IO.mapOptional("AllowShortCaseLabelsOnASingleLine", in mapping()
660 IO.mapOptional("AllowShortFunctionsOnASingleLine", in mapping()
662 IO.mapOptional("AllowShortLambdasOnASingleLine", in mapping()
664 IO.mapOptional("AllowShortIfStatementsOnASingleLine", in mapping()
666 IO.mapOptional("AllowShortLoopsOnASingleLine", in mapping()
668 IO.mapOptional("AlwaysBreakAfterDefinitionReturnType", in mapping()
670 IO.mapOptional("AlwaysBreakAfterReturnType", in mapping()
688 IO.mapOptional("AlwaysBreakBeforeMultilineStrings", in mapping()
690 IO.mapOptional("AlwaysBreakTemplateDeclarations", in mapping()
692 IO.mapOptional("AttributeMacros", Style.AttributeMacros); in mapping()
693 IO.mapOptional("BinPackArguments", Style.BinPackArguments); in mapping()
694 IO.mapOptional("BinPackParameters", Style.BinPackParameters); in mapping()
695 IO.mapOptional("BraceWrapping", Style.BraceWrapping); in mapping()
696 IO.mapOptional("BreakBeforeBinaryOperators", in mapping()
698 IO.mapOptional("BreakBeforeConceptDeclarations", in mapping()
700 IO.mapOptional("BreakBeforeBraces", Style.BreakBeforeBraces); in mapping()
703 IO.mapOptional("BreakBeforeInheritanceComma", BreakBeforeInheritanceComma); in mapping()
704 IO.mapOptional("BreakInheritanceList", Style.BreakInheritanceList); in mapping()
713 IO.mapOptional("BreakBeforeTernaryOperators", in mapping()
717 IO.mapOptional("BreakConstructorInitializersBeforeComma", in mapping()
719 IO.mapOptional("BreakConstructorInitializers", in mapping()
729 IO.mapOptional("BreakAfterJavaFieldAnnotations", in mapping()
731 IO.mapOptional("BreakStringLiterals", Style.BreakStringLiterals); in mapping()
732 IO.mapOptional("ColumnLimit", Style.ColumnLimit); in mapping()
733 IO.mapOptional("CommentPragmas", Style.CommentPragmas); in mapping()
734 IO.mapOptional("QualifierAlignment", Style.QualifierAlignment); in mapping()
742 IO.mapOptional("QualifierOrder", Style.QualifierOrder); in mapping()
744 IO.mapOptional("CompactNamespaces", Style.CompactNamespaces); in mapping()
745 IO.mapOptional("ConstructorInitializerIndentWidth", in mapping()
747 IO.mapOptional("ContinuationIndentWidth", Style.ContinuationIndentWidth); in mapping()
748 IO.mapOptional("Cpp11BracedListStyle", Style.Cpp11BracedListStyle); in mapping()
749 IO.mapOptional("DeriveLineEnding", Style.DeriveLineEnding); in mapping()
750 IO.mapOptional("DerivePointerAlignment", Style.DerivePointerAlignment); in mapping()
751 IO.mapOptional("DisableFormat", Style.DisableFormat); in mapping()
752 IO.mapOptional("EmptyLineAfterAccessModifier", in mapping()
754 IO.mapOptional("EmptyLineBeforeAccessModifier", in mapping()
756 IO.mapOptional("ExperimentalAutoDetectBinPacking", in mapping()
759 IO.mapOptional("PackConstructorInitializers", in mapping()
770 IO.mapOptional("BasedOnStyle", BasedOn); in mapping()
775 IO.mapOptional("ConstructorInitializerAllOnOneLineOrOnePerLine", in mapping()
777 IO.mapOptional("AllowAllConstructorInitializersOnNextLine", OnNextLine); in mapping()
793 IO.mapOptional("FixNamespaceComments", Style.FixNamespaceComments); in mapping()
794 IO.mapOptional("ForEachMacros", Style.ForEachMacros); in mapping()
795 IO.mapOptional("IfMacros", Style.IfMacros); in mapping()
797 IO.mapOptional("IncludeBlocks", Style.IncludeStyle.IncludeBlocks); in mapping()
798 IO.mapOptional("IncludeCategories", Style.IncludeStyle.IncludeCategories); in mapping()
799 IO.mapOptional("IncludeIsMainRegex", Style.IncludeStyle.IncludeIsMainRegex); in mapping()
800 IO.mapOptional("IncludeIsMainSourceRegex", in mapping()
802 IO.mapOptional("IndentAccessModifiers", Style.IndentAccessModifiers); in mapping()
803 IO.mapOptional("IndentCaseLabels", Style.IndentCaseLabels); in mapping()
804 IO.mapOptional("IndentCaseBlocks", Style.IndentCaseBlocks); in mapping()
805 IO.mapOptional("IndentGotoLabels", Style.IndentGotoLabels); in mapping()
806 IO.mapOptional("IndentPPDirectives", Style.IndentPPDirectives); in mapping()
807 IO.mapOptional("IndentExternBlock", Style.IndentExternBlock); in mapping()
808 IO.mapOptional("IndentRequiresClause", Style.IndentRequiresClause); in mapping()
809 IO.mapOptional("IndentWidth", Style.IndentWidth); in mapping()
810 IO.mapOptional("IndentWrappedFunctionNames", in mapping()
812 IO.mapOptional("InsertBraces", Style.InsertBraces); in mapping()
813 IO.mapOptional("InsertTrailingCommas", Style.InsertTrailingCommas); in mapping()
814 IO.mapOptional("JavaImportGroups", Style.JavaImportGroups); in mapping()
815 IO.mapOptional("JavaScriptQuotes", Style.JavaScriptQuotes); in mapping()
816 IO.mapOptional("JavaScriptWrapImports", Style.JavaScriptWrapImports); in mapping()
817 IO.mapOptional("KeepEmptyLinesAtTheStartOfBlocks", in mapping()
819 IO.mapOptional("LambdaBodyIndentation", Style.LambdaBodyIndentation); in mapping()
820 IO.mapOptional("MacroBlockBegin", Style.MacroBlockBegin); in mapping()
821 IO.mapOptional("MacroBlockEnd", Style.MacroBlockEnd); in mapping()
822 IO.mapOptional("MaxEmptyLinesToKeep", Style.MaxEmptyLinesToKeep); in mapping()
823 IO.mapOptional("NamespaceIndentation", Style.NamespaceIndentation); in mapping()
824 IO.mapOptional("NamespaceMacros", Style.NamespaceMacros); in mapping()
825 IO.mapOptional("ObjCBinPackProtocolList", Style.ObjCBinPackProtocolList); in mapping()
826 IO.mapOptional("ObjCBlockIndentWidth", Style.ObjCBlockIndentWidth); in mapping()
827 IO.mapOptional("ObjCBreakBeforeNestedBlockParam", in mapping()
829 IO.mapOptional("ObjCSpaceAfterProperty", Style.ObjCSpaceAfterProperty); in mapping()
830 IO.mapOptional("ObjCSpaceBeforeProtocolList", in mapping()
832 IO.mapOptional("PenaltyBreakAssignment", Style.PenaltyBreakAssignment); in mapping()
833 IO.mapOptional("PenaltyBreakBeforeFirstCallParameter", in mapping()
835 IO.mapOptional("PenaltyBreakComment", Style.PenaltyBreakComment); in mapping()
836 IO.mapOptional("PenaltyBreakFirstLessLess", in mapping()
838 IO.mapOptional("PenaltyBreakOpenParenthesis", in mapping()
840 IO.mapOptional("PenaltyBreakString", Style.PenaltyBreakString); in mapping()
841 IO.mapOptional("PenaltyBreakTemplateDeclaration", in mapping()
843 IO.mapOptional("PenaltyExcessCharacter", Style.PenaltyExcessCharacter); in mapping()
844 IO.mapOptional("PenaltyReturnTypeOnItsOwnLine", in mapping()
846 IO.mapOptional("PenaltyIndentedWhitespace", in mapping()
848 IO.mapOptional("PointerAlignment", Style.PointerAlignment); in mapping()
849 IO.mapOptional("PPIndentWidth", Style.PPIndentWidth); in mapping()
850 IO.mapOptional("RawStringFormats", Style.RawStringFormats); in mapping()
851 IO.mapOptional("ReferenceAlignment", Style.ReferenceAlignment); in mapping()
852 IO.mapOptional("ReflowComments", Style.ReflowComments); in mapping()
853 IO.mapOptional("RemoveBracesLLVM", Style.RemoveBracesLLVM); in mapping()
854 IO.mapOptional("RequiresClausePosition", Style.RequiresClausePosition); in mapping()
855 IO.mapOptional("SeparateDefinitionBlocks", Style.SeparateDefinitionBlocks); in mapping()
856 IO.mapOptional("ShortNamespaceLines", Style.ShortNamespaceLines); in mapping()
857 IO.mapOptional("SortIncludes", Style.SortIncludes); in mapping()
858 IO.mapOptional("SortJavaStaticImport", Style.SortJavaStaticImport); in mapping()
859 IO.mapOptional("SortUsingDeclarations", Style.SortUsingDeclarations); in mapping()
860 IO.mapOptional("SpaceAfterCStyleCast", Style.SpaceAfterCStyleCast); in mapping()
861 IO.mapOptional("SpaceAfterLogicalNot", Style.SpaceAfterLogicalNot); in mapping()
862 IO.mapOptional("SpaceAfterTemplateKeyword", in mapping()
864 IO.mapOptional("SpaceBeforeAssignmentOperators", in mapping()
866 IO.mapOptional("SpaceBeforeCaseColon", Style.SpaceBeforeCaseColon); in mapping()
867 IO.mapOptional("SpaceBeforeCpp11BracedList", in mapping()
869 IO.mapOptional("SpaceBeforeCtorInitializerColon", in mapping()
871 IO.mapOptional("SpaceBeforeInheritanceColon", in mapping()
873 IO.mapOptional("SpaceBeforeParens", Style.SpaceBeforeParens); in mapping()
874 IO.mapOptional("SpaceBeforeParensOptions", Style.SpaceBeforeParensOptions); in mapping()
875 IO.mapOptional("SpaceAroundPointerQualifiers", in mapping()
877 IO.mapOptional("SpaceBeforeRangeBasedForLoopColon", in mapping()
879 IO.mapOptional("SpaceInEmptyBlock", Style.SpaceInEmptyBlock); in mapping()
880 IO.mapOptional("SpaceInEmptyParentheses", Style.SpaceInEmptyParentheses); in mapping()
881 IO.mapOptional("SpacesBeforeTrailingComments", in mapping()
883 IO.mapOptional("SpacesInAngles", Style.SpacesInAngles); in mapping()
884 IO.mapOptional("SpacesInConditionalStatement", in mapping()
886 IO.mapOptional("SpacesInContainerLiterals", in mapping()
888 IO.mapOptional("SpacesInCStyleCastParentheses", in mapping()
890 IO.mapOptional("SpacesInLineCommentPrefix", in mapping()
892 IO.mapOptional("SpacesInParentheses", Style.SpacesInParentheses); in mapping()
893 IO.mapOptional("SpacesInSquareBrackets", Style.SpacesInSquareBrackets); in mapping()
894 IO.mapOptional("SpaceBeforeSquareBrackets", in mapping()
896 IO.mapOptional("BitFieldColonSpacing", Style.BitFieldColonSpacing); in mapping()
897 IO.mapOptional("Standard", Style.Standard); in mapping()
898 IO.mapOptional("StatementAttributeLikeMacros", in mapping()
900 IO.mapOptional("StatementMacros", Style.StatementMacros); in mapping()
901 IO.mapOptional("TabWidth", Style.TabWidth); in mapping()
902 IO.mapOptional("TypenameMacros", Style.TypenameMacros); in mapping()
903 IO.mapOptional("UseCRLF", Style.UseCRLF); in mapping()
904 IO.mapOptional("UseTab", Style.UseTab); in mapping()
905 IO.mapOptional("WhitespaceSensitiveMacros", in mapping()
911 static void mapping(IO &IO, FormatStyle::BraceWrappingFlags &Wrapping) { in mapping()
912 IO.mapOptional("AfterCaseLabel", Wrapping.AfterCaseLabel); in mapping()
913 IO.mapOptional("AfterClass", Wrapping.AfterClass); in mapping()
914 IO.mapOptional("AfterControlStatement", Wrapping.AfterControlStatement); in mapping()
915 IO.mapOptional("AfterEnum", Wrapping.AfterEnum); in mapping()
916 IO.mapOptional("AfterFunction", Wrapping.AfterFunction); in mapping()
917 IO.mapOptional("AfterNamespace", Wrapping.AfterNamespace); in mapping()
918 IO.mapOptional("AfterObjCDeclaration", Wrapping.AfterObjCDeclaration); in mapping()
919 IO.mapOptional("AfterStruct", Wrapping.AfterStruct); in mapping()
920 IO.mapOptional("AfterUnion", Wrapping.AfterUnion); in mapping()
921 IO.mapOptional("AfterExternBlock", Wrapping.AfterExternBlock); in mapping()
922 IO.mapOptional("BeforeCatch", Wrapping.BeforeCatch); in mapping()
923 IO.mapOptional("BeforeElse", Wrapping.BeforeElse); in mapping()
924 IO.mapOptional("BeforeLambdaBody", Wrapping.BeforeLambdaBody); in mapping()
925 IO.mapOptional("BeforeWhile", Wrapping.BeforeWhile); in mapping()
926 IO.mapOptional("IndentBraces", Wrapping.IndentBraces); in mapping()
927 IO.mapOptional("SplitEmptyFunction", Wrapping.SplitEmptyFunction); in mapping()
928 IO.mapOptional("SplitEmptyRecord", Wrapping.SplitEmptyRecord); in mapping()
929 IO.mapOptional("SplitEmptyNamespace", Wrapping.SplitEmptyNamespace); in mapping()
934 static void mapping(IO &IO, FormatStyle::SpaceBeforeParensCustom &Spacing) { in mapping()
935 IO.mapOptional("AfterControlStatements", Spacing.AfterControlStatements); in mapping()
936 IO.mapOptional("AfterForeachMacros", Spacing.AfterForeachMacros); in mapping()
937 IO.mapOptional("AfterFunctionDefinitionName", in mapping()
939 IO.mapOptional("AfterFunctionDeclarationName", in mapping()
941 IO.mapOptional("AfterIfMacros", Spacing.AfterIfMacros); in mapping()
942 IO.mapOptional("AfterOverloadedOperator", Spacing.AfterOverloadedOperator); in mapping()
943 IO.mapOptional("AfterRequiresInClause", Spacing.AfterRequiresInClause); in mapping()
944 IO.mapOptional("AfterRequiresInExpression", in mapping()
946 IO.mapOptional("BeforeNonEmptyParentheses", in mapping()
952 static void mapping(IO &IO, FormatStyle::RawStringFormat &Format) { in mapping()
953 IO.mapOptional("Language", Format.Language); in mapping()
954 IO.mapOptional("Delimiters", Format.Delimiters); in mapping()
955 IO.mapOptional("EnclosingFunctions", Format.EnclosingFunctions); in mapping()
956 IO.mapOptional("CanonicalDelimiter", Format.CanonicalDelimiter); in mapping()
957 IO.mapOptional("BasedOnStyle", Format.BasedOnStyle); in mapping()
962 static void mapping(IO &IO, FormatStyle::SpacesInLineComment &Space) { in mapping()
965 IO.mapOptional("Minimum", Space.Minimum); in mapping()
966 IO.mapOptional("Maximum", signedMaximum); in mapping()
980 static size_t size(IO &IO, std::vector<FormatStyle> &Seq) { in size()
983 static FormatStyle &element(IO &IO, std::vector<FormatStyle> &Seq, in element()
991 Template = *((const FormatStyle *)IO.getContext()); in element()