clang-tidy: Add performance checks
The checks are valuable for improving the runtime efficiency and
resource utilization of your programs.
Change-Id: I4b9f8272652fe1f2ef453f3b66196a4ec9c104af
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/.clang-tidy b/.clang-tidy
index 3470782..5652055 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -158,7 +158,17 @@
modernize-use-equals-delete,
modernize-use-noexcept,
modernize-use-transparent-functors,
-modernize-use-uncaught-exceptions'
+modernize-use-uncaught-exceptions,
+performance-faster-string-find,
+performance-inefficient-algorithm,
+performance-inefficient-string-concatenation,
+performance-inefficient-vector-operation,
+performance-move-constructor-init,
+performance-noexcept-destructor,
+performance-noexcept-move-constructor,
+performance-noexcept-swap,
+performance-trivially-destructible,
+performance-type-promotion-in-math-fn'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'