Skip to content

Commit 4a2942b

Browse files
Sajjoncompnerd
andauthored
Fix typos in: cmake, tools, utils, unittests, validation-test
Co-authored-by: Saleem Abdulrasool <[email protected]>
1 parent 39a9d23 commit 4a2942b

File tree

32 files changed

+60
-60
lines changed

32 files changed

+60
-60
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ if("${SWIFT_NATIVE_SWIFT_TOOLS_PATH}" STREQUAL "")
936936
set(SWIFT_NATIVE_SWIFT_TOOLS_PATH "${SWIFT_RUNTIME_OUTPUT_INTDIR}")
937937
set(SWIFT_EXEC_FOR_SWIFT_MODULES "${CMAKE_Swift_COMPILER}")
938938
if(NOT SWIFT_EXEC_FOR_SWIFT_MODULES)
939-
message(WARNING "BOOSTRAPPING set to OFF because no Swift compiler is defined")
939+
message(WARNING "BOOTSTRAPPING set to OFF because no Swift compiler is defined")
940940
set(BOOTSTRAPPING_MODE "OFF")
941941
endif()
942942
elseif(BOOTSTRAPPING_MODE MATCHES "BOOTSTRAPPING.*")

cmake/modules/SwiftConfigureSDK.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ macro(configure_sdk_unix name architectures)
323323
endif()
324324
set(SWIFT_SDK_${prefix}_USE_ISYSROOT FALSE)
325325

326-
# Static linking is suported on Linux and WASI
326+
# Static linking is supported on Linux and WASI
327327
if("${prefix}" STREQUAL "LINUX"
328328
OR "${prefix}" STREQUAL "LINUX_STATIC"
329329
OR "${prefix}" STREQUAL "WASI")

tools/SourceKit/lib/SwiftLang/SwiftASTManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class ASTBuildOperation
315315
const std::vector<FileContent> FileContents;
316316

317317
/// Guards \c DependencyStamps. This prevents reading from \c DependencyStamps
318-
/// while it is being modified. It does not provide any ordering gurantees
318+
/// while it is being modified. It does not provide any ordering guarantees
319319
/// that \c DependencyStamps have been computed in \c buildASTUnit before they
320320
/// are accessed in \c matchesSourceState but that's fine (see comment on
321321
/// \c DependencyStamps).

