[clang-tools-extra] [clang-tidy] Improve bugprone.use-after-move interaction with explicit destructor call. (PR #188866)

via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 3 02:37:28 PDT 2026


================
@@ -82,6 +82,21 @@ class UseAfterMoveFinder {
   llvm::SmallPtrSet<const CFGBlock *, 8> Visited;
 };
 
+AST_MATCHER_P(Expr, hasParentIgnoringParenImpCasts,
----------------
serge-sans-paille wrote:

It unfortunately does not work:
```
error: static assertion failed: has parent only accepts base type matcher
```

https://github.com/llvm/llvm-project/pull/188866


More information about the cfe-commits mailing list