clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I732e5e7e4a76173d0018b1cd540c3b9b4adee83e
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/test/test_utils.cpp b/test/test_utils.cpp
index 668803e..383ed4b 100644
--- a/test/test_utils.cpp
+++ b/test/test_utils.cpp
@@ -42,17 +42,16 @@
// std::string
EXPECT_CALL(sdbusMock, sd_bus_message_read_basic(IsNull(), 's', _))
.WillOnce(Invoke([&](sd_bus_message*, char, void* p) {
- const char** s = static_cast<const char**>(p);
- // Read the first parameter, the string.
- *s = path0;
- return 0;
- }))
- .WillOnce(Invoke([&](sd_bus_message*, char, void* p) {
- const char** s = static_cast<const char**>(p);
- // Read the first parameter, the string.
- *s = path1;
- return 0;
- }));
+ const char** s = static_cast<const char**>(p);
+ // Read the first parameter, the string.
+ *s = path0;
+ return 0;
+ })).WillOnce(Invoke([&](sd_bus_message*, char, void* p) {
+ const char** s = static_cast<const char**>(p);
+ // Read the first parameter, the string.
+ *s = path1;
+ return 0;
+ }));
EXPECT_CALL(sdbusMock, sd_bus_message_exit_container(IsNull()))
.WillOnce(Return(0)); /* end of std::vector */