[clang] [RawPtrRefMemberChecker] Add the support for union and pointers to unsafe pointers. (PR #138042)
Ryosuke Niwa via cfe-commits
cfe-commits at lists.llvm.org
Thu May 8 15:53:00 PDT 2025
================
@@ -192,7 +202,8 @@ class RawPtrRefMemberChecker
const auto Kind = RD->getTagKind();
// FIMXE: Should we check union members too?
- if (Kind != TagTypeKind::Struct && Kind != TagTypeKind::Class)
+ if (Kind != TagTypeKind::Struct && Kind != TagTypeKind::Class &&
----------------
rniwa wrote:
Oh oops, I meant to remove that and forgot! Thanks for spotting it!
https://github.com/llvm/llvm-project/pull/138042
More information about the cfe-commits
mailing list