clang-tidy: Enable readability checks on repo
The readability-* checks in Clang-Tidy focus on improving code
readability by enforcing guidelines and suggesting improvements
that can enhance the clarity and maintainability of C++ code.
Tested: Build and unit tests passed successfully.
Change-Id: Iad54f281139883d9d535a6951571e4fdc978fd8b
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/.clang-tidy b/.clang-tidy
index 11f7149..0a5dd92 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -283,6 +283,41 @@
performance-trivially-destructible,
performance-type-promotion-in-math-fn,
performance-unnecessary-copy-initialization,
+readability-avoid-nested-conditional-operator,
+readability-avoid-return-with-void-value,
+readability-avoid-unconditional-preprocessor-if,
+readability-const-return-type,
+readability-container-contains,
+readability-container-size-empty,
+readability-delete-null-pointer,
+readability-duplicate-include,
+readability-deleted-default,
+readability-function-size,
+readability-identifier-naming,
+readability-inconsistent-declaration-parameter-name,
+readability-isolate-declaration,
+readability-misleading-indentation,
+readability-misplaced-array-index,
+readability-named-parameter,
+readability-operators-representation,
+readability-non-const-parameter,
+readability-redundant-access-specifiers,
+readability-redundant-casting,
+readability-redundant-control-flow,
+readability-redundant-declaration,
+readability-redundant-function-ptr-dereference,
+readability-redundant-member-init,
+readability-redundant-preprocessor,
+readability-redundant-smartptr-get,
+readability-redundant-string-cstr,
+readability-redundant-string-init,
+readability-reference-to-constructed-temporary,
+readability-simplify-subscript-expr,
+readability-static-accessed-through-instance,
+readability-static-definition-in-anonymous-namespace,
+readability-string-compare,
+readability-suspicious-call-argument,
+readability-uniqueptr-delete-release,
readability-identifier-naming'
WarningsAsErrors: '*'