forked from OSchip/llvm-project
[clang-format] Remove unnecessary qualifications. NFC.
This commit is contained in:
parent
7a641d2499
commit
450ddddcb7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue