Commit Graph

8 Commits

Author SHA1 Message Date
Michael Gottesman
af82326855 Mark an -Xllvm flag with -Xllvm... 2024-05-31 10:01:59 -07:00
Michael Gottesman
bfb5096e81 [sending] Add some code coverage for globals. 2024-05-30 22:19:11 -07:00
Michael Gottesman
f7bbbbeea2 [ast] Add an asserts only option that causes the AST printer to print out an increasing ID for all suppressed statements.
I am using this to better test out suppression statements. I am finding that
FileCheck runs into issues with some of the '#if' lines I am trying to match. I
am able to use this option with my asserts only test to uniquely identify a '#if
...' statement and thus have the pattern matching work. I needed this to get the
test in the next commit to pass testing.
2024-05-30 22:19:11 -07:00
Michael Gottesman
11f86a5488 [sending] Teach sending how to suppress sending from functions passed to inits.
rdar://129045783
2024-05-30 22:19:11 -07:00
Michael Gottesman
14c4576889 [sending] Make it so that we suppress fields of Nominal Types in API notes.
rdar://129045783
2024-05-30 22:19:11 -07:00
Michael Gottesman
97710b4773 [sending] Add some more test coverage for public/internal methods of NominalTypes.
These already worked... I am just adding the code coverage before I fix a
different issue in the next commit. This will make it clearer what I am actually
fixing in the next commit when one reads the tests.
2024-05-30 22:12:09 -07:00
Michael Gottesman
521a70f416 [ast] Always emit compiler(>= 5.3) when emitting guards for suppressable features to guard against parser errors.
The code here was assuming that if we already emitted a compiler guard for
non-Suppressable features, we could avoid doing it for suppressable
features. The problem with this is that compiler() does more than just check for
compiler versions... it also tells the compiler that parser errors in the if
block should be ignored when if evaluates to false.

rdar://129045783
2024-05-30 22:12:09 -07:00
Michael Gottesman
20a3589763 [sending] Enable sending whenever region isolation is enabled and make SE-0430 an upcoming feature.
I also added support for expressing suppressable upcoming features.

rdar://128216574
2024-05-17 19:56:29 -07:00