aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-08-04 20:22:04 -0700
committerJade Lovelace <lix@jade.fyi>2024-08-08 14:53:17 -0700
commitc1291fd102ed88ba8e1df63e5b2ae6fa94c73188 (patch)
treeec1f364bb3f9dc649ecf90b457fc310ca8287da5
parent4ed8461cacced97717bf9a7525e12ba69fe168c0 (diff)
clang-tidy: enforce the new rules
Fixes: https://git.lix.systems/lix-project/lix/issues/241 Change-Id: Idd096dc9ca92ffd4be8c22d293ba5bf2ec48a85f
-rw-r--r--.clang-tidy7
1 files changed, 7 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 0cc1f2520..ccfdf9e7d 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -16,6 +16,13 @@ Checks:
- -bugprone-unchecked-optional-access
# many warnings, seems like a questionable lint
- -bugprone-branch-clone
+ # all thrown exceptions must derive from std::exception
+ - hicpp-exception-baseclass
+ # capturing async lambdas are dangerous
+ - cppcoreguidelines-avoid-capturing-lambda-coroutines
+ # crimes must be appropriately declared as crimes
+ - cppcoreguidelines-pro-type-cstyle-cast
+
CheckOptions:
bugprone-reserved-identifier.AllowedIdentifiers: '__asan_default_options'