[clang] [clang] [ObjC] Warn that using parent direct initializer could leave child instance incomplete (PR #236951)
Daniel RodrÃguez Troitiño via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 5 17:09:38 PST 2026
https://github.com/drodriguez requested changes to this pull request.
I think I understand the intention of the PR, but the checks seems to work against the good practices for designated initializers that existed way before Obj-C Direct was a thing. I don't know if the restriction of not being able to invoke a super Obj-C Direct method comes from the original implementation or the recent changes, but it might be too restrictive. Or maybe subtyping Obj-C Direct types (or subtyping types with Obj-C Direct initializers) should be restricted, since they become not possible to initialize correctly?
https://github.com/llvm/llvm-project/pull/236951
More information about the cfe-commits
mailing list