From 78c923a3db0d432551970cd2dad43025c71d314f Mon Sep 17 00:00:00 2001 From: silverqx Date: Sun, 8 Sep 2024 20:34:37 +0200 Subject: [PATCH] suppressed Clang Tidy warnings --- .../unit/orm/tiny/mysql_tinybuilder/tst_mysql_tinybuilder.cpp | 2 +- tests/models/models/role.hpp | 4 ++-- tests/models/models/torrent.hpp | 2 +- tests/models/models/torrent_returnrelation.hpp | 2 +- tests/models/models/torrent_with_qdatetime.hpp | 2 +- tests/models/models/torrenteager.hpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/auto/unit/orm/tiny/mysql_tinybuilder/tst_mysql_tinybuilder.cpp b/tests/auto/unit/orm/tiny/mysql_tinybuilder/tst_mysql_tinybuilder.cpp index eb25e1b51..38de5df8d 100644 --- a/tests/auto/unit/orm/tiny/mysql_tinybuilder/tst_mysql_tinybuilder.cpp +++ b/tests/auto/unit/orm/tiny/mysql_tinybuilder/tst_mysql_tinybuilder.cpp @@ -270,7 +270,7 @@ namespace public: /*! The attributes that should be mutated to dates. */ - inline static QStringList u_dates {AddedOn}; // clazy:exclude=non-pod-global-static + inline static QStringList u_dates {AddedOn}; // NOLINT(cppcoreguidelines-interfaces-global-init) clazy:exclude=non-pod-global-static }; } // namespace diff --git a/tests/models/models/role.hpp b/tests/models/models/role.hpp index 6b326c470..e5a5cf7b1 100644 --- a/tests/models/models/role.hpp +++ b/tests/models/models/role.hpp @@ -52,10 +52,10 @@ class Role final : public Model / bool u_timestamps = false; /*! The storage format of the model's date columns. */ - inline static QString u_dateFormat {UnixTimestamp}; + inline static QString u_dateFormat {UnixTimestamp}; // NOLINT(cppcoreguidelines-interfaces-global-init) /*! The attributes that should be mutated to dates. */ - inline static const QStringList u_dates {AddedOn}; + inline static const QStringList u_dates {AddedOn}; // NOLINT(cppcoreguidelines-interfaces-global-init) }; } // namespace Models diff --git a/tests/models/models/torrent.hpp b/tests/models/models/torrent.hpp index 2084d135c..32074c1e9 100644 --- a/tests/models/models/torrent.hpp +++ b/tests/models/models/torrent.hpp @@ -246,7 +246,7 @@ class Torrent final : // NOLINT(bugprone-exception-escape, misc-no-recursion) // inline static QString u_timeFormat {u"HH:mm:ss"_s}; /*! The attributes that should be mutated to dates. */ - inline static const QStringList u_dates {AddedOn, u"added_on_alt"_s}; + inline static const QStringList u_dates {AddedOn, u"added_on_alt"_s}; // NOLINT(cppcoreguidelines-interfaces-global-init) /*! All of the relationships to be touched. */ // QStringList u_touches {u"tags"_s}; diff --git a/tests/models/models/torrent_returnrelation.hpp b/tests/models/models/torrent_returnrelation.hpp index 6907e7971..ac738f5e9 100644 --- a/tests/models/models/torrent_returnrelation.hpp +++ b/tests/models/models/torrent_returnrelation.hpp @@ -95,7 +95,7 @@ class Torrent_ReturnRelation final : // NOLINT(bugprone-exception-escape, misc-n }; /*! The attributes that should be mutated to dates. */ - inline static const QStringList u_dates {AddedOn}; + inline static const QStringList u_dates {AddedOn}; // NOLINT(cppcoreguidelines-interfaces-global-init) }; } // namespace Models diff --git a/tests/models/models/torrent_with_qdatetime.hpp b/tests/models/models/torrent_with_qdatetime.hpp index 3e391ccd6..1e222297f 100644 --- a/tests/models/models/torrent_with_qdatetime.hpp +++ b/tests/models/models/torrent_with_qdatetime.hpp @@ -40,7 +40,7 @@ class Torrent_With_QDateTime final : public Model // NOL }; /*! The attributes that should be mutated to dates. */ - inline static const QStringList u_dates {AddedOn}; + inline static const QStringList u_dates {AddedOn}; // NOLINT(cppcoreguidelines-interfaces-global-init) }; } // namespace Models diff --git a/tests/models/models/torrenteager.hpp b/tests/models/models/torrenteager.hpp index a10521c83..4ee1efe15 100644 --- a/tests/models/models/torrenteager.hpp +++ b/tests/models/models/torrenteager.hpp @@ -74,7 +74,7 @@ class TorrentEager final : public Model