From 827f05a53cb831bd54166ee812752ae3cce2b69b Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 16 Dec 2024 13:38:09 +0100 Subject: Fix struct member initialization --- .clang-tidy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.clang-tidy') 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' } -- cgit v1.2.3