=?utf-8?q?Björn?= Svensson <bjorn.a.svens...@est.tech>, =?utf-8?q?Björn?= Svensson <bjorn.a.svens...@est.tech>, =?utf-8?q?Björn?= Svensson <bjorn.a.svens...@est.tech> Message-ID: In-Reply-To: <llvm.org/llvm/llvm-project/pull/92...@github.com>
================ @@ -267,6 +275,10 @@ void ImplicitBoolConversionCheck::registerMatchers(MatchFinder *Finder) { auto BoolXor = binaryOperator(hasOperatorName("^"), hasLHS(ImplicitCastFromBool), hasRHS(ImplicitCastFromBool)); + auto ComparisonInCall = + allOf(hasParent(callExpr()), + has(binaryOperator(hasAnyOperatorName("==", "!=")))); ---------------- PiotrZSL wrote: has -> hasSourceExpression, and probably castExpr would be needed instead of allOf https://github.com/llvm/llvm-project/pull/92241 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits