Lines Matching refs:Expanded

1270 static void expandPresetsBraceWrapping(FormatStyle &Expanded) {  in expandPresetsBraceWrapping()  argument
1271 if (Expanded.BreakBeforeBraces == FormatStyle::BS_Custom) in expandPresetsBraceWrapping()
1273 Expanded.BraceWrapping = {/*AfterCaseLabel=*/false, in expandPresetsBraceWrapping()
1291 switch (Expanded.BreakBeforeBraces) { in expandPresetsBraceWrapping()
1293 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1294 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1295 Expanded.BraceWrapping.AfterNamespace = true; in expandPresetsBraceWrapping()
1298 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1299 Expanded.BraceWrapping.AfterEnum = true; in expandPresetsBraceWrapping()
1300 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1301 Expanded.BraceWrapping.AfterStruct = true; in expandPresetsBraceWrapping()
1302 Expanded.BraceWrapping.AfterUnion = true; in expandPresetsBraceWrapping()
1303 Expanded.BraceWrapping.AfterExternBlock = true; in expandPresetsBraceWrapping()
1304 Expanded.BraceWrapping.SplitEmptyFunction = true; in expandPresetsBraceWrapping()
1305 Expanded.BraceWrapping.SplitEmptyRecord = false; in expandPresetsBraceWrapping()
1308 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1309 Expanded.BraceWrapping.BeforeCatch = true; in expandPresetsBraceWrapping()
1310 Expanded.BraceWrapping.BeforeElse = true; in expandPresetsBraceWrapping()
1313 Expanded.BraceWrapping.AfterCaseLabel = true; in expandPresetsBraceWrapping()
1314 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1315 Expanded.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always; in expandPresetsBraceWrapping()
1316 Expanded.BraceWrapping.AfterEnum = true; in expandPresetsBraceWrapping()
1317 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1318 Expanded.BraceWrapping.AfterNamespace = true; in expandPresetsBraceWrapping()
1319 Expanded.BraceWrapping.AfterObjCDeclaration = true; in expandPresetsBraceWrapping()
1320 Expanded.BraceWrapping.AfterStruct = true; in expandPresetsBraceWrapping()
1321 Expanded.BraceWrapping.AfterUnion = true; in expandPresetsBraceWrapping()
1322 Expanded.BraceWrapping.AfterExternBlock = true; in expandPresetsBraceWrapping()
1323 Expanded.BraceWrapping.BeforeCatch = true; in expandPresetsBraceWrapping()
1324 Expanded.BraceWrapping.BeforeElse = true; in expandPresetsBraceWrapping()
1325 Expanded.BraceWrapping.BeforeLambdaBody = true; in expandPresetsBraceWrapping()
1328 Expanded.BraceWrapping.AfterCaseLabel = true; in expandPresetsBraceWrapping()
1329 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1330 Expanded.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always; in expandPresetsBraceWrapping()
1331 Expanded.BraceWrapping.AfterEnum = true; in expandPresetsBraceWrapping()
1332 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1333 Expanded.BraceWrapping.AfterNamespace = true; in expandPresetsBraceWrapping()
1334 Expanded.BraceWrapping.AfterObjCDeclaration = true; in expandPresetsBraceWrapping()
1335 Expanded.BraceWrapping.AfterStruct = true; in expandPresetsBraceWrapping()
1336 Expanded.BraceWrapping.AfterExternBlock = true; in expandPresetsBraceWrapping()
1337 Expanded.BraceWrapping.BeforeCatch = true; in expandPresetsBraceWrapping()
1338 Expanded.BraceWrapping.BeforeElse = true; in expandPresetsBraceWrapping()
1339 Expanded.BraceWrapping.BeforeLambdaBody = true; in expandPresetsBraceWrapping()
1342 Expanded.BraceWrapping = { in expandPresetsBraceWrapping()
1363 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1370 static void expandPresetsSpaceBeforeParens(FormatStyle &Expanded) { in expandPresetsSpaceBeforeParens() argument
1371 if (Expanded.SpaceBeforeParens == FormatStyle::SBPO_Custom) in expandPresetsSpaceBeforeParens()
1374 Expanded.SpaceBeforeParensOptions = {}; in expandPresetsSpaceBeforeParens()
1375 Expanded.SpaceBeforeParensOptions.AfterPlacementOperator = true; in expandPresetsSpaceBeforeParens()
1377 switch (Expanded.SpaceBeforeParens) { in expandPresetsSpaceBeforeParens()
1379 Expanded.SpaceBeforeParensOptions.AfterControlStatements = true; in expandPresetsSpaceBeforeParens()
1380 Expanded.SpaceBeforeParensOptions.AfterForeachMacros = true; in expandPresetsSpaceBeforeParens()
1381 Expanded.SpaceBeforeParensOptions.AfterIfMacros = true; in expandPresetsSpaceBeforeParens()
1384 Expanded.SpaceBeforeParensOptions.AfterControlStatements = true; in expandPresetsSpaceBeforeParens()
1387 Expanded.SpaceBeforeParensOptions.BeforeNonEmptyParentheses = true; in expandPresetsSpaceBeforeParens()
1394 static void expandPresetsSpacesInParens(FormatStyle &Expanded) { in expandPresetsSpacesInParens() argument
1395 if (Expanded.SpacesInParens == FormatStyle::SIPO_Custom) in expandPresetsSpacesInParens()
1397 assert(Expanded.SpacesInParens == FormatStyle::SIPO_Never); in expandPresetsSpacesInParens()
1399 Expanded.SpacesInParensOptions = {}; in expandPresetsSpacesInParens()
3584 FormatStyle Expanded = Style; in reformat() local
3585 expandPresetsBraceWrapping(Expanded); in reformat()
3586 expandPresetsSpaceBeforeParens(Expanded); in reformat()
3587 expandPresetsSpacesInParens(Expanded); in reformat()
3588 Expanded.InsertBraces = false; in reformat()
3589 Expanded.RemoveBracesLLVM = false; in reformat()
3590 Expanded.RemoveParentheses = FormatStyle::RPS_Leave; in reformat()
3591 Expanded.RemoveSemicolon = false; in reformat()
3592 switch (Expanded.RequiresClausePosition) { in reformat()
3595 Expanded.IndentRequiresClause = false; in reformat()
3601 if (Expanded.DisableFormat) in reformat()
3605 if (Expanded.Language == FormatStyle::LK_JavaScript && isMpegTS(Code)) in reformat()
3639 return IntegerLiteralSeparatorFixer().process(Env, Expanded); in reformat()
3644 addQualifierAlignmentFixerPasses(Expanded, Passes); in reformat()
3647 FormatStyle S = Expanded; in reformat()
3655 FormatStyle S = Expanded; in reformat()
3663 FormatStyle S = Expanded; in reformat()
3671 FormatStyle S = Expanded; in reformat()
3680 return NamespaceEndCommentsFixer(Env, Expanded).process(); in reformat()
3686 return UsingDeclarationsSorter(Env, Expanded).process(); in reformat()
3693 return DefinitionBlockSeparator(Env, Expanded).process(); in reformat()
3700 return ObjCPropertyAttributeOrderFixer(Env, Expanded).process(); in reformat()
3707 return JavaScriptRequoter(Env, Expanded).process(/*SkipAnnotation=*/true); in reformat()
3712 return Formatter(Env, Expanded, Status).process(); in reformat()
3718 return TrailingCommaInserter(Env, Expanded).process(); in reformat()