Skip to content

Commit

Permalink
tidy: Don't run the "enum size" check all the time.
Browse files Browse the repository at this point in the history
There are a couple of Qt macros whose definition creates an enum of
type "int" containing a single value.  The clang-tidy "enum size"
check complains about each use of these macros.  The macros used by
MythTV are Q_DECLARE_METATYPE, QStringLiteral, and QByteArrayLiteral.
  • Loading branch information
linuxdude42 committed Jul 30, 2024
1 parent da6054d commit 8dc2e55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ Checks: '-*,
# As of 2023-09-19, there are 443 unique warnings. ,
-performance-avoid-endl,
# New in clang-18. As of 2024-03-18, there are 349 unique
# warnings. These warnings are all in Qt macros like
# Q_DECLARE_METATYPE or QStringLiteral. ,
-performance-enum-size,
# The Q_DECLARE_METATYPE macro triggers a warning from this
# new clang12 checker. As of 2022-12-19, the vast majority
# of these (236 of 292) warnings are associated with this
Expand Down

0 comments on commit 8dc2e55

Please sign in to comment.