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 SortIncludes: true
IncludeBlocks: Regroup IncludeBlocks: Regroup
StatementAttributeLikeMacros: [emit] StatementAttributeLikeMacros: [emit]
# requires clang-format 16
# RemoveSemicolon: true
--- ---
Language: Proto Language: Proto
AllowShortFunctionsOnASingleLine: None AllowShortFunctionsOnASingleLine: None

View file

@ -52,7 +52,9 @@ private:
enum Attr a; enum Attr a;
public: 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 Type type() const
{ {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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