Skip to content

Commit

Permalink
Disable performance-enum-size
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Jul 5, 2024
1 parent d2c178d commit f990fce
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FormatStyle: google
Checks: "-*,
performance-*,
portability-*,
bugprone-*,
-bugprone-easily-swappable-parameters,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion source/core/inc/tactile/core/debug/generic_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace tactile {

/** Provides error codes for generic high-level errors. */
enum class GenericError : int
{ // NOLINT(*-enum-size)
{
kUnknown,
kUnsupported,
kOutOfMemory,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion source/core/inc/tactile/core/ui/i18n/string_id.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion source/opengl/inc/tactile/opengl/opengl_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f990fce

Please sign in to comment.