From 9eb808c1a84a76e92b0e01fa95d3f160f38d7c3f Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Tue, 25 Jan 2022 10:19:23 -0800 Subject: Enable readability-avoid-const-params-in-decls This check involves explicitly declaring variables const when they're declared auto, which helps in readability, and makes it more clear that the variables are const. Signed-off-by: Ed Tanous Change-Id: I71198ea03850384a389a56ad26f2c4a48c75b148 --- .clang-tidy | 1 + 1 file changed, 1 insertion(+) (limited to '.clang-tidy') diff --git a/.clang-tidy b/.clang-tidy index 0a7f665751..953c78e780 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -267,6 +267,7 @@ performance-trivially-destructible, performance-type-promotion-in-math-fn, performance-unnecessary-copy-initialization, performance-unnecessary-value-param, +readability-avoid-const-params-in-decls, readability-braces-around-statements, readability-const-return-type, readability-container-size-empty, -- cgit v1.2.3