Skip to content

Commit

Permalink
Disable irrelevant clang-tidy checks
Browse files Browse the repository at this point in the history
Previously, the clang-tidy configuration enables all checks and then
disables a few undesired ones. This enables a lot of checks that are
specific to certain kinds of code and aren't relevant for this project.
For example, I noticed several errors from checks specific to LLVM libc.
It makes more sense to enable only the checks that we want instead of
enabling everything and then disabling the checks that we don't want.
  • Loading branch information
bkrl authored and kontura committed Nov 23, 2022
1 parent 9b7004c commit 325866c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Checks: '*,readability-*,-google-runtime-references,-modernize-use-trailing-return-type,-hicpp-signed-bitwise,-fuchsia*,-modernize-use-nodiscard'
Checks: 'bugprone-*,cert-*,concurrency-*,cppcoreguidelines-*,misc-*,modernize-*,-modernize-use-trailing-return-type,-modernize-use-nodiscard,performance-*,portability-*,readability-*'
WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
Expand Down

0 comments on commit 325866c

Please sign in to comment.