diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index eeb2fd04aae3..a787e26ccd5a 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -21590,7 +21590,7 @@ TEST_F(ReplacementTest, FormatCodeAfterReplacements) { tooling::Replacement(Context.Sources, Context.getLocation(ID, 4, 13), 1, "nullptr")}); - format::FormatStyle Style = format::getLLVMStyle(); + FormatStyle Style = getLLVMStyle(); Style.ColumnLimit = 20; // Set column limit to 20 to increase readibility. auto FormattedReplaces = formatReplacements(Code, Replaces, Style); EXPECT_TRUE(static_cast(FormattedReplaces)) @@ -21619,7 +21619,7 @@ TEST_F(ReplacementTest, SortIncludesAfterReplacement) { {tooling::Replacement(Context.Sources, Context.getLocation(ID, 1, 1), 0, "#include \"b.h\"\n")}); - format::FormatStyle Style = format::getLLVMStyle(); + FormatStyle Style = getLLVMStyle(); Style.SortIncludes = FormatStyle::SI_CaseSensitive; auto FormattedReplaces = formatReplacements(Code, Replaces, Style); EXPECT_TRUE(static_cast(FormattedReplaces)) @@ -21638,7 +21638,7 @@ TEST_F(FormatTest, FormatSortsUsingDeclarations) { } TEST_F(FormatTest, UTF8CharacterLiteralCpp03) { - format::FormatStyle Style = format::getLLVMStyle(); + FormatStyle Style = getLLVMStyle(); Style.Standard = FormatStyle::LS_Cpp03; // cpp03 recognize this string as identifier u8 and literal character 'a' EXPECT_EQ("auto c = u8 'a';", format("auto c = u8'a';", Style)); @@ -21718,7 +21718,7 @@ TEST_F(FormatTest, StructuredBindings) { EXPECT_EQ("auto const &&[x, y]{expr};", format("auto const && [x,y] {expr};")); - format::FormatStyle Spaces = format::getLLVMStyle(); + FormatStyle Spaces = getLLVMStyle(); Spaces.SpacesInSquareBrackets = true; verifyFormat("auto [ a, b ] = f();", Spaces); verifyFormat("auto &&[ a, b ] = f();", Spaces);