carbon-language/carbon-lang has 169,095 source lines of code out of 304,457 total lines across 1,181 files, counted with tokei from the trunk ref at commit 7a3608bab265 on November 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
carbon-language/carbon-lang: 169,095 code lines at commit 7a3608bab265, counted with tokei-15.0.0 on 2026-11-14. Saved result 0d0a7b0a61cc305194cb80a53cfbf8320a07ad0f9c302d28aad59614ab5150f5.
OctoCounts produced this report by resolving carbon-language/carbon-lang to commit 7a3608bab265, 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 large codebase by counted code lines. Code represents 55.5% of all lines, comments represent 30.6%, and the repository averages 143 code lines per file. C++ accounts for 63.8% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 432 | 144700 | 107945 | 20831 | 15924 |
| C Header | 318 | 56727 | 29601 | 18341 | 8785 |
| Bazel | 91 | 11949 | 9826 | 1081 | 1042 |
| Python | 57 | 10587 | 8420 | 798 | 1369 |
| JSON | 7 | 6684 | 6684 | 0 | 0 |
| Module-Definition | 10 | 4028 | 3656 | 0 | 372 |
| JavaScript | 4 | 1332 | 1203 | 97 | 32 |
| SVG | 10 | 543 | 530 | 13 | 0 |
| TypeScript | 1 | 345 | 273 | 38 | 34 |
| Shell | 7 | 362 | 197 | 97 | 68 |
| Scheme | 1 | 181 | 159 | 11 | 11 |
| C | 1 | 180 | 128 | 38 | 14 |
| Vim Script | 3 | 137 | 127 | 6 | 4 |
| HTML | 3 | 131 | 86 | 26 | 19 |
| Templ | 3 | 89 | 38 | 35 | 16 |
| Happy | 1 | 47 | 34 | 0 | 13 |
| Sass | 2 | 61 | 31 | 19 | 11 |
| TOML | 1 | 39 | 28 | 3 | 8 |
| Lua | 1 | 38 | 27 | 7 | 4 |
| BASH | 1 | 41 | 23 | 13 | 5 |
| YAML | 1 | 35 | 20 | 7 | 8 |
| Fish | 1 | 37 | 19 | 16 | 2 |
| Zsh | 1 | 33 | 17 | 11 | 5 |
| Lex | 1 | 25 | 16 | 5 | 4 |
| Makefile | 1 | 11 | 6 | 3 | 2 |
| Autoconf | 1 | 6 | 1 | 4 | 1 |
| Markdown | 219 | 65967 | 0 | 51594 | 14373 |
| Plain Text | 2 | 142 | 0 | 141 | 1 |
Top language: C++ 63.8%. Generated on .
carbon-language/carbon-lang: 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.
carbon-language/carbon-lang has 169,095 lines of code, plus 93,235 comment lines and 42,127 blank lines, for 304,457 total lines at commit 7a3608bab265 on November 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 7a3608bab265, 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 trunk at commit 7a3608bab265 on November 14, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for carbon-language/carbon-lang on this page — 169,095 code lines across 28 languages, counted by tokei.