forked from project-chip/zap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix provisional handling for Darwin to be consistent.
We treated things with neither "introduced" nor "provisional" annotations as provisional in availabilityHelper(), but isProvisional() returned false for them. This could lead us to generate non-provisional code (conditioned on isProvisional()) that would try to call into things with provisional availability, which would fail to compile. The fix is to make isProvisional the source of truth for whether things are provisional, move the "no introduced annotation" check into isProvisional, and factor out the "have provisional annotation" logic so we can keep having the warning when we take the "provisional because not otherwise annotated" codepath.
- Loading branch information
1 parent
4084573
commit c49a77f
Showing
1 changed file
with
52 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters