Skip to content

Commit

Permalink
Apply clang-format 18
Browse files Browse the repository at this point in the history
Summary: Previously this code conformed from clang-format 12.

Reviewed By: igorsugak

Differential Revision: D56065247

fbshipit-source-id: f5a985dd8f8b84f2f9e1818b3719b43c5a1b05b3
  • Loading branch information
zertosh authored and facebook-github-bot committed Apr 14, 2024
1 parent 7874559 commit 88b6948
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions multipy/runtime/interpreter/interpreter_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,11 @@ ConcreteInterpreterImpl::acquireSession() {
return new ConcreteInterpreterSessionImpl(this);
}

extern "C" __attribute__((visibility("default")))
torch::deploy::InterpreterImpl*
newInterpreterImpl(
const std::vector<std::string>& extra_python_paths,
const std::vector<std::string>& plugin_paths) {
extern "C"
__attribute__((visibility("default"))) torch::deploy::InterpreterImpl*
newInterpreterImpl(
const std::vector<std::string>& extra_python_paths,
const std::vector<std::string>& plugin_paths) {
ConcreteInterpreterImplConstructorCommon(extra_python_paths, plugin_paths);

int r = PyRun_SimpleString(start);
Expand Down
7 changes: 3 additions & 4 deletions multipy/runtime/loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,7 @@ std::optional<TLSIndex> 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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 88b6948

Please sign in to comment.