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