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