clang-tidy: Enable readability-avoid-const-params-in-decls check
Checks whether a function declaration has parameters that are top
level const.
const values in declarations do not affect the signature of a
function, so they should not be put there.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Ic4c2fc0f4ce0ce03fd6621d1f8c928890cf5da88
diff --git a/.clang-tidy b/.clang-tidy
index ef9193b..775d2d3 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -253,6 +253,7 @@
performance-trivially-destructible,
performance-type-promotion-in-math-fn,
performance-unnecessary-copy-initialization,
+readability-avoid-const-params-in-decls,
readability-const-return-type,
readability-convert-member-functions-to-static,
readability-delete-null-pointer,