Merge pull request #39550 from DougGregor/require-explicit-sendable

Add `-require-explicit-sendable` to warn about non-Sendable public types
This commit is contained in:
Doug Gregor
2021-10-08 16:13:06 -07:00
committed by GitHub
11 changed files with 494 additions and 75 deletions

View File

@@ -575,6 +575,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
}
}
Opts.RequireExplicitSendable |= Args.hasArg(OPT_require_explicit_sendable);
for (const Arg *A : Args.filtered(OPT_define_availability)) {
Opts.AvailabilityMacros.push_back(A->getValue());
}