[clang] [WebKit Checkers] Allow a guardian CheckedPtr/CheckedRef (PR #110222)
Rashmi Mudduluru via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 24 21:22:15 PDT 2024
================
@@ -56,7 +60,8 @@ bool tryToFindPtrOrigin(
if (StopAtFirstRefCountedObj) {
if (auto *ConversionFunc =
dyn_cast_or_null<FunctionDecl>(cast->getConversionFunction())) {
- if (isCtorOfRefCounted(ConversionFunc))
+ if (isCtorOfRefCounted(ConversionFunc) ||
+ isCtorOfCheckedPtr(ConversionFunc))
----------------
t-rasmud wrote:
Could this also be refactored into a function (say `isSafeCtor`) like `isSafePtr`?
https://github.com/llvm/llvm-project/pull/110222
More information about the cfe-commits
mailing list