diff options
author | Ed Tanous <edtanous@google.com> | 2022-01-07 20:30:41 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-01-12 22:00:37 +0300 |
commit | d3a9e08452986b28c8024de2b0fdb3cadbf4411b (patch) | |
tree | f9dfbc45cfdf3c58a9e03e5c8d98cc199c417243 /.clang-tidy | |
parent | ca45aa3c416e55027b8d17078bac6493e81d564f (diff) | |
download | bmcweb-d3a9e08452986b28c8024de2b0fdb3cadbf4411b.tar.xz |
Enforce variable init
There were a few places we weren't initting our variables per cpp core
guidelines. Fix all of them, and enable checks for this.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Iba09924beb9fb26f597ff94d1cecbd6d6b1af912
Diffstat (limited to '.clang-tidy')
-rw-r--r-- | .clang-tidy | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy index eae3c722cb..311617baa6 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -202,7 +202,9 @@ clang-analyzer-valist.ValistBase, clang-analyzer-webkit.NoUncountedMemberChecker, clang-analyzer-webkit.RefCntblBaseVirtualDtor, cppcoreguidelines-init-variables, +cppcoreguidelines-interfaces-global-init, cppcoreguidelines-pro-bounds-pointer-arithmetic, +cppcoreguidelines-pro-type-member-init, cppcoreguidelines-pro-type-reinterpret-cast, cppcoreguidelines-special-member-functions, misc-misplaced-const, |