[clang] [Sema] Directly use written attributes in ObjC (PR #179703)
Prajwal Nadig via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 10 05:57:45 PST 2026
================
@@ -300,6 +300,10 @@ makePropertyAttributesAsWritten(unsigned Attributes) {
attributesAsWritten |= ObjCPropertyAttribute::kind_class;
if (Attributes & ObjCPropertyAttribute::kind_direct)
attributesAsWritten |= ObjCPropertyAttribute::kind_direct;
+ if (Attributes & ObjCPropertyAttribute::kind_nullability)
+ attributesAsWritten |= ObjCPropertyAttribute::kind_nullability;
+ if (Attributes & ObjCPropertyAttribute::kind_null_resettable)
+ attributesAsWritten |= ObjCPropertyAttribute::kind_null_resettable;
----------------
snprajwal wrote:
Ah right, that makes sense. I'll open a follow-up PR to expand the test coverage.
https://github.com/llvm/llvm-project/pull/179703
More information about the cfe-commits
mailing list