From ff188d68aae90dc9e730873520237d7750029dc0 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Tue, 31 Mar 2020 00:47:10 +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 | 2 +- src/myx/filesystem/current_executable.cpp | 2 +- src/myx/filesystem/paths.cpp | 2 +- src/myx/math/almost_equal_ulps.cpp | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 96ea5f9..5ee88a4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -122,7 +122,7 @@ CheckOptions: - key: readability-identifier-naming.GlobalConstantPointerSuffix value: '' - key: readability-identifier-naming.GlobalFunctionCase - value: camelBack + value: lower_case - key: readability-identifier-naming.GlobalFunctionPrefix value: '' - key: readability-identifier-naming.GlobalFunctionSuffix diff --git a/src/myx/filesystem/current_executable.cpp b/src/myx/filesystem/current_executable.cpp index 9a2bb8f..8110b36 100644 --- a/src/myx/filesystem/current_executable.cpp +++ b/src/myx/filesystem/current_executable.cpp @@ -11,7 +11,7 @@ namespace myx { namespace filesystem { CurrentExecutable::CurrentExecutable() : - m_procFilePath( "/proc/self/exe" ) + m_procFilePath( QStringLiteral( "/proc/self/exe" ) ) { auto canonicalFilePath = m_procFilePath.canonicalFilePath(); auto canonicalPath = m_procFilePath.canonicalPath(); diff --git a/src/myx/filesystem/paths.cpp b/src/myx/filesystem/paths.cpp index 9542781..b73af77 100644 --- a/src/myx/filesystem/paths.cpp +++ b/src/myx/filesystem/paths.cpp @@ -80,7 +80,7 @@ Paths::Paths( QString configFileExtension ) : if ( m_tempDirectory.absolutePath().isEmpty() || ( m_tempDirectory.path() == "." ) ) { - m_tempDirectory = _PATH_TMP; + m_tempDirectory = QStringLiteral( _PATH_TMP ); } } diff --git a/src/myx/math/almost_equal_ulps.cpp b/src/myx/math/almost_equal_ulps.cpp index 4c0e8a8..e62f76a 100644 --- a/src/myx/math/almost_equal_ulps.cpp +++ b/src/myx/math/almost_equal_ulps.cpp @@ -22,7 +22,7 @@ bool almost_equal_ulps( const float a, const float b, #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wfloat-equal" #endif - if ( a == b ) + if ( a == b ) // -V550 #ifdef __GNUC__ #pragma GCC diagnostic pop #endif @@ -58,7 +58,7 @@ bool almost_equal_ulps( const double a, const double b, #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wfloat-equal" #endif - if ( a == b ) + if ( a == b ) // -V550 #ifdef __GNUC__ #pragma GCC diagnostic pop #endif