Lines Matching full:expanded
1280 static void expandPresetsBraceWrapping(FormatStyle &Expanded) { in expandPresetsBraceWrapping() argument
1281 if (Expanded.BreakBeforeBraces == FormatStyle::BS_Custom) in expandPresetsBraceWrapping()
1283 Expanded.BraceWrapping = {/*AfterCaseLabel=*/false, in expandPresetsBraceWrapping()
1301 switch (Expanded.BreakBeforeBraces) { in expandPresetsBraceWrapping()
1303 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1304 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1305 Expanded.BraceWrapping.AfterNamespace = true; in expandPresetsBraceWrapping()
1308 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1309 Expanded.BraceWrapping.AfterEnum = true; in expandPresetsBraceWrapping()
1310 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1311 Expanded.BraceWrapping.AfterStruct = true; in expandPresetsBraceWrapping()
1312 Expanded.BraceWrapping.AfterUnion = true; in expandPresetsBraceWrapping()
1313 Expanded.BraceWrapping.AfterExternBlock = true; in expandPresetsBraceWrapping()
1314 Expanded.BraceWrapping.SplitEmptyFunction = true; in expandPresetsBraceWrapping()
1315 Expanded.BraceWrapping.SplitEmptyRecord = false; in expandPresetsBraceWrapping()
1318 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1319 Expanded.BraceWrapping.BeforeCatch = true; in expandPresetsBraceWrapping()
1320 Expanded.BraceWrapping.BeforeElse = true; in expandPresetsBraceWrapping()
1323 Expanded.BraceWrapping.AfterCaseLabel = true; in expandPresetsBraceWrapping()
1324 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1325 Expanded.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always; in expandPresetsBraceWrapping()
1326 Expanded.BraceWrapping.AfterEnum = true; in expandPresetsBraceWrapping()
1327 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1328 Expanded.BraceWrapping.AfterNamespace = true; in expandPresetsBraceWrapping()
1329 Expanded.BraceWrapping.AfterObjCDeclaration = true; in expandPresetsBraceWrapping()
1330 Expanded.BraceWrapping.AfterStruct = true; in expandPresetsBraceWrapping()
1331 Expanded.BraceWrapping.AfterUnion = true; in expandPresetsBraceWrapping()
1332 Expanded.BraceWrapping.AfterExternBlock = true; in expandPresetsBraceWrapping()
1333 Expanded.BraceWrapping.BeforeCatch = true; in expandPresetsBraceWrapping()
1334 Expanded.BraceWrapping.BeforeElse = true; in expandPresetsBraceWrapping()
1335 Expanded.BraceWrapping.BeforeLambdaBody = true; in expandPresetsBraceWrapping()
1338 Expanded.BraceWrapping.AfterCaseLabel = true; in expandPresetsBraceWrapping()
1339 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1340 Expanded.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always; in expandPresetsBraceWrapping()
1341 Expanded.BraceWrapping.AfterEnum = true; in expandPresetsBraceWrapping()
1342 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1343 Expanded.BraceWrapping.AfterNamespace = true; in expandPresetsBraceWrapping()
1344 Expanded.BraceWrapping.AfterObjCDeclaration = true; in expandPresetsBraceWrapping()
1345 Expanded.BraceWrapping.AfterStruct = true; in expandPresetsBraceWrapping()
1346 Expanded.BraceWrapping.AfterExternBlock = true; in expandPresetsBraceWrapping()
1347 Expanded.BraceWrapping.BeforeCatch = true; in expandPresetsBraceWrapping()
1348 Expanded.BraceWrapping.BeforeElse = true; in expandPresetsBraceWrapping()
1349 Expanded.BraceWrapping.BeforeLambdaBody = true; in expandPresetsBraceWrapping()
1352 Expanded.BraceWrapping = { in expandPresetsBraceWrapping()
1373 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1380 static void expandPresetsSpaceBeforeParens(FormatStyle &Expanded) { in expandPresetsSpaceBeforeParens() argument
1381 if (Expanded.SpaceBeforeParens == FormatStyle::SBPO_Custom) in expandPresetsSpaceBeforeParens()
1384 Expanded.SpaceBeforeParensOptions = {}; in expandPresetsSpaceBeforeParens()
1385 Expanded.SpaceBeforeParensOptions.AfterPlacementOperator = true; in expandPresetsSpaceBeforeParens()
1387 switch (Expanded.SpaceBeforeParens) { in expandPresetsSpaceBeforeParens()
1389 Expanded.SpaceBeforeParensOptions.AfterControlStatements = true; in expandPresetsSpaceBeforeParens()
1390 Expanded.SpaceBeforeParensOptions.AfterForeachMacros = true; in expandPresetsSpaceBeforeParens()
1391 Expanded.SpaceBeforeParensOptions.AfterIfMacros = true; in expandPresetsSpaceBeforeParens()
1394 Expanded.SpaceBeforeParensOptions.AfterControlStatements = true; in expandPresetsSpaceBeforeParens()
1397 Expanded.SpaceBeforeParensOptions.BeforeNonEmptyParentheses = true; in expandPresetsSpaceBeforeParens()
1404 static void expandPresetsSpacesInParens(FormatStyle &Expanded) { in expandPresetsSpacesInParens() argument
1405 if (Expanded.SpacesInParens == FormatStyle::SIPO_Custom) in expandPresetsSpacesInParens()
1407 assert(Expanded.SpacesInParens == FormatStyle::SIPO_Never); in expandPresetsSpacesInParens()
1409 Expanded.SpacesInParensOptions = {}; in expandPresetsSpacesInParens()
3626 FormatStyle Expanded = Style; in reformat() local
3627 expandPresetsBraceWrapping(Expanded); in reformat()
3628 expandPresetsSpaceBeforeParens(Expanded); in reformat()
3629 expandPresetsSpacesInParens(Expanded); in reformat()
3630 Expanded.InsertBraces = false; in reformat()
3631 Expanded.RemoveBracesLLVM = false; in reformat()
3632 Expanded.RemoveParentheses = FormatStyle::RPS_Leave; in reformat()
3633 Expanded.RemoveSemicolon = false; in reformat()
3634 switch (Expanded.RequiresClausePosition) { in reformat()
3637 Expanded.IndentRequiresClause = false; in reformat()
3643 if (Expanded.DisableFormat) in reformat()
3647 if (Expanded.Language == FormatStyle::LK_JavaScript && isMpegTS(Code)) in reformat()
3681 return IntegerLiteralSeparatorFixer().process(Env, Expanded); in reformat()
3686 addQualifierAlignmentFixerPasses(Expanded, Passes); in reformat()
3689 FormatStyle S = Expanded; in reformat()
3697 FormatStyle S = Expanded; in reformat()
3705 FormatStyle S = Expanded; in reformat()
3713 FormatStyle S = Expanded; in reformat()
3722 return NamespaceEndCommentsFixer(Env, Expanded).process(); in reformat()
3728 return UsingDeclarationsSorter(Env, Expanded).process(); in reformat()
3735 return DefinitionBlockSeparator(Env, Expanded).process(); in reformat()
3742 return ObjCPropertyAttributeOrderFixer(Env, Expanded).process(); in reformat()
3749 return JavaScriptRequoter(Env, Expanded).process(/*SkipAnnotation=*/true); in reformat()
3754 return Formatter(Env, Expanded, Status).process(); in reformat()
3760 return TrailingCommaInserter(Env, Expanded).process(); in reformat()