From 97b796e7788ae69c0aaeec2644246d9f10d2739d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Jun 2026 19:25:17 +0200 Subject: finally, perfect .clang-format settings? --- src/process.cpp | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'src/process.cpp') diff --git a/src/process.cpp b/src/process.cpp index e323135..b251003 100644 --- a/src/process.cpp +++ b/src/process.cpp @@ -92,16 +92,18 @@ Handle create_process(ProcessParameters& params) { { auto cmd_line = escape_command_line(params.cmd_line); - const auto ret = ::CreateProcessW(NULL, - cmd_line.data(), - NULL, - NULL, - TRUE, - dwCreationFlags, - NULL, - NULL, - &startup_info, - &child_info); + const auto ret = ::CreateProcessW( + NULL, + cmd_line.data(), + NULL, + NULL, + TRUE, + dwCreationFlags, + NULL, + NULL, + &startup_info, + &child_info + ); if (!ret) { throw error::windows(GetLastError(), "CreateProcessW"); @@ -392,7 +394,8 @@ Resource Process::get_resource(uint32_t id) { if (data == NULL) throw std::runtime_error{ - std::format("Couldn't get data pointer for resource with ID {}", id)}; + std::format("Couldn't get data pointer for resource with ID {}", id) + }; const auto nb = ::SizeofResource(module, src); -- cgit v1.3