@@ -3185,7 +3185,7 @@ TEST_F(FormatTest, FormatsLabels) {
3185
3185
// The opening brace may either be on the same unwrapped line as the colon or
3186
3186
// on a separate one. The formatter should recognize both.
3187
3187
Style = getLLVMStyle();
3188
- Style.BreakBeforeBraces = FormatStyle::BraceBreakingStyle:: BS_Allman;
3188
+ Style.BreakBeforeBraces = FormatStyle::BS_Allman;
3189
3189
verifyFormat("{\n"
3190
3190
" some_code();\n"
3191
3191
"test_label:\n"
@@ -3206,7 +3206,7 @@ TEST_F(FormatTest, FormatsLabels) {
3206
3206
3207
3207
TEST_F(FormatTest, MultiLineControlStatements) {
3208
3208
FormatStyle Style = getLLVMStyleWithColumns(20);
3209
- Style.BreakBeforeBraces = FormatStyle::BraceBreakingStyle:: BS_Custom;
3209
+ Style.BreakBeforeBraces = FormatStyle::BS_Custom;
3210
3210
Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_MultiLine;
3211
3211
// Short lines should keep opening brace on same line.
3212
3212
verifyFormat("if (foo) {\n"
@@ -3441,7 +3441,7 @@ TEST_F(FormatTest, MultiLineControlStatements) {
3441
3441
3442
3442
TEST_F(FormatTest, BeforeWhile) {
3443
3443
FormatStyle Style = getLLVMStyle();
3444
- Style.BreakBeforeBraces = FormatStyle::BraceBreakingStyle:: BS_Custom;
3444
+ Style.BreakBeforeBraces = FormatStyle::BS_Custom;
3445
3445
3446
3446
verifyFormat("do {\n"
3447
3447
" foo();\n"
@@ -23779,7 +23779,7 @@ TEST_F(FormatTest, FormatsLambdas) {
23779
23779
LLVMWithBeforeLambdaBody.BreakBeforeBraces = FormatStyle::BS_Custom;
23780
23780
LLVMWithBeforeLambdaBody.BraceWrapping.BeforeLambdaBody = true;
23781
23781
LLVMWithBeforeLambdaBody.AllowShortLambdasOnASingleLine =
23782
- FormatStyle::ShortLambdaStyle:: SLS_None;
23782
+ FormatStyle::SLS_None;
23783
23783
verifyFormat("FctWithOneNestedLambdaInline_SLS_None(\n"
23784
23784
" []()\n"
23785
23785
" {\n"
@@ -23815,7 +23815,7 @@ TEST_F(FormatTest, FormatsLambdas) {
23815
23815
LLVMWithBeforeLambdaBody);
23816
23816
23817
23817
LLVMWithBeforeLambdaBody.AllowShortLambdasOnASingleLine =
23818
- FormatStyle::ShortLambdaStyle:: SLS_Empty;
23818
+ FormatStyle::SLS_Empty;
23819
23819
verifyFormat("FctWithOneNestedLambdaInline_SLS_Empty(\n"
23820
23820
" []()\n"
23821
23821
" {\n"
@@ -23862,7 +23862,7 @@ TEST_F(FormatTest, FormatsLambdas) {
23862
23862
LLVMWithBeforeLambdaBody);
23863
23863
23864
23864
LLVMWithBeforeLambdaBody.AllowShortLambdasOnASingleLine =
23865
- FormatStyle::ShortLambdaStyle:: SLS_Inline;
23865
+ FormatStyle::SLS_Inline;
23866
23866
verifyFormat("FctWithOneNestedLambdaInline_SLS_Inline([]() { return 17; });",
23867
23867
LLVMWithBeforeLambdaBody);
23868
23868
verifyFormat("FctWithOneNestedLambdaEmpty_SLS_Inline([]() {});",
@@ -23893,7 +23893,7 @@ TEST_F(FormatTest, FormatsLambdas) {
23893
23893
LLVMWithBeforeLambdaBody);
23894
23894
23895
23895
LLVMWithBeforeLambdaBody.AllowShortLambdasOnASingleLine =
23896
- FormatStyle::ShortLambdaStyle:: SLS_All;
23896
+ FormatStyle::SLS_All;
23897
23897
verifyFormat("FctWithOneNestedLambdaInline_SLS_All([]() { return 17; });",
23898
23898
LLVMWithBeforeLambdaBody);
23899
23899
verifyFormat("FctWithOneNestedLambdaEmpty_SLS_All([]() {});",
@@ -24025,7 +24025,7 @@ TEST_F(FormatTest, FormatsLambdas) {
24025
24025
LLVMWithBeforeLambdaBody);
24026
24026
24027
24027
LLVMWithBeforeLambdaBody.AllowShortLambdasOnASingleLine =
24028
- FormatStyle::ShortLambdaStyle:: SLS_None;
24028
+ FormatStyle::SLS_None;
24029
24029
24030
24030
verifyFormat("auto select = [this]() -> const Library::Object *\n"
24031
24031
"{\n"
@@ -24273,7 +24273,7 @@ TEST_F(FormatTest, LambdaWithLineComments) {
24273
24273
LLVMWithBeforeLambdaBody.BreakBeforeBraces = FormatStyle::BS_Custom;
24274
24274
LLVMWithBeforeLambdaBody.BraceWrapping.BeforeLambdaBody = true;
24275
24275
LLVMWithBeforeLambdaBody.AllowShortLambdasOnASingleLine =
24276
- FormatStyle::ShortLambdaStyle:: SLS_All;
24276
+ FormatStyle::SLS_All;
24277
24277
24278
24278
verifyFormat("auto k = []() { return; }", LLVMWithBeforeLambdaBody);
24279
24279
verifyFormat("auto k = []() // comment\n"
@@ -28371,7 +28371,7 @@ TEST_F(FormatTest, BreakAfterAttributes) {
28371
28371
"Foo &operator-(Foo &);",
28372
28372
Style);
28373
28373
28374
- Style.ReferenceAlignment = FormatStyle::ReferenceAlignmentStyle:: RAS_Left;
28374
+ Style.ReferenceAlignment = FormatStyle::RAS_Left;
28375
28375
verifyFormat("[[nodiscard]]\n"
28376
28376
"Foo& operator-(Foo&);",
28377
28377
Style);
0 commit comments