summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorMichael Wyman <michael@mwyman.com>2022-10-19 13:11:41 -0700
committerMichael Wyman <michael@mwyman.com>2022-10-20 22:42:24 -0700
commit34020d39b8a116770aad0b5ad1a450e6e22da5cd (patch)
tree6ddc6619f44d0535d56ce56d814ccd7e8c81d78e /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parente5f6ad2212ac4d871c69fb1320c998094b97f278 (diff)
Don't emit `-Wnullability-completeness` warnings on `weak` Objective-C properties.
Zeroing weak references are by definition `nullable`, and adding `nonnull` or `_Nullable` yields a mutual-exclusivity error. When `-Wnullability-completeness` is enabled, however, non-audited header regions require adding the `nullable` property keyword to avoid a warning. This should be unnecessary, since it restates known nullability of the `weak` property. Additionally, the fix-it hints are both non-idiomatic Objective-C (adding `_Nullable` to the property's pointer type rather than in the `@property` attributes) and suggest the option of adding `_Nonnull`, which would be an error. Differential Revision: https://reviews.llvm.org/D128031
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions