================
@@ -63,7 +63,8 @@ void OwningMemoryCheck::registerMatchers(MatchFinder *Finder) 
{
                 functionDecl(returns(qualType(hasDeclaration(OwnerDecl)))))),
             CreatesLegacyOwner, LegacyOwnerCast);
----------------
vbvictor wrote:

Can we write `ignoringImpCasts()` only once:
```suggestion
const auto CreatesOwner =
    ignoringImpCasts(anyOf(cxxNewExpr(),
      callExpr(callee(
      functionDecl(returns(qualType(hasDeclaration(OwnerDecl)))))),
    CreatesLegacyOwner, LegacyOwnerCast));
```

https://github.com/llvm/llvm-project/pull/189544
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to