Skip to content

Fix various typos and missing whitespace. #39853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/swift/Option/FrontendOptions.td
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ def disable_typo_correction : Flag<["-"], "disable-typo-correction">,
def disable_implicit_swift_modules: Flag<["-"], "disable-implicit-swift-modules">,
HelpText<"Disable building Swift modules implicitly by the compiler">;

def explict_swift_module_map
def explicit_swift_module_map
: Separate<["-"], "explicit-swift-module-map-file">, MetaVarName<"<path>">,
HelpText<"Specify a JSON file containing information of explict Swift modules">;
HelpText<"Specify a JSON file containing information of explicit Swift modules">;

def placeholder_dependency_module_map
: Separate<["-"], "placeholder-dependency-module-map-file">, MetaVarName<"<path>">,
Expand All @@ -194,7 +194,7 @@ def batch_scan_input_file
HelpText<"Specify a JSON file containing modules to perform batch dependencies scanning">;

def import_prescan : Flag<["-"], "import-prescan">,
HelpText<"When performing a dependency scan, only dentify all imports of the main Swift module sources">;
HelpText<"When performing a dependency scan, only identify all imports of the main Swift module sources">;

def serialize_dependency_scan_cache : Flag<["-"], "serialize-dependency-scan-cache">,
HelpText<"After performing a dependency scan, serialize the scanner's internal state.">;
Expand Down Expand Up @@ -816,7 +816,7 @@ def enable_verify_exclusivity : Flag<["-"], "enable-verify-exclusivity">,
HelpText<"Enable verification of access markers used to enforce exclusivity.">;

def disable_verify_exclusivity : Flag<["-"], "disable-verify-exclusivity">,
HelpText<"Diable verification of access markers used to enforce exclusivity.">;
HelpText<"Disable verification of access markers used to enforce exclusivity.">;

def disable_legacy_type_info : Flag<["-"], "disable-legacy-type-info">,
HelpText<"Completely disable legacy type layout">;
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Option/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ def save_optimization_record_path :
def save_optimization_record_passes :
Separate<["-"], "save-optimization-record-passes">,
Flags<[FrontendOption]>,
HelpText<"Only include passes which match a specified regular expression in"
HelpText<"Only include passes which match a specified regular expression in "
"the generated optimization record "
"(by default, include all passes)">, MetaVarName<"<regex>">;

Expand Down
2 changes: 1 addition & 1 deletion lib/Frontend/CompilerInvocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts,
Opts.DisableModulesValidateSystemDependencies |=
Args.hasArg(OPT_disable_modules_validate_system_headers);

if (const Arg *A = Args.getLastArg(OPT_explict_swift_module_map))
if (const Arg *A = Args.getLastArg(OPT_explicit_swift_module_map))
Opts.ExplicitSwiftModuleMap = A->getValue();
for (auto A: Args.filtered(OPT_candidate_module_file)) {
Opts.CandidateCompiledModules.push_back(resolveSearchPath(A->getValue()));
Expand Down
2 changes: 1 addition & 1 deletion utils/build_swift/build_swift/driver_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def create_argument_parser():
default=defaults.DSYMUTIL_JOBS,
metavar='COUNT',
help='the maximum number of parallel dsymutil jobs to use when '
'extracting symbols. Tweak with caution, since dsymutil'
'extracting symbols. Tweak with caution, since dsymutil '
'is memory intensive.')

option('--disable-guaranteed-normal-arguments', store_true,
Expand Down