Commit Graph

8 Commits

Author SHA1 Message Date
Allan Shortlidge
67c59279a4 Frontend: Rename -dump-type-refinement-contexts to -dump-availability-scopes. 2024-11-12 11:34:25 -08:00
Allan Shortlidge
0bf3aa9df0 AST: Add AvailabilityContext::getVersionString() for debugging and diagnostics.
NFC (except for debug output).
2024-09-02 16:47:14 -07:00
Ben Barham
f2bd6ce9cb [next] Remove subminor version from various tests
The "0" subminor is no longer included after
114b4d96e4 (which generally doesn't add a
subminor). Remove it from checks depending on it.
2022-05-11 17:06:29 -07:00
Alexis Laferrière
28d504dd31 [Sema] Use the most precise TRC to extend when building them lazily
This fixes an issue reported with emit-module-separately where the
compiler reports false-errors on availability.

rdar://85472278
2021-12-02 14:29:52 -08:00
Alexis Laferrière
c8104aab38 [Sema] Generate TRC for unparsed functions right before type-checking
Fix an issue where `if #available(...)` conditions were ignored in
emit-module-separately builds or when skipping non-inlinable function
bodies.

To handle functions for which parsing is delayed but type-checking is
not delayed, move up building the delayed TRC to the
TypeCheckFunctionBodyRequest service.

rdar://83166742
2021-09-16 08:16:21 -07:00
LucianoAlmeida
aa8bda6454 [tests] Make sure Sema/avaliability_and_delay_parsing runs in every target on macos 2021-09-02 23:33:16 -03:00
Alexis Laferrière
65c9a8f46c [Sema] Test that we don't generate a TRC for skipped functions 2021-08-27 10:01:49 -07:00
Alexis Laferrière
07a85b42b5 [Sema] Build the TRC for delayed functions bodies
We used to build the full TypeRefinementContext of a source file before
parsing delayed function bodies. This can lead to availability checking
errors in delayed function bodies as the TRCs are incomplete.

Complete the TRC of each delayed function before type-checking them to
fix this.

rdar://82269657
2021-08-26 13:35:38 -07:00