================
@@ -530,6 +542,7 @@ void UseAfterMoveCheck::registerMatchers(MatchFinder 
*Finder) {
                               hasArgument(0, Arg))),
                unless(inDecltypeOrTemplateArg()),
                unless(hasParent(TryEmplaceMatcher)), expr().bind("call-move"),
+               optionally(hasParent(implicitCastExpr().bind("optional-cast"))),
----------------
zeyi2 wrote:

```suggestion
               optionally(hasParent(implicitCastExpr(
                   hasCastKind(CK_DerivedToBase)).bind("optional-cast"))),
```

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

Reply via email to