[llvm] e1912a1 - [NFC][ADT] Format StringRefTest.cpp to fit in 80 columns. (#105502)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 07:10:20 PDT 2024
Author: Rahul Joshi
Date: 2024-08-21T07:10:17-07:00
New Revision: e1912a15b6b05aab36b7bcbe617980e8d808bd80
URL: https://github.com/llvm/llvm-project/commit/e1912a15b6b05aab36b7bcbe617980e8d808bd80
DIFF: https://github.com/llvm/llvm-project/commit/e1912a15b6b05aab36b7bcbe617980e8d808bd80.diff
LOG: [NFC][ADT] Format StringRefTest.cpp to fit in 80 columns. (#105502)
Added:
Modified:
llvm/unittests/ADT/StringRefTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/ADT/StringRefTest.cpp b/llvm/unittests/ADT/StringRefTest.cpp
index b3c206a336962d..40351c99d0185c 100644
--- a/llvm/unittests/ADT/StringRefTest.cpp
+++ b/llvm/unittests/ADT/StringRefTest.cpp
@@ -939,16 +939,17 @@ struct GetDoubleStrings {
bool AllowInexact;
bool ShouldFail;
double D;
-} DoubleStrings[] = {{"0", false, false, 0.0},
- {"0.0", false, false, 0.0},
- {"-0.0", false, false, -0.0},
- {"123.45", false, true, 123.45},
- {"123.45", true, false, 123.45},
- {"1.8e308", true, false, std::numeric_limits<double>::infinity()},
- {"1.8e308", false, true, std::numeric_limits<double>::infinity()},
- {"0x0.0000000000001P-1023", false, true, 0.0},
- {"0x0.0000000000001P-1023", true, false, 0.0},
- };
+} DoubleStrings[] = {
+ {"0", false, false, 0.0},
+ {"0.0", false, false, 0.0},
+ {"-0.0", false, false, -0.0},
+ {"123.45", false, true, 123.45},
+ {"123.45", true, false, 123.45},
+ {"1.8e308", true, false, std::numeric_limits<double>::infinity()},
+ {"1.8e308", false, true, std::numeric_limits<double>::infinity()},
+ {"0x0.0000000000001P-1023", false, true, 0.0},
+ {"0x0.0000000000001P-1023", true, false, 0.0},
+};
TEST(StringRefTest, getAsDouble) {
for (const auto &Entry : DoubleStrings) {
@@ -1117,7 +1118,8 @@ TEST(StringRefTest, StringLiteral) {
constexpr StringRef StringRefs[] = {"Foo", "Bar"};
EXPECT_EQ(StringRef("Foo"), StringRefs[0]);
EXPECT_EQ(3u, (std::integral_constant<size_t, StringRefs[0].size()>::value));
- EXPECT_EQ(false, (std::integral_constant<bool, StringRefs[0].empty()>::value));
+ EXPECT_EQ(false,
+ (std::integral_constant<bool, StringRefs[0].empty()>::value));
EXPECT_EQ(StringRef("Bar"), StringRefs[1]);
constexpr StringLiteral Strings[] = {"Foo", "Bar"};
More information about the llvm-commits
mailing list