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

@@ -143,7 +143,7 @@ private:
void *hostApiSpecificStreamInfo;
} PaStreamParameters;
#endif
#endif // PORTAUDIO_V19
PaStream * m_paStream;
PaStreamParameters m_outputParameters;

View File

@@ -102,6 +102,6 @@ private:
} // namespace lmms
#endif
#endif // LMMS_HAVE_PULSEAUDIO
#endif

View File

@@ -87,6 +87,6 @@ private:
} // namespace lmms
#endif /* LMMS_HAVE_SNDIO */
#endif // LMMS_HAVE_SNDIO
#endif /* _AUDIO_SNDIO_H */
#endif // _AUDIO_SNDIO_H

View File

@@ -50,7 +50,7 @@ public:
} ;
}
} // namespace gui
class DummyEffectControls : public EffectControls
{

View File

@@ -66,6 +66,6 @@ protected:
} ;
} // namesplace lmms
} // namespace lmms
#endif

View File

@@ -22,6 +22,8 @@
*
*/
#ifndef IO_HELPER_H
#define IO_HELPER_H
#include "lmmsconfig.h"
@@ -37,7 +39,7 @@
#ifdef LMMS_HAVE_UNISTD_H
#include <unistd.h>
#endif
#endif
#endif // LMMS_BUILD_WIN32
namespace lmms
{
@@ -87,4 +89,6 @@ int fileToDescriptor(FILE* f, bool closeFile = true)
}
} // namespace lmms
} // namespace lmms
#endif

View File

@@ -23,12 +23,12 @@
*
*/
#include <QWidget>
#include "lmms_export.h"
#ifndef LMMSPALETTE_H
#define LMMSPALETTE_H
#include <QWidget>
#include "lmms_export.h"
namespace lmms::gui
{

View File

@@ -73,6 +73,6 @@ private:
} // namespace lmms
#endif /* LMMS_HAVE_SNDIO */
#endif // LMMS_HAVE_SNDIO
#endif /* _MIDI_SNDIO_H */
#endif // _MIDI_SNDIO_H

View File

@@ -341,7 +341,7 @@ private:
std::atomic_int m_lockDepth;
} ;
#endif
#endif // SYNC_WITH_SHM_FIFO
@@ -530,7 +530,7 @@ public:
writeInt( len );
write( _s.c_str(), len );
}
#endif
#endif // SYNC_WITH_SHM_FIFO
#ifndef BUILD_REMOTE_PLUGIN_CLIENT
inline bool messagesLeft()
@@ -562,7 +562,7 @@ public:
{
return waitDepthCounter() > 0;
}
#endif
#endif // BUILD_REMOTE_PLUGIN_CLIENT
virtual bool processMessage( const message & _m ) = 0;
@@ -667,7 +667,7 @@ private:
pthread_mutex_t m_receiveMutex;
pthread_mutex_t m_sendMutex;
#endif
#endif // SYNC_WITH_SHM_FIFO
} ;

View File

@@ -173,7 +173,7 @@ private:
std::condition_variable m_cv;
std::thread m_thread;
};
#endif
#endif // LMMS_BUILD_WIN32
#ifdef SYNC_WITH_SHM_FIFO
RemotePluginClient::RemotePluginClient( const std::string& _shm_in, const std::string& _shm_out ) :

View File

@@ -33,7 +33,7 @@
#ifndef NDEBUG
#define NDEBUG
#endif
#endif
#endif // LMMS_DEBUG
#include <cassert>
#include <cstdio>

View File

@@ -65,7 +65,7 @@ inline QPixmap getIconPixmap( const QString& _name,
}
//QString getText( const char * _name );
}
} // namespace PLUGIN_NAME
#endif // PLUGIN_NAME

View File

@@ -118,7 +118,7 @@ static inline float absFraction( float _x )
}
#endif
#endif
#endif // __INTEL_COMPILER
@@ -153,7 +153,7 @@ static inline long double fastFmal( long double a, long double b, long double c
#endif
#else
return a * b + c;
#endif
#endif // FP_FAST_FMAL
}
//! @brief Takes advantage of fmaf() function if present in hardware
@@ -167,7 +167,7 @@ static inline float fastFmaf( float a, float b, float c )
#endif
#else
return a * b + c;
#endif
#endif // FP_FAST_FMAF
}
//! @brief Takes advantage of fma() function if present in hardware

View File

@@ -1,3 +1,6 @@
#ifndef VERSION_INFO_H
#define VERSION_INFO_H
#include "lmms_basics.h"
#ifdef __GNUC__
@@ -47,3 +50,5 @@ constexpr const char* LMMS_BUILDCONF_PLATFORM = "win32";
#ifdef LMMS_BUILD_HAIKU
constexpr const char* LMMS_BUILDCONF_PLATFORM = "Haiku";
#endif
#endif