summaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2024-12-16 13:38:09 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2024-12-19 16:17:46 +0100
commit827f05a53cb831bd54166ee812752ae3cce2b69b (patch)
treed6c68f39ce0e06384bf1a0e86c847ce1ff2ee9e4 /.clang-tidy
parent8fb0006e710e465c9778f0ad9c84e8ad74042960 (diff)
downloadjustbuild-827f05a53cb831bd54166ee812752ae3cce2b69b.tar.gz
Fix struct member initialization
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy5
1 files changed, 4 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 4c945a05..a8040be0 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -35,6 +35,9 @@
# readability-identifier-length: We would like to enable this check, but it
# would require significant refactoring effort.
+# readability-redundant-member-init: Those are not redundant for structs, but
+# clang-tidy keeps reporting this as an error.
+
FormatStyle: Google
Checks: >-
*,-abseil-*,-altera-*,-android-*,-boost-*,-cert-*,-darwin-*,-fuchsia-*,-linuxkernel-*,-llvm-*,-llvmlibc-*,-mpi-*,-objc-*,-zircon-*,
@@ -46,7 +49,7 @@ Checks: >-
-misc-const-correctness,-misc-include-cleaner,-misc-use-anonymous-namespace,-misc-no-recursion,
-modernize-return-braced-init-list,
-performance-avoid-endl,
- -readability-function-cognitive-complexity,-readability-identifier-length
+ -readability-function-cognitive-complexity,-readability-identifier-length,-readability-redundant-member-init
WarningsAsErrors: '*'
CheckOptions:
- { key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic, value: '1' }