Add check-namespace script (#6438)

This also fixes a lot of code files to be conforming to the script.

Co-authored-by: allejok96 <allejok96@gmail.com>
This commit is contained in:
Johannes Lorenz
2022-08-30 02:19:07 +02:00
committed by GitHub
parent 17f597695b
commit 3cc5ec7282
42 changed files with 360 additions and 66 deletions

View File

@@ -58,4 +58,4 @@ private:
} // namespace lmms
#endif // LMMS_HAVE_LV2
#endif

View File

@@ -57,7 +57,7 @@
#include <wine/exception.h>
#endif
#endif
#endif // LMMS_BUILD_LINUX
#ifndef NATIVE_LINUX_VST
#define USE_WS_PREFIX
@@ -883,7 +883,7 @@ void RemoteVstPlugin::initEditor()
pluginDispatch(effEditTop);
m_x11WindowVisible = true;
#endif
#endif // NATIVE_LINUX_VST
}
@@ -1090,16 +1090,16 @@ void RemoteVstPlugin::process( const sampleFrame * _in, sampleFrame * _out )
#ifdef OLD_VST_SDK
if( m_plugin->flags & effFlagsCanReplacing )
{
#endif
m_plugin->processReplacing( m_plugin, m_inputs, m_outputs,
bufferSize() );
#ifdef OLD_VST_SDK
}
else
{
m_plugin->process( m_plugin, m_inputs, m_outputs,
bufferSize() );
}
#else
m_plugin->processReplacing(m_plugin, m_inputs, m_outputs, bufferSize());
#endif
unlockShm();
@@ -1937,7 +1937,7 @@ intptr_t RemoteVstPlugin::hostCallback( AEffect * _effect, int32_t _opcode,
// TODO
// close window, platform specific handle in <ptr>
return 0;
#endif
#endif // OLD_VST_SDK
case audioMasterSizeWindow:
{
@@ -2334,7 +2334,7 @@ void RemoteVstPlugin::guiEventLoop()
}
}
}
#endif
#endif // NATIVE_LINUX_VST
#ifndef NATIVE_LINUX_VST
@@ -2385,7 +2385,7 @@ LRESULT CALLBACK RemoteVstPlugin::wndProc( HWND hwnd, UINT uMsg,
}
#endif
#endif // NATIVE_LINUX_VST
} // namespace lmms
@@ -2421,7 +2421,7 @@ int main( int _argc, char * * _argv )
sched_get_priority_min( SCHED_FIFO ) ) / 2;
sched_setscheduler( 0, SCHED_FIFO, &sparam );
#endif
#endif
#endif // LMMS_BUILD_LINUX
#ifdef LMMS_BUILD_WIN32
if( !SetPriorityClass( GetCurrentProcess(), HIGH_PRIORITY_CLASS ) )

View File

@@ -111,7 +111,7 @@ private:
uchar* m_map;
};
}
} // namespace PE
namespace lmms
{

View File

@@ -363,7 +363,7 @@ namespace SimpleRandom {
return dist(generator);
}
};
}
} // namespace SimpleRandom
static freefunc0<float,SimpleRandom::float_random_with_engine,false> simple_rand;

View File

@@ -64,7 +64,7 @@ LocalZynAddSubFx::LocalZynAddSubFx() :
pthread_win32_process_attach_np();
pthread_win32_thread_attach_np();
#endif
#endif
#endif // LMMS_BUILD_WIN32
initConfig();

View File

@@ -278,7 +278,7 @@ int main( int _argc, char * * _argv )
pthread_win32_process_attach_np();
pthread_win32_thread_attach_np();
#endif
#endif
#endif // LMMS_BUILD_WIN32
#ifdef SYNC_WITH_SHM_FIFO
@@ -298,7 +298,7 @@ int main( int _argc, char * * _argv )
pthread_win32_thread_detach_np();
pthread_win32_process_detach_np();
#endif
#endif
#endif // LMMS_BUILD_WIN32
return 0;
}