Skip to content

Commit d2b91ac

Browse files
committed
chore: format with clang-format-18
Signed-off-by: Matt Leon <[email protected]>
1 parent b22dc16 commit d2b91ac

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/v8/v8.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ bool V8::link(std::string_view /*debug_name*/) {
343343
assert(module_ != nullptr);
344344

345345
const auto import_types = module_.get()->imports();
346-
wasm::vec<wasm::Extern *> imports = wasm::vec<wasm::Extern*>::make_uninitialized(import_types.size());
346+
wasm::vec<wasm::Extern *> imports =
347+
wasm::vec<wasm::Extern *>::make_uninitialized(import_types.size());
347348

348349
for (size_t i = 0; i < import_types.size(); i++) {
349350
std::string_view module(import_types[i]->module().get(), import_types[i]->module().size());
@@ -527,7 +528,8 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view
527528
convertArgsTupleToValTypes<std::tuple<>>());
528529
auto func = wasm::Func::make(
529530
store_.get(), type.get(),
530-
[](void *data, const wasm::vec<wasm::Val>& params, wasm::vec<wasm::Val>& /*results*/) -> wasm::own<wasm::Trap> {
531+
[](void *data, const wasm::vec<wasm::Val> &params,
532+
wasm::vec<wasm::Val> & /*results*/) -> wasm::own<wasm::Trap> {
531533
auto *func_data = reinterpret_cast<FuncData *>(data);
532534
const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace);
533535
if (log) {
@@ -563,7 +565,8 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view
563565
convertArgsTupleToValTypes<std::tuple<R>>());
564566
auto func = wasm::Func::make(
565567
store_.get(), type.get(),
566-
[](void *data, const wasm::vec<wasm::Val>& params, wasm::vec<wasm::Val>& results) -> wasm::own<wasm::Trap> {
568+
[](void *data, const wasm::vec<wasm::Val> &params,
569+
wasm::vec<wasm::Val> &results) -> wasm::own<wasm::Trap> {
567570
auto *func_data = reinterpret_cast<FuncData *>(data);
568571
const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace);
569572
if (log) {

0 commit comments

Comments
 (0)