As of 2026-09-06 (commit 7938d9a8d055), carbon-language/carbon-lang contains 221,652 total lines: 113,470 code, 75,029 comments, 33,153 blank, across 981 files in 26 languages (top: C++ 61.2%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving carbon-language/carbon-lang to commit 7938d9a8d055, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.
This is a large codebase by counted code lines. Code represents 51.2% of all lines, comments represent 33.8%, and the repository averages 116 code lines per file. C++ accounts for 61.2% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 348 | 93095 | 69460 | 12548 | 11087 |
| C Header | 267 | 42829 | 22411 | 13585 | 6833 |
| Bazel | 82 | 9027 | 7360 | 910 | 757 |
| JSON | 5 | 4610 | 4610 | 0 | 0 |
| Python | 40 | 5750 | 4569 | 401 | 780 |
| Module-Definition | 9 | 3533 | 3203 | 0 | 330 |
| JavaScript | 4 | 1138 | 935 | 94 | 109 |
| C | 1 | 181 | 127 | 40 | 14 |
| Vim Script | 3 | 123 | 113 | 6 | 4 |
| Scheme | 1 | 138 | 107 | 20 | 11 |
| Shell | 5 | 197 | 106 | 48 | 43 |
| SVG | 1 | 118 | 105 | 13 | 0 |
Top language (C++ 61.2%). Generated at .
carbon-language/carbon-lang has 221,652 total lines, including 113,470 code lines, 75,029 comment lines, and 33,153 blank lines.
OctoCounts resolved the public GitHub repository to commit 7938d9a8d055, 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 7938d9a8d0556498754feb12695776702984c235 at commit 7938d9a8d055 on 2026-09-06T08:57:54.985639543+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: