From 4a53467c92c4e979f59cda56d665f34ffb7bb61f Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 25 Jan 2024 19:15:15 +0000 Subject: [PATCH] Bug 1822949: Add EnumSet to "performance-unnecessary-value-param.AllowedTypes". r=linter-reviewers,sylvestre Differential Revision: https://phabricator.services.mozilla.com/D196328 UltraBlame original commit: 928692165b67f48d38811e6166d2bb787f9edd95 --- tools/clang-tidy/config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/clang-tidy/config.yaml b/tools/clang-tidy/config.yaml index 4e75b52eacfb6..773e92914faf5 100644 --- a/tools/clang-tidy/config.yaml +++ b/tools/clang-tidy/config.yaml @@ -227,6 +227,11 @@ clang_checkers: reliability: high - name: performance-unnecessary-value-param reliability: high + config: + - key: AllowedTypes + # Allow EnumSet because it only has a non-trivial copy constructor + # in debug builds. + value: ::mozilla::EnumSet - name: readability-braces-around-statements reliability: high config: