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: I04d39729fb764044f7910de0b243974debf5f775
diff --git a/.clang-tidy b/.clang-tidy
index 116e43b..34327df 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -226,7 +226,18 @@
modernize-use-override,
modernize-use-transparent-functors,
modernize-use-uncaught-exceptions,
-modernize-use-using'
+modernize-use-using,
+performance-implicit-conversion-in-loop,
+performance-inefficient-algorithm,
+performance-inefficient-string-concatenation,
+performance-inefficient-vector-operation,
+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: '.*.hpp'