Lines Matching refs:Expanded
1166 static void expandPresetsBraceWrapping(FormatStyle &Expanded) { in expandPresetsBraceWrapping() argument
1167 if (Expanded.BreakBeforeBraces == FormatStyle::BS_Custom) in expandPresetsBraceWrapping()
1169 Expanded.BraceWrapping = {/*AfterCaseLabel=*/false, in expandPresetsBraceWrapping()
1187 switch (Expanded.BreakBeforeBraces) { in expandPresetsBraceWrapping()
1189 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1190 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1191 Expanded.BraceWrapping.AfterNamespace = true; in expandPresetsBraceWrapping()
1194 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1195 Expanded.BraceWrapping.AfterEnum = true; in expandPresetsBraceWrapping()
1196 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1197 Expanded.BraceWrapping.AfterStruct = true; in expandPresetsBraceWrapping()
1198 Expanded.BraceWrapping.AfterUnion = true; in expandPresetsBraceWrapping()
1199 Expanded.BraceWrapping.AfterExternBlock = true; in expandPresetsBraceWrapping()
1200 Expanded.IndentExternBlock = FormatStyle::IEBS_AfterExternBlock; in expandPresetsBraceWrapping()
1201 Expanded.BraceWrapping.SplitEmptyFunction = true; in expandPresetsBraceWrapping()
1202 Expanded.BraceWrapping.SplitEmptyRecord = false; in expandPresetsBraceWrapping()
1205 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1206 Expanded.BraceWrapping.BeforeCatch = true; in expandPresetsBraceWrapping()
1207 Expanded.BraceWrapping.BeforeElse = true; in expandPresetsBraceWrapping()
1210 Expanded.BraceWrapping.AfterCaseLabel = true; in expandPresetsBraceWrapping()
1211 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1212 Expanded.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always; in expandPresetsBraceWrapping()
1213 Expanded.BraceWrapping.AfterEnum = true; in expandPresetsBraceWrapping()
1214 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1215 Expanded.BraceWrapping.AfterNamespace = true; in expandPresetsBraceWrapping()
1216 Expanded.BraceWrapping.AfterObjCDeclaration = true; in expandPresetsBraceWrapping()
1217 Expanded.BraceWrapping.AfterStruct = true; in expandPresetsBraceWrapping()
1218 Expanded.BraceWrapping.AfterUnion = true; in expandPresetsBraceWrapping()
1219 Expanded.BraceWrapping.AfterExternBlock = true; in expandPresetsBraceWrapping()
1220 Expanded.IndentExternBlock = FormatStyle::IEBS_AfterExternBlock; in expandPresetsBraceWrapping()
1221 Expanded.BraceWrapping.BeforeCatch = true; in expandPresetsBraceWrapping()
1222 Expanded.BraceWrapping.BeforeElse = true; in expandPresetsBraceWrapping()
1223 Expanded.BraceWrapping.BeforeLambdaBody = true; in expandPresetsBraceWrapping()
1226 Expanded.BraceWrapping.AfterCaseLabel = true; in expandPresetsBraceWrapping()
1227 Expanded.BraceWrapping.AfterClass = true; in expandPresetsBraceWrapping()
1228 Expanded.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always; in expandPresetsBraceWrapping()
1229 Expanded.BraceWrapping.AfterEnum = true; in expandPresetsBraceWrapping()
1230 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1231 Expanded.BraceWrapping.AfterNamespace = true; in expandPresetsBraceWrapping()
1232 Expanded.BraceWrapping.AfterObjCDeclaration = true; in expandPresetsBraceWrapping()
1233 Expanded.BraceWrapping.AfterStruct = true; in expandPresetsBraceWrapping()
1234 Expanded.BraceWrapping.AfterExternBlock = true; in expandPresetsBraceWrapping()
1235 Expanded.IndentExternBlock = FormatStyle::IEBS_AfterExternBlock; in expandPresetsBraceWrapping()
1236 Expanded.BraceWrapping.BeforeCatch = true; in expandPresetsBraceWrapping()
1237 Expanded.BraceWrapping.BeforeElse = true; in expandPresetsBraceWrapping()
1238 Expanded.BraceWrapping.BeforeLambdaBody = true; in expandPresetsBraceWrapping()
1241 Expanded.BraceWrapping = { in expandPresetsBraceWrapping()
1260 Expanded.IndentExternBlock = FormatStyle::IEBS_AfterExternBlock; in expandPresetsBraceWrapping()
1263 Expanded.BraceWrapping.AfterFunction = true; in expandPresetsBraceWrapping()
1270 static void expandPresetsSpaceBeforeParens(FormatStyle &Expanded) { in expandPresetsSpaceBeforeParens() argument
1271 if (Expanded.SpaceBeforeParens == FormatStyle::SBPO_Custom) in expandPresetsSpaceBeforeParens()
1274 Expanded.SpaceBeforeParensOptions = {}; in expandPresetsSpaceBeforeParens()
1276 switch (Expanded.SpaceBeforeParens) { in expandPresetsSpaceBeforeParens()
1280 Expanded.SpaceBeforeParensOptions.AfterControlStatements = true; in expandPresetsSpaceBeforeParens()
1281 Expanded.SpaceBeforeParensOptions.AfterForeachMacros = true; in expandPresetsSpaceBeforeParens()
1282 Expanded.SpaceBeforeParensOptions.AfterIfMacros = true; in expandPresetsSpaceBeforeParens()
1285 Expanded.SpaceBeforeParensOptions.AfterControlStatements = true; in expandPresetsSpaceBeforeParens()
1288 Expanded.SpaceBeforeParensOptions.BeforeNonEmptyParentheses = true; in expandPresetsSpaceBeforeParens()
3409 FormatStyle Expanded = Style; in reformat() local
3410 expandPresetsBraceWrapping(Expanded); in reformat()
3411 expandPresetsSpaceBeforeParens(Expanded); in reformat()
3412 Expanded.InsertBraces = false; in reformat()
3413 Expanded.RemoveBracesLLVM = false; in reformat()
3414 Expanded.RemoveSemicolon = false; in reformat()
3415 switch (Expanded.RequiresClausePosition) { in reformat()
3418 Expanded.IndentRequiresClause = false; in reformat()
3424 if (Expanded.DisableFormat) in reformat()
3428 if (Expanded.Language == FormatStyle::LK_JavaScript && isMpegTS(Code)) in reformat()
3461 return IntegerLiteralSeparatorFixer().process(Env, Expanded); in reformat()
3467 return QualifierAlignmentFixer(Env, Expanded, Code, Ranges, in reformat()
3475 FormatStyle S = Expanded; in reformat()
3483 FormatStyle S = Expanded; in reformat()
3491 FormatStyle S = Expanded; in reformat()
3500 return NamespaceEndCommentsFixer(Env, Expanded).process(); in reformat()
3506 return UsingDeclarationsSorter(Env, Expanded).process(); in reformat()
3513 return DefinitionBlockSeparator(Env, Expanded).process(); in reformat()
3520 return JavaScriptRequoter(Env, Expanded).process(/*SkipAnnotation=*/true); in reformat()
3525 return Formatter(Env, Expanded, Status).process(); in reformat()
3531 return TrailingCommaInserter(Env, Expanded).process(); in reformat()