From 55769eb50c02a6e630f9acb18c09306e97b64443 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 15 Mar 2024 11:50:11 -0400 Subject: [PATCH] .clang-tidy: add anonymous namespace-related checks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I96fc6cf56d5c2d47addbc944ceae3992162a0958 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- .clang-tidy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 20682205a..5b6f3705b 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -68,6 +68,7 @@ Checks: '-*, misc-throw-by-value-catch-by-reference, misc-unused-parameters, misc-unused-using-decls, + misc-use-anonymous-namespace, modernize-avoid-bind, modernize-concat-nested-namespaces, modernize-loop-convert, @@ -92,7 +93,8 @@ Checks: '-*, performance-*, -performance-no-int-to-ptr, readability-redundant-member-init, - readability-simplify-boolean-expr' + readability-simplify-boolean-expr, + readability-static-definition-in-anonymous-namespace' FormatStyle: 'file' CheckOptions: - key: bugprone-assert-side-effect.AssertMacros -- 2.34.1