Skip to content

Commit 88b6948

Browse files
zertoshfacebook-github-bot
authored andcommitted
Apply clang-format 18
Summary: Previously this code conformed from clang-format 12. Reviewed By: igorsugak Differential Revision: D56065247 fbshipit-source-id: f5a985dd8f8b84f2f9e1818b3719b43c5a1b05b3
1 parent 7874559 commit 88b6948

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

multipy/runtime/interpreter/interpreter_impl.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -680,11 +680,11 @@ ConcreteInterpreterImpl::acquireSession() {
680680
return new ConcreteInterpreterSessionImpl(this);
681681
}
682682

683-
extern "C" __attribute__((visibility("default")))
684-
torch::deploy::InterpreterImpl*
685-
newInterpreterImpl(
686-
const std::vector<std::string>& extra_python_paths,
687-
const std::vector<std::string>& plugin_paths) {
683+
extern "C"
684+
__attribute__((visibility("default"))) torch::deploy::InterpreterImpl*
685+
newInterpreterImpl(
686+
const std::vector<std::string>& extra_python_paths,
687+
const std::vector<std::string>& plugin_paths) {
688688
ConcreteInterpreterImplConstructorCommon(extra_python_paths, plugin_paths);
689689

690690
int r = PyRun_SimpleString(start);

multipy/runtime/loader.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,7 @@ std::optional<TLSIndex> SystemLibraryImpl::tls_sym(const char* name) const {
690690
struct link_map* lm = nullptr;
691691
DEPLOY_CHECK(
692692
0 == dlinfo(handle_, RTLD_DI_LINKMAP, &lm), "failed to query dlinfo");
693-
std::cout << "TLS dlinfo LOOKUP " << lm->l_name << " " << name << " "
694-
<< "\n";
693+
std::cout << "TLS dlinfo LOOKUP " << lm->l_name << " " << name << " " << "\n";
695694

696695
ElfDynamicInfo info;
697696
info.initialize_from_dynamic_section(lm->l_name, lm->l_ld, lm->l_addr, true);
@@ -873,8 +872,8 @@ struct __attribute__((visibility("hidden"))) CustomLibraryImpl
873872
eh_frame_hdr_->eh_frame_ptr_enc == 0x1b,
874873
"unsupported eh_frame_pointer_enc {}",
875874
eh_frame_hdr_->eh_frame_ptr_enc);
876-
eh_frame_ =
877-
(void*)((int64_t)&eh_frame_hdr_->eh_frame_ptr + eh_frame_hdr_->eh_frame_ptr);
875+
eh_frame_ = (void*)((int64_t)&eh_frame_hdr_->eh_frame_ptr +
876+
eh_frame_hdr_->eh_frame_ptr);
878877
break;
879878
case PT_TLS:
880879
tls_file_size_ = phdr->p_filesz;

0 commit comments

Comments
 (0)