Skip to content

Commit

Permalink
clang-tidy: Add cppcoreguidelines-pro-type-member-init
Browse files Browse the repository at this point in the history
Avoid unitialized member variables
  • Loading branch information
ChristianTackeGSI committed Mar 24, 2023
1 parent 2584717 commit 528e00c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
Expand Down

0 comments on commit 528e00c

Please sign in to comment.