From 88b6948b0cb38e98c11cbf1a666e77b85738e6e7 Mon Sep 17 00:00:00 2001 From: Andres Suarez Date: Sun, 14 Apr 2024 11:28:32 -0700 Subject: [PATCH] Apply clang-format 18 Summary: Previously this code conformed from clang-format 12. Reviewed By: igorsugak Differential Revision: D56065247 fbshipit-source-id: f5a985dd8f8b84f2f9e1818b3719b43c5a1b05b3 --- multipy/runtime/interpreter/interpreter_impl.cpp | 10 +++++----- multipy/runtime/loader.cpp | 7 +++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/multipy/runtime/interpreter/interpreter_impl.cpp b/multipy/runtime/interpreter/interpreter_impl.cpp index 92bece54..c94cd57e 100644 --- a/multipy/runtime/interpreter/interpreter_impl.cpp +++ b/multipy/runtime/interpreter/interpreter_impl.cpp @@ -680,11 +680,11 @@ ConcreteInterpreterImpl::acquireSession() { return new ConcreteInterpreterSessionImpl(this); } -extern "C" __attribute__((visibility("default"))) -torch::deploy::InterpreterImpl* -newInterpreterImpl( - const std::vector& extra_python_paths, - const std::vector& plugin_paths) { +extern "C" + __attribute__((visibility("default"))) torch::deploy::InterpreterImpl* + newInterpreterImpl( + const std::vector& extra_python_paths, + const std::vector& plugin_paths) { ConcreteInterpreterImplConstructorCommon(extra_python_paths, plugin_paths); int r = PyRun_SimpleString(start); diff --git a/multipy/runtime/loader.cpp b/multipy/runtime/loader.cpp index c29e3d94..e9b60e42 100644 --- a/multipy/runtime/loader.cpp +++ b/multipy/runtime/loader.cpp @@ -690,8 +690,7 @@ std::optional SystemLibraryImpl::tls_sym(const char* name) const { struct link_map* lm = nullptr; DEPLOY_CHECK( 0 == dlinfo(handle_, RTLD_DI_LINKMAP, &lm), "failed to query dlinfo"); - std::cout << "TLS dlinfo LOOKUP " << lm->l_name << " " << name << " " - << "\n"; + std::cout << "TLS dlinfo LOOKUP " << lm->l_name << " " << name << " " << "\n"; ElfDynamicInfo info; info.initialize_from_dynamic_section(lm->l_name, lm->l_ld, lm->l_addr, true); @@ -873,8 +872,8 @@ struct __attribute__((visibility("hidden"))) CustomLibraryImpl eh_frame_hdr_->eh_frame_ptr_enc == 0x1b, "unsupported eh_frame_pointer_enc {}", eh_frame_hdr_->eh_frame_ptr_enc); - eh_frame_ = - (void*)((int64_t)&eh_frame_hdr_->eh_frame_ptr + eh_frame_hdr_->eh_frame_ptr); + eh_frame_ = (void*)((int64_t)&eh_frame_hdr_->eh_frame_ptr + + eh_frame_hdr_->eh_frame_ptr); break; case PT_TLS: tls_file_size_ = phdr->p_filesz;