carbon-language/carbon-lang has 163,350 source lines of code out of 296,579 total lines across 1,168 files, counted from the trunk ref at commit ebc155734546 by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
carbon-language/carbon-lang: 163,350 code lines at commit ebc155734546, counted with tokei-14.0.0 on 2026-10-22. Saved result 7c1820f383054aa8f427735e2ae602bf0e7ce0c83a1b55ca54dcc24591ec2c39.
OctoCounts produced this report by resolving carbon-language/carbon-lang to commit ebc155734546, 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 55.1% of all lines, comments represent 31.0%, and the repository averages 140 code lines per file. C++ accounts for 63.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 427 | 140060 | 104419 | 20060 | 15581 |
| C Header | 314 | 55180 | 28683 | 17886 | 8611 |
| Bazel | 91 | 11861 | 9746 | 1081 | 1034 |
| Python | 54 | 9269 | 7298 | 727 | 1244 |
| JSON | 7 | 6617 | 6617 | 0 | 0 |
| Module-Definition | 10 | 3991 | 3624 | 0 | 367 |
| 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 | 218 | 65786 | 0 | 51459 | 14327 |
| Plain Text | 2 | 142 | 0 | 141 | 1 |
Top language (C++ 63.9%). Generated at .
carbon-language/carbon-lang has 296,579 total lines, including 163,350 code lines, 91,803 comment lines, and 41,426 blank lines.
OctoCounts resolved the public GitHub repository to commit ebc155734546, 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 ebc155734546 on 2026-10-22T04:43:52.605889557Z.
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 — 163,350 code lines across 28 languages, counted by tokei.