================ @@ -87,6 +92,31 @@ class RawPtrRefMemberChecker } } + void visitObjCDecl(const ObjCContainerDecl *CD) const { + if (auto *ID = dyn_cast<ObjCInterfaceDecl>(CD)) { ---------------- rniwa wrote:
I don't think so. `ObjCContainerDecl` could be `ObjCCategoryDecl` or `ObjCProtocolDecl` as well. Or are you saying CD could be null? https://github.com/llvm/llvm-project/pull/127570 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits