From 20512e8f4067ecba96feb2d8c2460e439d200477 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 18 Dec 2020 08:29:08 +0000 Subject: [PATCH] Bug 1674633 - clang-tidy: disable WarnOnConditionVariables for readability-else-after-return r=static-analysis-reviewers,andi DONTBUILD Differential Revision: https://phabricator.services.mozilla.com/D100085 --- tools/clang-tidy/config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/clang-tidy/config.yaml b/tools/clang-tidy/config.yaml index 1549595b29f3..7b63d50ca5a6 100644 --- a/tools/clang-tidy/config.yaml +++ b/tools/clang-tidy/config.yaml @@ -222,6 +222,10 @@ clang_checkers: reliability: high - name: readability-else-after-return reliability: high + config: + - key: WarnOnConditionVariables + # Disable as we don't mind this kind of behavior + value: 0 - name: readability-implicit-bool-conversion reliability: low # On automation the config flags act strange. Please see Bug 1500241.