clang-tidy: Add few cppcoreguidelines check
These checks cover a wide range of best practices and
recommendations aimed at improving the safety, readability,
maintainability, and performance of our C++ codebase according
to the C++ Core Guidelines.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I605971bfa0c8126e9b5f7bfa9591e26b09f27460
diff --git a/.clang-tidy b/.clang-tidy
index 1b9855c..a6c9805 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -192,7 +192,16 @@
clang-analyzer-valist.Unterminated,
clang-analyzer-valist.ValistBase,
clang-analyzer-webkit.NoUncountedMemberChecker,
-clang-analyzer-webkit.RefCntblBaseVirtualDtor'
+clang-analyzer-webkit.RefCntblBaseVirtualDtor,
+cppcoreguidelines-avoid-goto,
+cppcoreguidelines-c-copy-assignment-signature,
+cppcoreguidelines-narrowing-conversions,
+cppcoreguidelines-no-malloc,
+cppcoreguidelines-prefer-member-initializer,
+cppcoreguidelines-pro-type-cstyle-cast,
+cppcoreguidelines-pro-type-static-cast-downcast,
+cppcoreguidelines-pro-type-union-access,
+cppcoreguidelines-slicing'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'