From 9bc9dc0ab999850adfb97f7a5d4ceff73951430e Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Fri, 7 Jan 2022 09:43:17 -0800 Subject: 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 Change-Id: I6dca1c822de38931eb9fa252db99fb57401b5a46 --- .clang-tidy | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.clang-tidy') 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, -- cgit v1.2.3