chore: Fix clang-tidy issues

This commit is contained in:
Sergey Kuznetsov
2026-07-23 14:07:08 +01:00
parent d54ca4cd3b
commit cb6dad0bc4
4 changed files with 22 additions and 24 deletions

View File

@@ -45,11 +45,7 @@ WasmImpArgs(WasmImportFunc& e)
if constexpr (N < C)
{
using at = boost::mpl::at_c<Mpl, N>::type;
if constexpr (std::is_pointer_v<at>)
{
e.params.push_back(WasmTypes::WtI32);
}
else if constexpr (std::is_same_v<at, std::int32_t>)
if constexpr (std::is_pointer_v<at> || std::is_same_v<at, std::int32_t>)
{
e.params.push_back(WasmTypes::WtI32);
}
@@ -73,11 +69,7 @@ template <typename Rt>
void
WasmImpRet(WasmImportFunc& e)
{
if constexpr (std::is_pointer_v<Rt>)
{
e.result = WasmTypes::WtI32;
}
else if constexpr (std::is_same_v<Rt, std::int32_t>)
if constexpr (std::is_pointer_v<Rt> || std::is_same_v<Rt, std::int32_t>)
{
e.result = WasmTypes::WtI32;
}

View File

@@ -264,7 +264,7 @@ public:
return instanceWrap_.getFunc(funcName, exportTypes_);
}
wasm_functype_t*
wasm_functype_t const*
getFuncType(std::string_view funcName) const;
Wmem