carbon-language/carbon-lang SLOC report

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.

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
C++34893095694601254811087
C Header2674282922411135856833
Bazel8290277360910757
JSON54610461000
Python4057504569401780
Module-Definition9353332030330
JavaScript4113893594109
C11811274014
Vim Script312311364
Scheme11381072011
Shell51971064843
SVG1118105130

Top language (C++ 61.2%). Generated at .

Report FAQ

How many lines of code does carbon-language/carbon-lang have?

carbon-language/carbon-lang has 221,652 total lines, including 113,470 code lines, 75,029 comment lines, and 33,153 blank lines.

How was the carbon-language/carbon-lang line count measured?

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.

What commit was counted for carbon-language/carbon-lang?

This OctoCounts report was generated from 7938d9a8d0556498754feb12695776702984c235 at commit 7938d9a8d055 on 2026-09-06T08:57:54.985639543+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity: