[clang] Check the type of Objective-C++ instance variables in WebKit member variable checkers. (PR #127570)
Ryosuke Niwa via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 18 21:17:07 PST 2025
================
@@ -87,6 +92,31 @@ class RawPtrRefMemberChecker
}
}
+ void visitObjCDecl(const ObjCContainerDecl *CD) const {
+ if (auto *ID = dyn_cast<ObjCInterfaceDecl>(CD)) {
----------------
rniwa wrote:
oh, but this if statement does that already, right? as in, this if will only evaluate to true if ID wasn't nullptr so I think we have a null check here already in that regard.
https://github.com/llvm/llvm-project/pull/127570
More information about the cfe-commits
mailing list