[clang-format] Remove unnecessary qualifications. NFC.

This commit is contained in:
Marek Kurdej 2021-12-21 17:51:10 +01:00
parent 7a641d2499
commit 450ddddcb7
1 changed files with 4 additions and 4 deletions

View File

@ -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<bool>(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<bool>(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);