tools/SourceKit/lib/SwiftLang/SwiftLangSupport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ namespace {
208208
/// A simple FileSystemProvider that creates an InMemoryFileSystem for a given
209209
/// dictionary of file contents and overlays that on top of the real filesystem.
210210
class InMemoryFileSystemProvider: public SourceKit::FileSystemProvider {
211-
/// Provides the real filesystem, overlayed with an InMemoryFileSystem that
211+
/// Provides the real filesystem, overlaid with an InMemoryFileSystem that
212212
/// contains specified files at specified locations.
213213
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
214214
getFileSystem(OptionsDictionary &options, std::string &error) override {

tools/SourceKit/lib/SwiftLang/SwiftSourceDocInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ void SwiftLangSupport::getCursorInfo(
20992099
} else {
21002100
std::string Diagnostic; // Unused.
21012101
ResolvedValueRefCursorInfoPtr Info = new ResolvedValueRefCursorInfo(
2102-
/*SourcFile=*/nullptr, SourceLoc(),
2102+
/*SourceFile=*/nullptr, SourceLoc(),
21032103
const_cast<ValueDecl *>(Entity.Dcl),
21042104
/*CtorTyRef=*/nullptr,
21052105
/*ExtTyRef=*/nullptr, Entity.IsRef,
@@ -2585,7 +2585,7 @@ void SwiftLangSupport::findRelatedIdentifiersInFile(
25852585
#ifndef NDEBUG
25862586
for (auto loc : Locs.getLocations()) {
25872587
assert(loc.OldName == OldName &&
2588-
"Found related identfiers with different names?");
2588+
"Found related identifiers with different names?");
25892589
}
25902590
#endif
25912591

tools/SourceKit/tools/sourcekitd/include/sourcekitd/Service.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void disposeCancellationToken(SourceKitCancellationToken CancellationToken);
4747

4848
/// Returns \c true if \p Request is of a request kind that should be issued as
4949
/// a dispatch barrier of the message handling queue. In practice, this returns
50-
/// \c true for open, edit and close requets.
50+
/// \c true for open, edit and close requests.
5151
///
5252
/// This does not check if dispatch barriers have been enabled by the sourckitd
5353
/// client.

tools/libMockPlugin/MockPlugin.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static const llvm::json::Value substitute(const llvm::json::Value &value,
113113
// '.' <alphanum> -> object key.
114114
if (path.starts_with(".")) {
115115
if (subst->kind() != llvm::json::Value::Object)
116-
return "<substition error: not an object>";
116+
return "<substitution error: not an object>";
117117
path = path.substr(1);
118118
auto keyLength =
119119
path.find_if([](char c) { return !llvm::isAlnum(c) && c != '_'; });
@@ -125,20 +125,20 @@ static const llvm::json::Value substitute(const llvm::json::Value &value,
125125
// '[' <digit>+ ']' -> array index.
126126
if (path.starts_with("[")) {
127127
if (subst->kind() != llvm::json::Value::Array)
128-
return "<substition error: not an array>";
128+
return "<substitution error: not an array>";
129129
path = path.substr(1);
130130
auto idxlength = path.find_if([](char c) { return !llvm::isDigit(c); });
131131
size_t idx;
132132
(void)path.slice(0, idxlength).getAsInteger(10, idx);
133133
subst = &(*subst->getAsArray())[idx];
134134
path = path.substr(idxlength);
135135
if (!path.starts_with("]"))
136-
return "<substition error: missing ']' after digits>";
136+
return "<substitution error: missing ']' after digits>";
137137
path = path.substr(1);
138138
continue;
139139
}
140140
// Malformed.
141-
return "<substition error: malformed path>";
141+
return "<substitution error: malformed path>";
142142
}
143143
return *subst;
144144
}

tools/libSwiftScan/SwiftCaching.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ bool swiftscan_cas_prune_ondisk_data(swiftscan_cas_t cas,
246246
return false;
247247
}
248248

249-
/// Expand the invocation if there is repsonseFile into Args that are passed in
249+
/// Expand the invocation if there is responseFile into Args that are passed in
250250
/// the parameter. Return swift-frontend arguments in an ArrayRef, which has the
251251
/// first "-frontend" option dropped if needed.
252252
static llvm::ArrayRef<const char *>
@@ -966,7 +966,7 @@ static llvm::Error replayCompilation(SwiftScanReplayInstance &Instance,
966966
return Proxy.takeError();
967967

968968
if (Kind == file_types::ID::TY_CachedDiagnostics) {
969-
assert(!DiagnosticsOutput && "more than 1 diagnotics found");
969+
assert(!DiagnosticsOutput && "more than 1 diagnostics found");
970970
DiagnosticsOutput = std::move(*Proxy);
971971
} else
972972
OutputProxies.emplace_back(

tools/lldb-moduleimport-test/lldb-moduleimport-test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ int main(int argc, char **argv) {
250250
desc("Dump the imported module after checking it imports just fine"),
251251
cat(Visible));
252252

253-
opt<bool> Verbose("verbose", desc("Dump informations on the loaded module"),
253+
opt<bool> Verbose("verbose", desc("Dump information on the loaded module"),
254254
cat(Visible));
255255

256256
opt<std::string> Filter("filter", desc("triple for filtering modules"),

tools/swift-ide-test/swift-ide-test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static llvm::cl::opt<bool> CodeCompletionAddCallWithNoDefaultArgs(
508508

509509
static llvm::cl::list<std::string>
510510
ConformingMethodListExpectedTypes("conforming-methods-expected-types",
511-
llvm::cl::desc("Set expected types for comforming method list"),
511+
llvm::cl::desc("Set expected types for conforming method list"),
512512
llvm::cl::cat(Category));
513513

514514
// '-syntax-coloring' options.
@@ -3049,7 +3049,7 @@ static int doPrintModules(const CompilerInvocation &InitInvok,
30493049
registerIDERequestFunctions(CI.getASTContext().evaluator);
30503050
auto &Context = CI.getASTContext();
30513051

3052-
// Load implict imports so that Clang importer can use it.
3052+
// Load implicit imports so that Clang importer can use it.
30533053
for (auto unloadedImport :
30543054
CI.getMainModule()->getImplicitImportInfo().AdditionalUnloadedImports) {
30553055
(void)Context.getModule(unloadedImport.module.getModulePath());
@@ -3116,7 +3116,7 @@ static int doPrintHeaders(const CompilerInvocation &InitInvok,
31163116
registerIDERequestFunctions(CI.getASTContext().evaluator);
31173117
auto &Context = CI.getASTContext();
31183118

3119-
// Load implict imports so that Clang importer can use it.
3119+
// Load implicit imports so that Clang importer can use it.
31203120
for (auto unloadedImport :
31213121
CI.getMainModule()->getImplicitImportInfo().AdditionalUnloadedImports) {
31223122
(void)Context.getModule(unloadedImport.module.getModulePath());

0 commit comments

Comments
 (0)