================ @@ -28,6 +29,15 @@ bool tryToFindPtrOrigin( std::function<bool(const clang::QualType)> isSafePtrType, std::function<bool(const clang::Expr *, bool)> callback) { while (E) { + if (auto *DRE = dyn_cast<DeclRefExpr>(E)) { + auto *ValDecl = DRE->getDecl(); + auto QT = ValDecl->getType(); + auto ValName = ValDecl->getName(); + if (ValDecl && (ValName.starts_with('k') || ValName.starts_with("_k")) && ---------------- rniwa wrote:
This ignores kCF~ and _kCF constants. https://github.com/llvm/llvm-project/pull/128586 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits