From: Simon Marchi Date: Fri, 15 Mar 2024 15:50:11 +0000 (-0400) Subject: .clang-tidy: add anonymous namespace-related checks X-Git-Url: http://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=55769eb50c02a6e630f9acb18c09306e97b64443 .clang-tidy: add anonymous namespace-related checks Change-Id: I96fc6cf56d5c2d47addbc944ceae3992162a0958 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- 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