aboutgitcodebugslistschat
path: root/.clang-tidy
diff options
context:
space:
mode:
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy14
1 files changed, 13 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index ec570f2..6aceb44 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -9,8 +9,11 @@ Checks:
- "-cppcoreguidelines-init-variables"
# Dubious value over the compiler's built-in warning. Would
- # increase verbosity.
+ # increase verbosity. Same for its broader variant, added in
+ # clang-tidy 23, also known as cert-exp45-c
- "-bugprone-assignment-in-if-condition"
+ - "-bugprone-assignment-in-selection-statement"
+ - "-cert-exp45-c"
# Debatable whether these improve readability, right now it would look
# like a mess
@@ -99,6 +102,15 @@ Checks:
# be treated directly as a bool.
- "-readability-implicit-bool-conversion"
+ # Wants trailing commas in multi-line initialiser lists, and none in
+ # single-line ones. Not part of our coding style, and enforcing it
+ # would mean churn all over the place for no practical benefit.
+ - "-readability-trailing-comma"
+
+ # Merging nested if statements would often hurt readability, e.g.
+ # where the inner condition has side effects or a separate comment.
+ - "-readability-redundant-nested-if"
+
WarningsAsErrors: "*"
HeaderFileExtensions:
- h