carbon-language/carbon-lang SLOC report
As of 2026-08-14 (commit 277815fd9499), carbon-language/carbon-lang contains 258,213 total lines: 137,013 code, 83,488 comments, 37,712 blank, across 1,086 files in 25 languages (top: C++ 61.5%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving carbon-language/carbon-lang to commit 277815fd9499, 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.
Repository size insights
This is a large codebase by counted code lines. Code represents 53.1% of all lines, comments represent 32.3%, and the repository averages 126 code lines per file. C++ accounts for 61.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| C++ | 386 | 112301 | 84215 | 15077 | 13009 |
| C Header | 292 | 48738 | 25623 | 15342 | 7773 |
| Bazel | 90 | 11007 | 8982 | 1052 | 973 |
| Python | 52 | 8304 | 6521 | 644 | 1139 |
| JSON | 7 | 6095 | 6095 | 0 | 0 |
| Module-Definition | 10 | 3873 | 3523 | 0 | 350 |
| JavaScript | 4 | 1138 | 935 | 94 | 109 |
| TypeScript | 1 | 342 | 272 | 36 | 34 |
| C | 1 | 181 | 127 | 40 | 14 |
| Vim Script | 3 | 125 | 115 | 6 | 4 |
| Shell | 6 | 223 | 114 | 61 | 48 |
| Scheme | 1 | 138 | 107 | 20 | 11 |
Top language (C++ 61.5%). Generated at 2026-08-14T23:26:24.579212410+00:00.
Report FAQ
How many lines of code does carbon-language/carbon-lang have?
carbon-language/carbon-lang has 258,213 total lines, including 137,013 code lines, 83,488 comment lines, and 37,712 blank lines.
How was the carbon-language/carbon-lang line count measured?
OctoCounts resolved the public GitHub repository to commit 277815fd9499, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for carbon-language/carbon-lang?
This OctoCounts report was generated from trunk at commit 277815fd9499 on 2026-08-14T23:26:24.579212410+00:00.