diff --git a/.clang-tidy b/.clang-tidy index 931f93820e..98b28a7644 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,7 +1,5 @@ FormatStyle: google Checks: "-*, - performance-*, - portability-*, bugprone-*, -bugprone-easily-swappable-parameters, @@ -10,7 +8,12 @@ Checks: "-*, clang-analyzer-*, -clang-analyzer-optin.core.EnumCastOutOfRange, - + + performance-*, + -performance-enum-size, + + portability-*, + readability-*, -readability-identifier-length, -readability-uppercase-literal-suffix, diff --git a/source/core/inc/tactile/core/debug/generic_error.hpp b/source/core/inc/tactile/core/debug/generic_error.hpp index 1bdb1bf88d..896e57d110 100644 --- a/source/core/inc/tactile/core/debug/generic_error.hpp +++ b/source/core/inc/tactile/core/debug/generic_error.hpp @@ -10,7 +10,7 @@ namespace tactile { /** Provides error codes for generic high-level errors. */ enum class GenericError : int -{ // NOLINT(*-enum-size) +{ kUnknown, kUnsupported, kOutOfMemory, diff --git a/source/core/inc/tactile/core/io/compress/compression_error.hpp b/source/core/inc/tactile/core/io/compress/compression_error.hpp index 130d0b0724..c237a35464 100644 --- a/source/core/inc/tactile/core/io/compress/compression_error.hpp +++ b/source/core/inc/tactile/core/io/compress/compression_error.hpp @@ -12,7 +12,7 @@ namespace tactile { /** * Provides error codes for errors related to compression providers. */ -enum class CompressionError : int // NOLINT(*-enum-size) +enum class CompressionError : int { kBadInit, kBadCleanup, diff --git a/source/core/inc/tactile/core/ui/i18n/string_id.hpp b/source/core/inc/tactile/core/ui/i18n/string_id.hpp index 778ed12360..3f9507e883 100644 --- a/source/core/inc/tactile/core/ui/i18n/string_id.hpp +++ b/source/core/inc/tactile/core/ui/i18n/string_id.hpp @@ -17,7 +17,7 @@ namespace tactile::ui { * possible to minimize memory usage. Basically, don't provide explicit * enumerator values. */ -enum class StringID : usize // NOLINT(*-enum-size) +enum class StringID : usize { // Miscellaneous. kOK, diff --git a/source/opengl/inc/tactile/opengl/opengl_error.hpp b/source/opengl/inc/tactile/opengl/opengl_error.hpp index 45d901076e..269892e8cf 100644 --- a/source/opengl/inc/tactile/opengl/opengl_error.hpp +++ b/source/opengl/inc/tactile/opengl/opengl_error.hpp @@ -13,7 +13,7 @@ namespace tactile { /** * Provides error codes for OpenGL errors. */ -enum class OpenGLError : int // NOLINT(*-enum-size) +enum class OpenGLError : int { kUnknown, kInvalidParam,