Fix some of the clang-tidy lints

This commit is contained in:
Robbert van der Helm
2021-04-14 16:09:46 +02:00
parent 8942727661
commit 4937010557
13 changed files with 40 additions and 24 deletions
+4 -1
View File
@@ -100,8 +100,11 @@ Vst2Bridge::Vst2Bridge(MainContext& main_context,
// `get_bridge_instance` trick as in `plugin/bridges/vst2.cpp`, but since
// the plugin will probably call the host callback while it's initializing
// we sadly have to use a global here.
// Note that this reinterpret cast is not needed at all since the function
// pointer types are exactly the same, but clangd will complain otherwise
current_bridge_instance = this;
plugin = vst_entry_point(host_callback_proxy);
plugin = vst_entry_point(
reinterpret_cast<audioMasterCallback>(host_callback_proxy));
if (!plugin) {
throw std::runtime_error("VST plugin at '" + plugin_dll_path +
"' failed to initialize.");
+1
View File
@@ -33,6 +33,7 @@
//
// https://bugs.winehq.org/show_bug.cgi?id=50670
#define __IFileOperation_INTERFACE_DEFINED__
// NOLINTNEXTLINE(bugprone-suspicious-include)
#include <public.sdk/source/vst/hosting/module_win32.cpp>
/**