Kitware/CMake has 1,278,983 source lines of code out of 1,746,487 total lines across 30,630 files, counted from the master ref at commit 0894f2a5b267 by the OctoCounts tokei engine on 2026-10-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-21 (commit 0894f2a5b267), Kitware/CMake contains 1,746,487 total lines: 1,278,983 code, 248,214 comments, 219,290 blank, across 30,630 files in 59 languages (top: C 29.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving Kitware/CMake to commit 0894f2a5b267, 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 very large codebase by counted code lines. Code represents 73.2% of all lines, comments represent 14.2%, and the repository averages 42 code lines per file. C accounts for 29.0% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 1796 | 500853 | 371295 | 71707 | 57851 |
| C++ | 2074 | 378896 | 313757 | 25459 | 39680 |
| CMake | 12094 | 355860 | 277736 | 26357 | 51767 |
| C Header | 1713 | 198466 | 116819 | 55736 | 25911 |
| ReStructuredText | 2518 | 115417 | 85011 | 0 | 30406 |
| JSON | 276 | 58181 | 58181 | 0 | 0 |
| Autoconf | 835 | 32076 | 24758 | 3627 | 3691 |
| Vim Script | 2 | 5575 | 5535 | 15 | 25 |
| Python | 41 | 6255 | 4890 | 294 | 1071 |
| Happy | 3 | 3677 | 3190 | 0 | 487 |
| C++ Header | 112 | 3432 | 2438 | 376 | 618 |
| Shell | 29 | 2738 | 2359 | 163 | 216 |
Top language (C 29.0%). Generated at .
Kitware/CMake has 1,746,487 total lines, including 1,278,983 code lines, 248,214 comment lines, and 219,290 blank lines.
OctoCounts resolved the public GitHub repository to commit 0894f2a5b267, 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 master at commit 0894f2a5b267 on 2026-10-21T03:13:49.528361061+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for Kitware/CMake on this page — 1,278,983 code lines across 12 languages, counted by tokei.