Skip to content

Commit ed8a8f9

Browse files
authored
[SWBCore] Enhance specs tools quality (swiftlang#59)
* docs: fix `command` spelling * docs: fix `Artificially` spelling * docs: fix `environment` spelling * docs: fix `accommodate` spelling * docs: fix `corresponding` spelling * docs: fix `suppress` spelling
1 parent d3e7af1 commit ed8a8f9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Sources/SWBCore/Specs/Tools/CCompiler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public class ClangCompilerSpec : CompilerSpec, SpecIdentifierType, GCCCompatible
550550
/// The compilation inputs implied by these flags.
551551
let inputs: [Path]
552552

553-
/// Maps response files in `flags` to the correspoding recorded attachment in the build description.
553+
/// Maps response files in `flags` to the corresponding recorded attachment in the build description.
554554
let responseFileMapping: [Path: Path]
555555

556556
}
@@ -936,7 +936,7 @@ public class ClangCompilerSpec : CompilerSpec, SpecIdentifierType, GCCCompatible
936936
}
937937
}
938938

939-
// If an open-source Swift toolchain is in use, supress warnings about libclang mismatch.
939+
// If an open-source Swift toolchain is in use, suppress warnings about libclang mismatch.
940940
if !cbc.producer.toolchains.contains(where: { toolchain in
941941
toolchain.identifier.hasPrefix("org.swift.")
942942
}) {

Sources/SWBCore/Specs/Tools/CodeSign.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public final class CodesignToolSpec : CommandLineToolSpec, SpecIdentifierType {
223223
if isReSignTask {
224224
// We have to infer the binary path, which is something of a hack. It also assumes the bundle we're signing *has* a binary.
225225
//
226-
// Note that the difference between use of `productToSign` and `outputPath` here is intentional, and is designed to accomodate the handling of macOS `Versions/A/<name>`.
226+
// Note that the difference between use of `productToSign` and `outputPath` here is intentional, and is designed to accommodate the handling of macOS `Versions/A/<name>`.
227227
let bundleName = productToSign.basenameWithoutSuffix
228228

229229
let format: BundleFormat
@@ -319,7 +319,7 @@ public final class CodesignToolSpec : CommandLineToolSpec, SpecIdentifierType {
319319
}
320320

321321

322-
/// Computes the enviornment for invoking the code signing tool.
322+
/// Computes the environment for invoking the code signing tool.
323323
///
324324
/// - Parameters:
325325
/// - cbc: The command build context.

Sources/SWBCore/Specs/Tools/SetAttributes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public final class SetAttributesSpec: CommandLineToolSpec, SpecImplementationTyp
7272
let args = [cbc.scope.evaluate(BuiltinMacros.CHMOD).str, flags, mode, input.absolutePath.str]
7373
let outputs: [any PlannedNode] = [delegate.createNode(input.absolutePath), delegate.createVirtualNode("SetMode \(input.absolutePath.str)")]
7474

75-
// Artifically enforce an ordering between chown and chmod, if both are used.
75+
// Artificially enforce an ordering between chown and chmod, if both are used.
7676
var inputs: [any PlannedNode] = [delegate.createNode(input.absolutePath)]
7777
if let chownOutput = chownOutput {
7878
inputs.append(chownOutput)

Sources/SWBCore/Specs/Tools/TAPISymbolExtractor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ final public class TAPISymbolExtractor: GenericCompilerSpec, GCCCompatibleCompil
5454
return await hasPlusPlusHeaders(cbc)
5555
}
5656

57-
// Which -x option should this task pass along to clang for the extract-api commnand?
57+
// Which -x option should this task pass along to clang for the extract-api command?
5858
static private func clangHeaderOption(cbc: CommandBuildContext) async -> String {
5959
return await shouldBuildInCXXMode(cbc: cbc) ? "objective-c++-header" : "objective-c-header"
6060
}

0 commit comments

Comments
 (0)