clang-tidy: Add some modernize checks
This commit adds some modernize tidy checks to enable usage of
modern way of using c++ styles.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I9b2dd131e409b52c409ab7491781cb03755cc0ec
diff --git a/.clang-tidy b/.clang-tidy
index 8e20460..e6cb2b4 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -196,7 +196,32 @@
clang-analyzer-valist.Unterminated,
clang-analyzer-valist.ValistBase,
clang-analyzer-webkit.NoUncountedMemberChecker,
-clang-analyzer-webkit.RefCntblBaseVirtualDtor'
+clang-analyzer-webkit.RefCntblBaseVirtualDtor,
+misc-misplaced-const,
+misc-redundant-expression,
+misc-static-assert,
+misc-throw-by-value-catch-by-reference,
+misc-unconventional-assign-operator,
+misc-uniqueptr-reset-release,
+misc-unused-using-decls,
+modernize-deprecated-headers,
+modernize-deprecated-ios-base-aliases,
+modernize-loop-convert,
+modernize-make-shared,
+modernize-make-unique,
+modernize-raw-string-literal,
+modernize-replace-auto-ptr,
+modernize-replace-random-shuffle,
+modernize-return-braced-init-list,
+modernize-shrink-to-fit,
+modernize-unary-static-assert,
+modernize-use-bool-literals,
+modernize-use-default-member-init,
+modernize-use-equals-delete,
+modernize-use-noexcept,
+modernize-use-transparent-functors,
+modernize-use-uncaught-exceptions,
+modernize-use-using'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*.hpp'