mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Simplify down to a single command-line option for preposition splitting.
Swift SVN r15835
This commit is contained in:
@@ -539,17 +539,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
}
|
||||
|
||||
Opts.EnableAppExtensionRestrictions = Args.hasArg(OPT_enable_app_extension);
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_split_objc_selectors,
|
||||
OPT_split_objc_selectors_before,
|
||||
OPT_split_objc_selectors_after)) {
|
||||
if (A->getOption().matches(OPT_split_objc_selectors))
|
||||
Opts.SplitPrepositions = SelectorSplitKind::DirectionalPreposition;
|
||||
else if (A->getOption().matches(OPT_split_objc_selectors_before))
|
||||
Opts.SplitPrepositions = SelectorSplitKind::BeforePreposition;
|
||||
else
|
||||
Opts.SplitPrepositions = SelectorSplitKind::AfterPreposition;
|
||||
}
|
||||
Opts.SplitPrepositions = Args.hasArg(OPT_split_objc_selectors);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user