aboutsummaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-08-08 23:09:30 +0000
committerGerrit Code Review <gerrit@localhost>2024-08-08 23:09:30 +0000
commit9682ab4f3859ca60b0b4525452b27297e31cb751 (patch)
tree140cf7817556db65c80693f8b89a76c722b6d726 /.clang-tidy
parent757041c3e74787c755b3de826078968119f706d6 (diff)
parenta5f0954c290157875b4dfb79edcf651f55742dc2 (diff)
Merge changes I6358a393,I2d9f276b,Idd096dc9 into main
* changes: clang-tidy: write a lint for charptr_cast tree-wide: automated migration to charptr_cast clang-tidy: enforce the new rules
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy14
1 files changed, 14 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 0cc1f2520..87f6d0404 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -16,6 +16,20 @@ 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
+ - lix-*
+ # This can not yet be applied to Lix itself since we need to do source
+ # reorganization so that lix/ include paths work.
+ - -lix-fixincludes
+ # This lint is included as an example, but the lib function it replaces is
+ # already gone.
+ - -lix-hasprefixsuffix
+
CheckOptions:
bugprone-reserved-identifier.AllowedIdentifiers: '__asan_default_options'