This is an archive of the discontinued LLVM Phabricator instance.

[SemaObjC] Infer availability of stuff declared in categories from the availability of the enclosing category
Needs ReviewPublic

Authored by erik.pilkington on Jun 11 2019, 5:01 PM.

Details

Summary

These extend the class, but (unlike methods in @interfaces) can be referenced without mentioning the the category, so we don't otherwise emit a diagnostic.

rdar://51318091

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJun 11 2019, 5:01 PM
arphaman added inline comments.Jun 11 2019, 5:24 PM
clang/test/SemaObjC/unguarded-availability.m
365

Can't we just fix it here with a more contextual message? It would be nice to say enclosing category has been marked...