clang-tidy: Add performance checks
The checks are valuable for improving the runtime efficiency and
resource utilization of your programs.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: If3750c67d40ce482e3f68bad384395b166ed07c9
diff --git a/.clang-tidy b/.clang-tidy
index 5cb5e43..22c21b1 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -210,7 +210,19 @@
misc-throw-by-value-catch-by-reference,
misc-unconventional-assign-operator,
misc-uniqueptr-reset-release,
-misc-unused-using-decls'
+misc-unused-using-decls,
+performance-for-range-copy,
+performance-implicit-conversion-in-loop,
+performance-inefficient-algorithm,
+performance-inefficient-string-concatenation,
+performance-move-const-arg,
+performance-move-constructor-init,
+performance-no-automatic-move,
+performance-no-int-to-ptr,
+performance-noexcept-move-constructor,
+performance-trivially-destructible,
+performance-type-promotion-in-math-fn,
+performance-unnecessary-copy-initialization'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'