mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #25152 from xymus/explicit-intro-version
Add CLI option to warn when a public decl has no introduction version
This commit is contained in:
@@ -395,6 +395,13 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Opts.RequestEvaluatorGraphVizPath = A->getValue();
|
||||
}
|
||||
|
||||
if (Args.getLastArg(OPT_require_explicit_availability, OPT_require_explicit_availability_target)) {
|
||||
Opts.RequireExplicitAvailability = true;
|
||||
if (const Arg *A = Args.getLastArg(OPT_require_explicit_availability_target)) {
|
||||
Opts.RequireExplicitAvailabilityTarget = A->getValue();
|
||||
}
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_solver_memory_threshold)) {
|
||||
unsigned threshold;
|
||||
if (StringRef(A->getValue()).getAsInteger(10, threshold)) {
|
||||
|
||||
Reference in New Issue
Block a user