From 528e00cfc5c4910b6277c9b09b710e787c513a7f Mon Sep 17 00:00:00 2001 From: Christian Tacke <58549698+ChristianTackeGSI@users.noreply.github.com> Date: Wed, 16 Nov 2022 13:27:16 +0100 Subject: [PATCH] clang-tidy: Add cppcoreguidelines-pro-type-member-init Avoid unitialized member variables --- .clang-tidy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index ffd9a61bda..4f1b616e90 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -4,8 +4,11 @@ HeaderFilterRegex: '.*' # ROOT throws lots of them in their headers # Bugprone: # These could cause actual bugs. -# enable cppcoreguidelines-virtual-class-destructor +# C++ Core Guidelines +# * cppcoreguidelines-virtual-class-destructor # Avoid undefined behaviour +# * cppcoreguidelines-pro-type-member-init +# Avoid unitialized member variables # enable google-build-using-namespace # "using namespace" imports a changing amount of symbols, avoid it # improve readability: @@ -19,6 +22,7 @@ Checks: >- -bugprone-unhandled-self-assignment, -bugprone-reserved-identifier, cppcoreguidelines-pro-type-cstyle-cast, + cppcoreguidelines-pro-type-member-init, cppcoreguidelines-virtual-class-destructor, modernize-make-unique, google-build-using-namespace,