Skip to content

Commit

Permalink
Disable modernize-use-nodiscard tidy rule
Browse files Browse the repository at this point in the history
This rule is too aggressive and the [[nodiscard]] attribute is
situationally useful.
  • Loading branch information
friendlyanon committed Sep 23, 2022
1 parent bb0e672 commit 7a4c594
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake-init/templates/common/.clang-tidy
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
# Enable ALL the things! Except not really
# misc-non-private-member-variables-in-classes: the options don't do anything
# modernize-use-nodiscard: too aggressive, attribute is situationally useful
Checks: "*,\
-google-readability-todo,\
-altera-*,\
Expand All @@ -9,6 +10,7 @@ Checks: "*,\
-llvm-header-guard,\
-llvm-include-order,\
-llvmlibc-*,\
-modernize-use-nodiscard,\
-misc-non-private-member-variables-in-classes"
WarningsAsErrors: ''
CheckOptions:
Expand Down

0 comments on commit 7a4c594

Please sign in to comment.