[PATCH] D23003: [ObjC Availability] Warn upon unguarded use of partially available declaration
Erik Pilkington via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 10 13:29:58 PDT 2016
erik.pilkington updated this revision to Diff 67582.
erik.pilkington added a comment.
This new patch rebases on top of r277887, and addresses Manman's comments.
After looking through the AST nodes, I realized I neglected to emit a diagnostic for member expressions. I also noticed that function parameters are not being handled correctly. For example:
int f(introduced_in_10_12_t x) __attribute__((availability(macos, introduced=10.12)));
Triggers `-Wunguarded-availability`, which is clearly incorrect. I think the fix here is just to delay the diagnostic until we know the context availability. This isn't really related to this patch, so I'll fix it in a follow up.
Outside of that I can't think of any cases of referencing a declaration in a function body that we're missing.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 33609 bytes
Desc: not available
More information about the cfe-commits