diff --git a/ecsact/wasm/detail/guest_imports/env.hh b/ecsact/wasm/detail/guest_imports/env.hh index 88ac25d..bfb1558 100644 --- a/ecsact/wasm/detail/guest_imports/env.hh +++ b/ecsact/wasm/detail/guest_imports/env.hh @@ -148,4 +148,4 @@ const auto guest_env_module_imports = allowed_guest_imports_t{ }, }; -} +} // namespace ecsact::wasm::detail diff --git a/ecsact/wasm/detail/guest_imports/wasi_snapshot_preview1.hh b/ecsact/wasm/detail/guest_imports/wasi_snapshot_preview1.hh index 34f309e..f77ca06 100644 --- a/ecsact/wasm/detail/guest_imports/wasi_snapshot_preview1.hh +++ b/ecsact/wasm/detail/guest_imports/wasi_snapshot_preview1.hh @@ -115,4 +115,4 @@ const auto guest_wasi_module_imports = allowed_guest_imports_t{ }, }; -} +} // namespace ecsact::wasm::detail diff --git a/ecsact/wasm/detail/logger.hh b/ecsact/wasm/detail/logger.hh index 33844a5..af2fcc9 100644 --- a/ecsact/wasm/detail/logger.hh +++ b/ecsact/wasm/detail/logger.hh @@ -28,8 +28,8 @@ auto start_transaction() -> log_transaction; auto push_log_line(const log_transaction& transaction, log_line_entry entry) -> void; -auto get_log_lines(const log_transaction& transaction) - -> const std::vector&; +auto get_log_lines(const log_transaction& transaction +) -> const std::vector&; auto clear_log_lines(const log_transaction& transaction) -> void; @@ -38,7 +38,7 @@ auto clear_log_lines(const log_transaction& transaction) -> void; auto push_stdio_str(ecsactsi_wasm_log_level level, std::string_view str) -> void; -auto consume_stdio_str_as_log_lines(const log_transaction& transaction) - -> std::vector; +auto consume_stdio_str_as_log_lines(const log_transaction& transaction +) -> std::vector; } // namespace ecsact::wasm::detail diff --git a/ecsact/wasm/detail/wasi_fs.cc b/ecsact/wasm/detail/wasi_fs.cc index 7e04fbd..78813b5 100644 --- a/ecsact/wasm/detail/wasi_fs.cc +++ b/ecsact/wasm/detail/wasi_fs.cc @@ -61,8 +61,8 @@ auto ecsact::wasm::detail::wasi::fs::real_path(int32_t fd) -> std::string { return virtual_files.at(fd).real_path; } -auto ecsact::wasm::detail::wasi::fs::real_path(std::string_view virtual_path) - -> std::string { +auto ecsact::wasm::detail::wasi::fs::real_path(std::string_view virtual_path +) -> std::string { const auto virtual_path_s = std::string{virtual_path}; auto itr = virtual_file_map.find(virtual_path_s); @@ -74,8 +74,8 @@ auto ecsact::wasm::detail::wasi::fs::real_path(std::string_view virtual_path) return ""; } -auto ecsact::wasm::detail::wasi::fs::fdstat(int32_t fd) - -> ecsactsi_wasi_fdstat_t { +auto ecsact::wasm::detail::wasi::fs::fdstat(int32_t fd +) -> ecsactsi_wasi_fdstat_t { if(!virtual_files.contains(fd)) { return {}; } @@ -83,8 +83,8 @@ auto ecsact::wasm::detail::wasi::fs::fdstat(int32_t fd) return virtual_files.at(fd).fdstat; } -auto ecsact::wasm::detail::wasi::fs::fdstat(std::string_view virtual_path) - -> ecsactsi_wasi_fdstat_t { +auto ecsact::wasm::detail::wasi::fs::fdstat(std::string_view virtual_path +) -> ecsactsi_wasi_fdstat_t { const auto virtual_path_s = std::string{virtual_path}; auto itr = virtual_file_map.find(virtual_path_s); @@ -96,8 +96,8 @@ auto ecsact::wasm::detail::wasi::fs::fdstat(std::string_view virtual_path) return {}; } -auto ecsact::wasm::detail::wasi::fs::ensure_open(int32_t pseudo_fd) - -> std::FILE* { +auto ecsact::wasm::detail::wasi::fs::ensure_open(int32_t pseudo_fd +) -> std::FILE* { auto& info = virtual_files.at(pseudo_fd); if(info.opened_file) { return *info.opened_file;