From 95a197a8734008032cc792bbea994aa3ba5c3134 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Tue, 21 Apr 2020 10:41:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .clang-tidy | 1 + src/myx/filesystem/paths.hpp | 4 ++-- src/myx/filesystem/paths_mt.hpp | 4 ++-- src/myx/math/almost_equal_relative.hpp | 4 ++-- src/myx/math/almost_equal_relative_and_abs.hpp | 4 ++-- src/myx/qt/translators.hpp | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 2360d4c..7b14b0a 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -16,6 +16,7 @@ portability-*, -llvm-header-guard, -readability-magic-numbers, -readability-else-after-return, +-readability-identifier-naming, -modernize-use-trailing-return-type, -modernize-avoid-c-arrays, -performance-no-automatic-move, diff --git a/src/myx/filesystem/paths.hpp b/src/myx/filesystem/paths.hpp index 22d564d..255890e 100644 --- a/src/myx/filesystem/paths.hpp +++ b/src/myx/filesystem/paths.hpp @@ -88,8 +88,8 @@ class Paths protected: Paths(); ~Paths() = default; - Paths( const Paths& ) = delete; - Paths& operator=( const Paths& ) = delete; + Paths( const Paths& ) = delete; // NOLINT + Paths& operator=( const Paths& ) = delete; // NOLINT public: /** diff --git a/src/myx/filesystem/paths_mt.hpp b/src/myx/filesystem/paths_mt.hpp index 084fc85..4f03674 100644 --- a/src/myx/filesystem/paths_mt.hpp +++ b/src/myx/filesystem/paths_mt.hpp @@ -29,8 +29,8 @@ class PathsMT : public Paths { PathsMT(); ~PathsMT() = default; - PathsMT( const PathsMT& ) = delete; - PathsMT& operator=( const PathsMT& ) = delete; + PathsMT( const PathsMT& ) = delete; // NOLINT + PathsMT& operator=( const PathsMT& ) = delete; // NOLINT static std::atomic< PathsMT* > mInstance; static std::mutex mMutex; diff --git a/src/myx/math/almost_equal_relative.hpp b/src/myx/math/almost_equal_relative.hpp index c328537..a294761 100644 --- a/src/myx/math/almost_equal_relative.hpp +++ b/src/myx/math/almost_equal_relative.hpp @@ -15,14 +15,14 @@ namespace math { * при которой аргументы считаются равными. */ bool almost_equal_relative( float a, float b, - const float maxRelDiff = FLT_EPSILON ); + float maxRelDiff = FLT_EPSILON ); /** * @brief Проверка на равенство двух аргументов типа double. * Параметр maxRelDiff определяет максимальную относительную допустимую разницу, * при которой аргументы считаются равными. */ bool almost_equal_relative( double a, double b, - const double maxRelDiff = DBL_EPSILON ); + double maxRelDiff = DBL_EPSILON ); } // namespace math diff --git a/src/myx/math/almost_equal_relative_and_abs.hpp b/src/myx/math/almost_equal_relative_and_abs.hpp index e883630..a4fc095 100644 --- a/src/myx/math/almost_equal_relative_and_abs.hpp +++ b/src/myx/math/almost_equal_relative_and_abs.hpp @@ -14,7 +14,7 @@ namespace math { * при которой аргументы считаются равными. */ bool almost_equal_relative_and_abs( float a, float b, - float maxAbsDiff, const float maxRelDiff = FLT_EPSILON ); + float maxAbsDiff, float maxRelDiff = FLT_EPSILON ); /** * @brief Проверка на равенство двух аргументов типа double. * Параметр maxAbsDiff определяет максимальную абсолютную допустимую разницу. @@ -22,7 +22,7 @@ bool almost_equal_relative_and_abs( float a, float b, * при которой аргументы считаются равными. */ bool almost_equal_relative_and_abs( double a, double b, - double maxAbsDiff, const double maxRelDiff = DBL_EPSILON ); + double maxAbsDiff, double maxRelDiff = DBL_EPSILON ); } // namespace math diff --git a/src/myx/qt/translators.hpp b/src/myx/qt/translators.hpp index ce9f6ed..17ac217 100644 --- a/src/myx/qt/translators.hpp +++ b/src/myx/qt/translators.hpp @@ -11,7 +11,7 @@ namespace qt { typedef QList< QTranslator* > QTranslatorsList; -void append_translators( QTranslatorsList& translators, const QString& appName ); +void append_translators( QTranslatorsList& translators, const QString& appName ); // NOLINT } // namespace qt