@@ -245,7 +245,7 @@ resolveDirectDependencies(CompilerInstance &instance, ModuleDependencyID module,
245
245
return std::vector<ModuleDependencyID>(result.begin (), result.end ());
246
246
}
247
247
248
- static void discoverCrosssImportOverlayDependencies (
248
+ static void discoverCrossImportOverlayDependencies (
249
249
CompilerInstance &instance, StringRef mainModuleName,
250
250
ArrayRef<ModuleDependencyID> allDependencies,
251
251
ModuleDependenciesCache &cache, InterfaceSubContextDelegate &ASTDelegate,
@@ -316,7 +316,7 @@ static void discoverCrosssImportOverlayDependencies(
316
316
std::set<ModuleDependencyID>>
317
317
allModules;
318
318
319
- // Seed the all module list from the dummpy main module.
319
+ // Seed the all module list from the dummy main module.
320
320
allModules.insert ({dummyMainName.str (), dummyMainDependencies.getKind ()});
321
321
322
322
// Explore the dependencies of every module.
@@ -1024,9 +1024,9 @@ static void updateCachedInstanceOpts(CompilerInstance &cachedInstance,
1024
1024
cachedInstance.getASTContext ().SearchPathOpts =
1025
1025
invocationInstance.getASTContext ().SearchPathOpts ;
1026
1026
1027
- // The Clang Importer arguments must consiste of a combination of
1027
+ // The Clang Importer arguments must consist of a combination of
1028
1028
// Clang Importer arguments of the current invocation to inherit its Clang-specific
1029
- // search path options, followed by the options speicific to the given batch-entry,
1029
+ // search path options, followed by the options specific to the given batch-entry,
1030
1030
// which may overload some of the invocation's options (e.g. target)
1031
1031
cachedInstance.getASTContext ().ClangImporterOpts =
1032
1032
invocationInstance.getASTContext ().ClangImporterOpts ;
@@ -1053,7 +1053,7 @@ forEachBatchEntry(CompilerInstance &invocationInstance,
1053
1053
llvm::function_ref<void (BatchScanInput, CompilerInstance &,
1054
1054
ModuleDependenciesCache &)>
1055
1055
scanningAction) {
1056
- const CompilerInvocation &invok = invocationInstance.getInvocation ();
1056
+ const CompilerInvocation &invoke = invocationInstance.getInvocation ();
1057
1057
bool localSubInstanceMap = false ;
1058
1058
CompilerArgInstanceCacheMap *subInstanceMap;
1059
1059
if (versionedPCMInstanceCache)
@@ -1082,7 +1082,7 @@ forEachBatchEntry(CompilerInstance &invocationInstance,
1082
1082
// those of the current scanner invocation.
1083
1083
updateCachedInstanceOpts (*pInstance, invocationInstance, entry.arguments );
1084
1084
} else {
1085
- // We must reset option occurences because we are handling an unrelated command-line
1085
+ // We must reset option occurrences because we are handling an unrelated command-line
1086
1086
// to those parsed before. We must do so because LLVM options parsing is done
1087
1087
// using a managed static `GlobalParser`.
1088
1088
llvm::cl::ResetAllOptionOccurrences ();
@@ -1100,15 +1100,15 @@ forEachBatchEntry(CompilerInstance &invocationInstance,
1100
1100
pCache = std::get<2 >((*subInstanceMap)[entry.arguments ]).get ();
1101
1101
SmallVector<const char *, 4 > args;
1102
1102
llvm::cl::TokenizeGNUCommandLine (entry.arguments , saver, args);
1103
- CompilerInvocation subInvok = invok ;
1103
+ CompilerInvocation subInvoke = invoke ;
1104
1104
pInstance->addDiagnosticConsumer (&FDC);
1105
- if (subInvok .parseArgs (args, diags)) {
1105
+ if (subInvoke .parseArgs (args, diags)) {
1106
1106
invocationInstance.getDiags ().diagnose (
1107
1107
SourceLoc (), diag::scanner_arguments_invalid, entry.arguments );
1108
1108
return true ;
1109
1109
}
1110
1110
std::string InstanceSetupError;
1111
- if (pInstance->setup (subInvok , InstanceSetupError)) {
1111
+ if (pInstance->setup (subInvoke , InstanceSetupError)) {
1112
1112
invocationInstance.getDiags ().diagnose (
1113
1113
SourceLoc (), diag::scanner_arguments_invalid, entry.arguments );
1114
1114
return true ;
@@ -1434,13 +1434,13 @@ swift::dependencies::performModuleScan(CompilerInstance &instance,
1434
1434
}
1435
1435
1436
1436
// We have all explicit imports now, resolve cross import overlays.
1437
- discoverCrosssImportOverlayDependencies (
1437
+ discoverCrossImportOverlayDependencies (
1438
1438
instance, mainModuleName,
1439
1439
/* All transitive dependencies*/ allModules.getArrayRef ().slice (1 ), cache,
1440
1440
ASTDelegate, [&](ModuleDependencyID id) { allModules.insert (id); },
1441
1441
currentImportPathSet);
1442
1442
1443
- // Dignose cycle in dependency graph.
1443
+ // Diagnose cycle in dependency graph.
1444
1444
if (diagnoseCycle (instance, cache, /* MainModule*/ allModules.front (),
1445
1445
ASTDelegate))
1446
1446
return std::make_error_code (std::errc::not_supported);
0 commit comments