Open-Source Wikis

/

Swift

/

Tools

apple/swift

Tools

The tools/ directory in this repo holds the sibling executables that ship alongside swift / swiftc. Many of them are debugging aids; others (like SourceKit) are large products in their own right.

Pages

Inventory

Tool Purpose
swift / swiftc / swift-frontend Compiler driver and frontend; see Driver and frontend.
sourcekit / sourcekitd-test / sourcekitd-repl IDE service; see SourceKit.
swift-demangle Print human-readable form of mangled Swift symbols.
swift-demangle-fuzzer LibFuzzer entry for the demangler.
swift-demangle-yamldump Dump demangler tree as YAML.
swift-ide-test Drive lib/IDE/ for code completion / cursor info from the CLI.
swift-refactor Run a single refactoring transformation; consumes lib/Refactoring/.
swift-inspect Inspect a running Swift process via SwiftRemoteMirror.
swift-reflection-dump Dump reflection metadata from a .swiftmodule or binary.
swift-reflection-fuzzer LibFuzzer entry for the reflection reader.
swift-plugin-server Out-of-process host for Swift macros.
swift-scan-test Tests for lib/DependencyScan (the dependency-scanning library).
swift-stdlib-tool Bundle stdlib dylibs into Apple frameworks (build helper).
swift-serialize-diagnostics Compress diagnostics into the .dia file format consumed by Xcode.
swift-compatibility-symbols Walks a stdlib build and reports the back-compat symbols.
swift-def-to-strings-converter Convert Diagnostics*.def files to localizable .strings.
swift-function-caller-generator Build helper that synthesizes thunks for re-entry points.
lldb-moduleimport-test Test the LLDB-private importer mode.
swift-remoteast-test Test the RemoteAST library (used by debuggers).
libMockPlugin Mock plugin used by the macros test infrastructure.
libStaticMirror Static reflection reader.

Where each lives

tools/
├── driver/                      # tiny shim for `swift` / `swiftc`
├── SourceKit/                   # the SourceKit service (lib/, tools/, bindings/)
├── swift-demangle/
├── swift-demangle-fuzzer/
├── swift-demangle-yamldump/
├── swift-ide-test/
├── swift-refactor/
├── swift-inspect/
├── swift-reflection-dump/
├── swift-reflection-fuzzer/
├── swift-plugin-server/
├── swift-scan-test/
├── swift-stdlib-tool/
├── swift-serialize-diagnostics/
├── swift-compatibility-symbols/
├── swift-def-to-strings-converter/
├── swift-function-caller-generator/
├── lldb-moduleimport-test/
├── swift-remoteast-test/
├── libMockPlugin/
└── libStaticMirror/

Most tools are thin CLIs over a lib/<Subsystem>/ library: swift-demangle over lib/Demangling/, swift-ide-test over lib/IDE/, swift-refactor over lib/Refactoring/, etc.

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

Tools – Swift wiki | Factory