[clang] 450dddd - [clang-format] Remove unnecessary qualifications. NFC.
Marek Kurdej via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 21 08:54:03 PST 2021
Author: Marek Kurdej
Date: 2021-12-21T17:53:42+01:00
New Revision: 450ddddcb769b680cd3547877f5d64d40cde16ba
URL: https://github.com/llvm/llvm-project/commit/450ddddcb769b680cd3547877f5d64d40cde16ba
DIFF: https://github.com/llvm/llvm-project/commit/450ddddcb769b680cd3547877f5d64d40cde16ba.diff
LOG: [clang-format] Remove unnecessary qualifications. NFC.
Added:
Modified:
clang/unittests/Format/FormatTest.cpp
Removed:
################################################################################
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<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);
More information about the cfe-commits
mailing list