Lines Matching defs:Expanded
1339 static void expandPresetsBraceWrapping(FormatStyle &Expanded) {
1340 if (Expanded.BreakBeforeBraces == FormatStyle::BS_Custom)
1342 Expanded.BraceWrapping = {/*AfterCaseLabel=*/false,
1360 switch (Expanded.BreakBeforeBraces) {
1362 Expanded.BraceWrapping.AfterClass = true;
1363 Expanded.BraceWrapping.AfterFunction = true;
1364 Expanded.BraceWrapping.AfterNamespace = true;
1367 Expanded.BraceWrapping.AfterClass = true;
1368 Expanded.BraceWrapping.AfterEnum = true;
1369 Expanded.BraceWrapping.AfterFunction = true;
1370 Expanded.BraceWrapping.AfterStruct = true;
1371 Expanded.BraceWrapping.AfterUnion = true;
1372 Expanded.BraceWrapping.AfterExternBlock = true;
1373 Expanded.BraceWrapping.SplitEmptyFunction = true;
1374 Expanded.BraceWrapping.SplitEmptyRecord = false;
1377 Expanded.BraceWrapping.AfterFunction = true;
1378 Expanded.BraceWrapping.BeforeCatch = true;
1379 Expanded.BraceWrapping.BeforeElse = true;
1382 Expanded.BraceWrapping.AfterCaseLabel = true;
1383 Expanded.BraceWrapping.AfterClass = true;
1384 Expanded.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always;
1385 Expanded.BraceWrapping.AfterEnum = true;
1386 Expanded.BraceWrapping.AfterFunction = true;
1387 Expanded.BraceWrapping.AfterNamespace = true;
1388 Expanded.BraceWrapping.AfterObjCDeclaration = true;
1389 Expanded.BraceWrapping.AfterStruct = true;
1390 Expanded.BraceWrapping.AfterUnion = true;
1391 Expanded.BraceWrapping.AfterExternBlock = true;
1392 Expanded.BraceWrapping.BeforeCatch = true;
1393 Expanded.BraceWrapping.BeforeElse = true;
1394 Expanded.BraceWrapping.BeforeLambdaBody = true;
1397 Expanded.BraceWrapping.AfterCaseLabel = true;
1398 Expanded.BraceWrapping.AfterClass = true;
1399 Expanded.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always;
1400 Expanded.BraceWrapping.AfterEnum = true;
1401 Expanded.BraceWrapping.AfterFunction = true;
1402 Expanded.BraceWrapping.AfterNamespace = true;
1403 Expanded.BraceWrapping.AfterObjCDeclaration = true;
1404 Expanded.BraceWrapping.AfterStruct = true;
1405 Expanded.BraceWrapping.AfterExternBlock = true;
1406 Expanded.BraceWrapping.BeforeCatch = true;
1407 Expanded.BraceWrapping.BeforeElse = true;
1408 Expanded.BraceWrapping.BeforeLambdaBody = true;
1411 Expanded.BraceWrapping = {
1432 Expanded.BraceWrapping.AfterFunction = true;
1439 static void expandPresetsSpaceBeforeParens(FormatStyle &Expanded) {
1440 if (Expanded.SpaceBeforeParens == FormatStyle::SBPO_Custom)
1443 Expanded.SpaceBeforeParensOptions = {};
1444 Expanded.SpaceBeforeParensOptions.AfterPlacementOperator = true;
1446 switch (Expanded.SpaceBeforeParens) {
1448 Expanded.SpaceBeforeParensOptions.AfterControlStatements = true;
1449 Expanded.SpaceBeforeParensOptions.AfterForeachMacros = true;
1450 Expanded.SpaceBeforeParensOptions.AfterIfMacros = true;
1453 Expanded.SpaceBeforeParensOptions.AfterControlStatements = true;
1456 Expanded.SpaceBeforeParensOptions.BeforeNonEmptyParentheses = true;
1463 static void expandPresetsSpacesInParens(FormatStyle &Expanded) {
1464 if (Expanded.SpacesInParens == FormatStyle::SIPO_Custom)
1466 assert(Expanded.SpacesInParens == FormatStyle::SIPO_Never);
1468 Expanded.SpacesInParensOptions = {};
3700 FormatStyle Expanded = Style;
3701 expandPresetsBraceWrapping(Expanded);
3702 expandPresetsSpaceBeforeParens(Expanded);
3703 expandPresetsSpacesInParens(Expanded);
3704 Expanded.InsertBraces = false;
3705 Expanded.RemoveBracesLLVM = false;
3706 Expanded.RemoveParentheses = FormatStyle::RPS_Leave;
3707 Expanded.RemoveSemicolon = false;
3708 switch (Expanded.RequiresClausePosition) {
3711 Expanded.IndentRequiresClause = false;
3717 if (Expanded.DisableFormat)
3721 if (Expanded.Language == FormatStyle::LK_JavaScript && isMpegTS(Code))
3755 return IntegerLiteralSeparatorFixer().process(Env, Expanded);
3760 addQualifierAlignmentFixerPasses(Expanded, Passes);
3763 FormatStyle S = Expanded;
3771 FormatStyle S = Expanded;
3779 FormatStyle S = Expanded;
3787 FormatStyle S = Expanded;
3796 return NamespaceEndCommentsFixer(Env, Expanded).process();
3802 return UsingDeclarationsSorter(Env, Expanded).process();
3809 return DefinitionBlockSeparator(Env, Expanded).process();
3816 return ObjCPropertyAttributeOrderFixer(Env, Expanded).process();
3823 return JavaScriptRequoter(Env, Expanded).process(/*SkipAnnotation=*/true);
3828 return Formatter(Env, Expanded, Status).process();
3834 return TrailingCommaInserter(Env, Expanded).process();