[clang] [Webkit Checkers][SaferCpp] Detect implicit `id`-to-specific-type casts in MemoryUnsafeCastChecker (PR #213113)
Rashmi Mudduluru via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 30 16:52:04 PDT 2026
================
@@ -89,6 +108,9 @@ AST_MATCHER_P(StringLiteral, mentionsBoundType, std::string, BindingID) {
});
}
+// Matches the plain `id` type.
+AST_MATCHER(QualType, isObjCIdType) { return Node->isObjCIdType(); }
----------------
t-rasmud wrote:
TIL, thanks!
https://github.com/llvm/llvm-project/pull/213113
More information about the cfe-commits
mailing list