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:
@@ -566,7 +566,7 @@ void ConfigManager::loadConfigFile(const QString & configFile)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#endif // LMMS_HAVE_STK
|
||||
|
||||
upgrade();
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#ifdef _MSC_VER
|
||||
//not #if LMMS_BUILD_WIN32 because we have strncasecmp in mingw
|
||||
#define strcasecmp _stricmp
|
||||
#endif
|
||||
#endif // _MSC_VER
|
||||
|
||||
namespace lmms
|
||||
{
|
||||
|
||||
@@ -672,7 +672,7 @@ f_cnt_t SampleBuffer::decodeSampleOGGVorbis(
|
||||
|
||||
return frames;
|
||||
}
|
||||
#endif
|
||||
#endif // LMMS_HAVE_OGGVORBIS
|
||||
|
||||
|
||||
|
||||
@@ -1258,7 +1258,7 @@ void flacStreamEncoderMetadataCallback(
|
||||
b->write((const char *) metadata, sizeof(*metadata));
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_FLAC_STREAM_ENCODER_H
|
||||
|
||||
|
||||
|
||||
@@ -1314,12 +1314,12 @@ QString & SampleBuffer::toBase64(QString & dst) const
|
||||
|
||||
base64::encode(baWriter.buffer().data(), baWriter.buffer().size(), dst);
|
||||
|
||||
#else /* LMMS_HAVE_FLAC_STREAM_ENCODER_H */
|
||||
#else // LMMS_HAVE_FLAC_STREAM_ENCODER_H
|
||||
|
||||
base64::encode((const char *) m_data,
|
||||
m_frames * sizeof(sampleFrame), dst);
|
||||
|
||||
#endif /* LMMS_HAVE_FLAC_STREAM_ENCODER_H */
|
||||
#endif // LMMS_HAVE_FLAC_STREAM_ENCODER_H
|
||||
|
||||
return dst;
|
||||
}
|
||||
@@ -1461,7 +1461,7 @@ void flacStreamDecoderErrorCallback(
|
||||
// what to do now??
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_FLAC_STREAM_DECODER_H
|
||||
|
||||
|
||||
void SampleBuffer::loadFromBase64(const QString & data)
|
||||
@@ -1517,7 +1517,7 @@ void SampleBuffer::loadFromBase64(const QString & data)
|
||||
m_origData = MM_ALLOC<sampleFrame>( m_origFrames);
|
||||
memcpy(m_origData, dst, dsize);
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_FLAC_STREAM_DECODER_H
|
||||
|
||||
delete[] dst;
|
||||
|
||||
|
||||
@@ -542,4 +542,4 @@ int AudioAlsa::setSWParams()
|
||||
|
||||
} // namespace lmms
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_ALSA
|
||||
|
||||
@@ -134,4 +134,4 @@ void AudioFileMP3::tearDownEncoder()
|
||||
|
||||
} // namespace lmms
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_MP3LAME
|
||||
|
||||
@@ -272,6 +272,6 @@ void AudioFileOgg::finishEncoding()
|
||||
|
||||
} // namespace lmms
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_OGGVORBIS
|
||||
|
||||
|
||||
|
||||
@@ -339,7 +339,7 @@ void AudioJack::renamePort( AudioPort * _port )
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif // AUDIO_PORT_SUPPORT
|
||||
}
|
||||
|
||||
|
||||
@@ -502,4 +502,4 @@ void AudioJack::setupWidget::saveSettings()
|
||||
|
||||
} // namespace lmms
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_JACK
|
||||
|
||||
@@ -362,5 +362,5 @@ void AudioOss::setupWidget::saveSettings()
|
||||
|
||||
} // namespace lmms
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_OSS
|
||||
|
||||
|
||||
@@ -511,7 +511,7 @@ void AudioPortAudio::setupWidget::show()
|
||||
} // namespace lmms
|
||||
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_PORTAUDIO
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -353,5 +353,5 @@ void AudioPulseAudio::setupWidget::saveSettings()
|
||||
|
||||
} // namespace lmms
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_PULSEAUDIO
|
||||
|
||||
|
||||
@@ -304,7 +304,7 @@ void AudioSdl::sdlAudioCallback( Uint8 * _buf, int _len )
|
||||
m_convertedBufPos += min_len;
|
||||
m_convertedBufPos %= m_convertedBufSize;
|
||||
}
|
||||
#endif
|
||||
#endif // LMMS_HAVE_SDL2
|
||||
}
|
||||
|
||||
#ifdef LMMS_HAVE_SDL2
|
||||
@@ -349,5 +349,5 @@ void AudioSdl::setupWidget::saveSettings()
|
||||
|
||||
} // namespace lmms
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_SDL
|
||||
|
||||
|
||||
@@ -215,4 +215,4 @@ void AudioSndio::setupWidget::saveSettings()
|
||||
|
||||
} // namespace lmms
|
||||
|
||||
#endif /* LMMS_HAVE_SNDIO */
|
||||
#endif // LMMS_HAVE_SNDIO
|
||||
|
||||
@@ -521,4 +521,4 @@ void AudioSoundIo::setupWidget::saveSettings()
|
||||
|
||||
} // namespace lmms
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_SOUNDIO
|
||||
|
||||
@@ -120,7 +120,7 @@ void consoleMessageHandler(QtMsgType type,
|
||||
QByteArray localMsg = msg.toLocal8Bit();
|
||||
fprintf(stderr, "%s\n", localMsg.constData());
|
||||
}
|
||||
#endif
|
||||
#endif // LMMS_BUILD_WIN32
|
||||
|
||||
|
||||
inline void loadTranslation( const QString & tname,
|
||||
@@ -776,7 +776,7 @@ int main( int argc, char * * argv )
|
||||
printf( "Notice: could not set realtime priority.\n" );
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif // LMMS_HAVE_SCHED_H
|
||||
#endif
|
||||
|
||||
#ifdef LMMS_BUILD_WIN32
|
||||
|
||||
@@ -118,4 +118,4 @@ void MidiSndio::run()
|
||||
|
||||
} // namespace lmms
|
||||
|
||||
#endif /* LMMS_HAVE_SNDIO */
|
||||
#endif // LMMS_HAVE_SNDIO
|
||||
|
||||
@@ -120,4 +120,4 @@ void AudioAlsaSetupWidget::onCurrentIndexChanged(int index)
|
||||
|
||||
} // namespace lmms::gui
|
||||
|
||||
#endif
|
||||
#endif // LMMS_HAVE_ALSA
|
||||
|
||||
@@ -105,7 +105,7 @@ bool MainApplication::nativeEventFilter(const QByteArray& eventType,
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#endif // LMMS_BUILD_WIN32
|
||||
|
||||
|
||||
} // namespace lmms::gui
|
||||
|
||||
@@ -624,4 +624,4 @@ void MixerView::updateFaders()
|
||||
}
|
||||
|
||||
|
||||
} // namesapce lmms::gui
|
||||
} // namespace lmms::gui
|
||||
|
||||
@@ -211,7 +211,7 @@ int PianoView::getKeyFromKeyEvent( QKeyEvent * _ke )
|
||||
case 13: return 30; // =
|
||||
case 27: return 31; // ]
|
||||
}
|
||||
#endif
|
||||
#endif // LMMS_BUILD_WIN32
|
||||
#if defined(LMMS_BUILD_LINUX) || defined(LMMS_BUILD_OPENBSD) || defined(LMMS_BUILD_FREEBSD)
|
||||
switch( k )
|
||||
{
|
||||
@@ -292,7 +292,7 @@ int PianoView::getKeyFromKeyEvent( QKeyEvent * _ke )
|
||||
case 29: return 27; // 0 = d'#
|
||||
case 35: return 28; // P = e'
|
||||
}
|
||||
#endif
|
||||
#endif // LMMS_BUILD_APPLE
|
||||
|
||||
return -100;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user