aboutsummaryrefslogtreecommitdiff
path: root/pw_string
diff options
context:
space:
mode:
authorRob Mohr <mohrr@google.com>2023-12-12 17:06:31 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-12-12 17:06:31 +0000
commit0abcebab4ca0a8795a19ca87a4f41f434c69f250 (patch)
treec29baafa87b7fb4c85021599f725859785b10cc2 /pw_string
parentb6fd39ebe9191bd6c79ecf3fb4fe98193469a2d4 (diff)
downloadpigweed-0abcebab4ca0a8795a19ca87a4f41f434c69f250.tar.gz
*: Fix formatting after clang roll
Change-Id: I4eab70c531fb9cb3cbc2c353b59e3d8989f7fa8d Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/184752 Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Reviewed-by: Alexei Frolov <frolv@google.com> Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'pw_string')
-rw-r--r--pw_string/size_report/string_builder_size_report_incremental.cc12
-rw-r--r--pw_string/string_builder_test.cc4
2 files changed, 3 insertions, 13 deletions
diff --git a/pw_string/size_report/string_builder_size_report_incremental.cc b/pw_string/size_report/string_builder_size_report_incremental.cc
index 87e7da920..f0762145d 100644
--- a/pw_string/size_report/string_builder_size_report_incremental.cc
+++ b/pw_string/size_report/string_builder_size_report_incremental.cc
@@ -95,11 +95,7 @@ int main() {
// Add five strings with either StringBuilder or std::snprintf.
FORMAT_STRING("Three", "Three");
FORMAT_STRING("point " << 1, "Three point %d", 1);
- FORMAT_STRING("four "
- << "one" << ' ' << 5u,
- "four %s %u",
- "one",
- 5u);
+ FORMAT_STRING("four " << "one" << ' ' << 5u, "four %s %u", "one", 5u);
FORMAT_STRING(string, "%s", string);
FORMAT_STRING("-->" << string << string << string << ' ' << integer << ' '
<< boolean << '!',
@@ -113,11 +109,7 @@ int main() {
// Add five more strings with either StringBuilder or std::snprintf.
FORMAT_STRING("Three", "Three");
FORMAT_STRING("point " << 1, "Three point %d", 1);
- FORMAT_STRING("four "
- << "one" << ' ' << 5u,
- "four %s %u",
- "one",
- 5u);
+ FORMAT_STRING("four " << "one" << ' ' << 5u, "four %s %u", "one", 5u);
FORMAT_STRING(string, "%s", string);
FORMAT_STRING(string << string << string << ' ' << integer << ' ' << boolean,
"%s%s%s %d %d",
diff --git a/pw_string/string_builder_test.cc b/pw_string/string_builder_test.cc
index 6080dc5ba..adccfe3e1 100644
--- a/pw_string/string_builder_test.cc
+++ b/pw_string/string_builder_test.cc
@@ -344,9 +344,7 @@ TEST(StringBuilder, StreamOutput_ExhaustBuffer_InOneString) {
EXPECT_STREQ("01234567", sb.data()); // only can fit 8
EXPECT_EQ(8u, sb.size());
- sb << "no"
- << " more "
- << "room" << '?';
+ sb << "no" << " more " << "room" << '?';
EXPECT_STREQ("01234567", sb.data());
}