diff options
author | Ed Tanous <edtanous@google.com> | 2022-01-07 20:43:17 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-01-12 22:14:22 +0300 |
commit | 9bc9dc0ab999850adfb97f7a5d4ceff73951430e (patch) | |
tree | c2c15230ab53c5cbc4dbf482d7febbd0c7152135 /.clang-tidy | |
parent | adf3d0e54da2836d9ff74980a3c82a51f6f03297 (diff) | |
download | bmcweb-9bc9dc0ab999850adfb97f7a5d4ceff73951430e.tar.xz |
Enable and enforce cpp core guidelines
While in theory we enforce cpp core guidelines in code review, clearly,
we're missing some things. This commit enables all the automated checks
that we can pass reasonably at the moment.
Tested: Code compiles
Tested: Ran redfish service validator on the result of the series.
No new failures.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I6dca1c822de38931eb9fa252db99fb57401b5a46
Diffstat (limited to '.clang-tidy')
-rw-r--r-- | .clang-tidy | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy index 7f36b77c1f..eedc6d8ca4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -201,10 +201,16 @@ clang-analyzer-valist.Unterminated, clang-analyzer-valist.ValistBase, clang-analyzer-webkit.NoUncountedMemberChecker, clang-analyzer-webkit.RefCntblBaseVirtualDtor, +cppcoreguidelines-avoid-c-arrays, +cppcoreguidelines-avoid-goto, +cppcoreguidelines-c-copy-assignment-signature, +cppcoreguidelines-explicit-virtual-functions, cppcoreguidelines-init-variables, cppcoreguidelines-interfaces-global-init, cppcoreguidelines-macro-usage, +cppcoreguidelines-narrowing-conversions, cppcoreguidelines-no-malloc, +cppcoreguidelines-prefer-member-initializer, cppcoreguidelines-pro-bounds-array-to-pointer-decay, cppcoreguidelines-pro-bounds-pointer-arithmetic, cppcoreguidelines-pro-type-const-cast, @@ -212,7 +218,9 @@ cppcoreguidelines-pro-type-cstyle-cast, cppcoreguidelines-pro-type-member-init, cppcoreguidelines-pro-type-reinterpret-cast, cppcoreguidelines-pro-type-static-cast-downcast, +cppcoreguidelines-pro-type-union-access, cppcoreguidelines-pro-type-vararg, +cppcoreguidelines-slicing, cppcoreguidelines-special-member-functions, misc-misplaced-const, #misc-no-recursion, |