mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add option to split after the last preposition.
Swift SVN r15264
This commit is contained in:
@@ -533,7 +533,14 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
}
|
||||
|
||||
Opts.EnableObjCOptional = Args.hasArg(OPT_enable_objc_optional);
|
||||
Opts.SplitPrepositions = Args.hasArg(OPT_split_objc_selectors);
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_split_objc_selectors_before,
|
||||
OPT_split_objc_selectors_after)) {
|
||||
if (A->getOption().matches(OPT_split_objc_selectors_before))
|
||||
Opts.SplitPrepositions = SelectorSplitKind::BeforePreposition;
|
||||
else
|
||||
Opts.SplitPrepositions = SelectorSplitKind::AfterPreposition;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user