From ffe9bbc984da2f0c48dde2883718bfe7db38f543 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Mon, 1 Mar 2021 19:46:46 -0400 Subject: [PATCH] Tweak clang-tidy rules Turn off modernize-use-trailing-return because it's *really* annoying (and clangd picks it up when using it for editing). Turn off modernize-use-nodiscard as well because it's already annoying. Add bugprone-* as well because it includes a lot of useful checks. --- .clang-tidy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 234f1e1d9..e93e316f9 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,2 +1,2 @@ HeaderFilterRegex: 'llarp/.*' -Checks: 'readability-else-after-return,clang-analyzer-core-*,modernize-*' +Checks: 'readability-else-after-return,clang-analyzer-core-*,modernize-*,-modernize-use-trailing-return-type,-modernize-use-nodiscard,bugprone-*'