remove useless semicolons

removes the semicolons after empty function definitions
these semicolons are optional, they don't do anything
this will have functions be consistently formatted
if we want to keep the option to have these on the same line like they
were before we should use the option AllowShortFunctionsOnASingleLine: None
This commit is contained in:
ebbit1q 2025-10-10 02:08:57 +02:00
parent c75f5386b5
commit 9b65422d5a
8 changed files with 26 additions and 8 deletions

View file

@ -26,6 +26,8 @@ PointerAlignment: Right
SortIncludes: true
IncludeBlocks: Regroup
StatementAttributeLikeMacros: [emit]
# requires clang-format 16
# RemoveSemicolon: true
---
Language: Proto
AllowShortFunctionsOnASingleLine: None

View file

@ -52,7 +52,9 @@ private:
enum Attr a;
public:
CardFilter(QString &term, Type type, Attr attr) : trm(term), t(type), a(attr) {};
CardFilter(QString &term, Type type, Attr attr) : trm(term), t(type), a(attr)
{
}
Type type() const
{

View file

@ -27,7 +27,9 @@ class TabDeckStorageVisual final : public Tab
Q_OBJECT
public:
explicit TabDeckStorageVisual(TabSupervisor *_tabSupervisor);
void retranslateUi() override {};
void retranslateUi() override
{
}
[[nodiscard]] QString getTabText() const override
{
return tr("Visual Deck Storage");

View file

@ -146,7 +146,9 @@ public:
const QString & /* logMessage */,
LogMessage_TargetType /* targetType */,
const int /* targetId */,
const QString & /* targetName */) {};
const QString & /* targetName */)
{
}
virtual bool checkUserIsBanned(Server_ProtocolHandler * /* session */,
QString & /* banReason */,
int & /* banSecondsRemaining */)

View file

@ -182,7 +182,9 @@ class LoadSpoilersPage : public SimpleDownloadFilePage
{
Q_OBJECT
public:
explicit LoadSpoilersPage(QWidget * = nullptr) {};
explicit LoadSpoilersPage(QWidget * = nullptr)
{
}
void retranslateUi() override;
protected:
@ -197,7 +199,9 @@ class LoadTokensPage : public SimpleDownloadFilePage
{
Q_OBJECT
public:
explicit LoadTokensPage(QWidget * = nullptr) {};
explicit LoadTokensPage(QWidget * = nullptr)
{
}
void retranslateUi() override;
protected:

View file

@ -13,7 +13,9 @@ class OracleWizardPage : public QWizardPage
{
Q_OBJECT
public:
explicit OracleWizardPage(QWidget *parent = nullptr) : QWizardPage(parent) {};
explicit OracleWizardPage(QWidget *parent = nullptr) : QWizardPage(parent)
{
}
virtual void retranslateUi() = 0;
signals:

View file

@ -146,7 +146,9 @@ public:
AbstractServerSocketInterface(Servatrice *_server,
Servatrice_DatabaseInterface *_databaseInterface,
QObject *parent = 0);
~AbstractServerSocketInterface() {};
~AbstractServerSocketInterface()
{
}
bool initSession();
virtual QHostAddress getPeerAddress() const = 0;

View file

@ -10,7 +10,9 @@ class SignalHandler : public QObject
Q_OBJECT
public:
SignalHandler(QObject *parent = 0);
~SignalHandler() {};
~SignalHandler()
{
}
static void sigHupHandler(int /* sig */);
static void sigSegvHandler(int sig);