clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I748aeef75e2078199193cd98013dd2fe7f6b5db8
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/dump_offload.cpp b/dump_offload.cpp
index bb647e5..4958b0c 100644
--- a/dump_offload.cpp
+++ b/dump_offload.cpp
@@ -72,8 +72,8 @@
}
lg2::error("writeOnUnixSocket: write() failed, errno: {ERRNO}",
"ERRNO", errno);
- std::string msg = "write() on socket failed " +
- std::string(strerror(errno));
+ std::string msg =
+ "write() on socket failed " + std::string(strerror(errno));
throw std::runtime_error(msg);
}
}
@@ -98,8 +98,8 @@
sizeof(socketAddr.sun_path))
{
lg2::error("UNIX socket path too long");
- std::string msg = "UNIX socket path is too long " +
- std::string(strerror(errno));
+ std::string msg =
+ "UNIX socket path is too long " + std::string(strerror(errno));
throw std::length_error(msg);
}
strncpy(socketAddr.sun_path, sockPath.c_str(),
@@ -168,8 +168,8 @@
lg2::error(
"accept() failed, errno: {ERRNO}, DUMP_ID: {DUMP_ID}",
"ERRNO", errno, "DUMP_ID", dumpId);
- std::string msg = "accept() failed " +
- std::string(strerror(errno));
+ std::string msg =
+ "accept() failed " + std::string(strerror(errno));
throw std::runtime_error(msg);
}