swiftlang/swift has 2,299,938 source lines of code out of 3,336,604 total lines across 14,877 files, counted with tokei from the main ref at commit d349aa60316b on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit d349aa60316b), swiftlang/swift contains 3,336,604 total lines: 2,299,938 code, 695,662 comments, 341,004 blank, across 14,877 files in 33 languages (top language: C++ 39.2%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving swiftlang/swift to commit d349aa60316b, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a very large codebase by counted code lines. Code represents 68.9% of all lines, comments represent 20.8%, and the repository averages 155 code lines per file. C++ accounts for 39.2% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 1301 | 1241484 | 900751 | 176443 | 164290 |
| JSON | 21 | 521058 | 521057 | 0 | 1 |
| Swift | 10619 | 660946 | 416989 | 173990 | 69967 |
| C Header | 1501 | 524328 | 330006 | 118161 | 76161 |
| Module-Definition | 148 | 42429 | 38011 | 0 | 4418 |
| Python | 228 | 49230 | 37406 | 4739 | 7085 |
| CMake | 545 | 36720 | 27411 | 4614 | 4695 |
| PowerShell | 5 | 7046 | 6583 | 288 | 175 |
| YAML | 14 | 5032 | 5032 | 0 | 0 |
| Objective-C++ | 14 | 5259 | 3570 | 889 | 800 |
| BASH | 10 | 3934 | 2992 | 481 | 461 |
| INI | 1 | 3428 | 2254 | 445 | 729 |
Top language: C++ 39.2%. Generated on .
swiftlang/swift: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
swiftlang/swift has 2,299,938 lines of code, plus 695,662 comment lines and 341,004 blank lines, for 3,336,604 total lines at commit d349aa60316b on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit d349aa60316b, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit d349aa60316b on November 16, 2026.
Play the growth animation for swiftlang/swift on this page — 2,299,938 code lines across 33 languages, counted by tokei.