Kitware/CMake has 1,297,483 source lines of code out of 1,771,002 total lines across 31,385 files, counted with tokei from the master ref at commit c42dca42c876 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
Kitware/CMake: 1,297,483 code lines at commit c42dca42c876, counted with tokei-15.0.0 on 2026-11-16. Saved result 08dfe0dac3034a4034ab622d793562fcad597f16c1ec3ed7c594e5c231f78f3a.
OctoCounts produced this report by resolving Kitware/CMake to commit c42dca42c876, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a very large codebase by counted code lines. Code represents 73.3% of all lines, comments represent 14.2%, and the repository averages 41 code lines per file. C accounts for 28.8% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 1812 | 504227 | 373743 | 72361 | 58123 |
| C++ | 2102 | 384183 | 318393 | 25771 | 40019 |
| CMake | 12428 | 363559 | 284009 | 27001 | 52549 |
| C Header | 1732 | 200167 | 117847 | 56132 | 26188 |
| ReStructuredText | 2781 | 120695 | 88642 | 0 | 32053 |
| JSON | 278 | 58436 | 58436 | 0 | 0 |
| Autoconf | 839 | 32210 | 24869 | 3642 | 3699 |
| Vim Script | 2 | 5576 | 5536 | 15 | 25 |
| Python | 42 | 6465 | 5071 | 299 | 1095 |
| Happy | 4 | 3696 | 3204 | 0 | 492 |
| C++ Header | 113 | 3477 | 2471 | 380 | 626 |
| Shell | 30 | 2713 | 2324 | 170 | 219 |
| YAML | 1 | 2055 | 2027 | 5 | 23 |
| CUDA | 129 | 2366 | 1950 | 73 | 343 |
| BASH | 50 | 1997 | 1530 | 225 | 242 |
| Lex | 7 | 1315 | 952 | 177 | 186 |
| FORTRAN Modern | 90 | 959 | 764 | 37 | 158 |
| Bitbake | 2 | 445 | 405 | 24 | 16 |
| Dockerfile | 7 | 465 | 389 | 42 | 34 |
| Emacs Lisp | 1 | 522 | 375 | 86 | 61 |
| Java | 28 | 457 | 358 | 36 | 63 |
| Objective-C | 36 | 622 | 358 | 132 | 132 |
| GNU Style Assembly | 6 | 655 | 354 | 240 | 61 |
| C# | 27 | 374 | 305 | 35 | 34 |
| MSBuild | 7 | 313 | 298 | 12 | 3 |
| FORTRAN Legacy | 36 | 295 | 260 | 14 | 21 |
| XML | 15 | 264 | 258 | 4 | 2 |
| CSS | 1 | 332 | 248 | 32 | 52 |
| Visual Studio Project | 1 | 216 | 216 | 0 | 0 |
| Perl | 3 | 306 | 213 | 38 | 55 |
| Rust | 22 | 227 | 190 | 13 | 24 |
| Assembly | 16 | 194 | 174 | 1 | 19 |
| Pascal | 3 | 167 | 128 | 23 | 16 |
| Objective-C++ | 16 | 142 | 121 | 2 | 19 |
| .NET Resource | 2 | 178 | 119 | 59 | 0 |
| Swift | 27 | 110 | 97 | 0 | 13 |
| C++ Module | 15 | 114 | 94 | 0 | 20 |
| HTML | 4 | 95 | 90 | 0 | 5 |
| JavaScript | 2 | 90 | 83 | 0 | 7 |
| PowerShell | 2 | 123 | 81 | 23 | 19 |
| Module-Definition | 19 | 78 | 78 | 0 | 0 |
| Batch | 10 | 89 | 70 | 0 | 19 |
| SWIG | 12 | 84 | 57 | 9 | 18 |
| TCL | 2 | 118 | 55 | 27 | 36 |
| D | 13 | 49 | 46 | 0 | 3 |
| HLSL | 4 | 55 | 42 | 2 | 11 |
| XAML | 4 | 42 | 38 | 0 | 4 |
| M4 | 1 | 68 | 30 | 33 | 5 |
| Ruby | 1 | 49 | 22 | 13 | 14 |
| Visual Studio Solution | 1 | 21 | 21 | 0 | 0 |
| Protocol Buffers | 4 | 25 | 19 | 0 | 6 |
| R | 1 | 18 | 14 | 1 | 3 |
| Xcode Config | 4 | 4 | 4 | 0 | 0 |
| Makefile | 1 | 2 | 2 | 0 | 0 |
| Lua | 1 | 1 | 1 | 0 | 0 |
| Prolog | 1 | 1 | 1 | 0 | 0 |
| TeX | 1 | 1 | 1 | 0 | 0 |
| Markdown | 6 | 695 | 0 | 483 | 212 |
| Plain Text | 8580 | 68800 | 0 | 63164 | 5636 |
Top language: C 28.8%. Generated on .
Kitware/CMake: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
Kitware/CMake has 1,297,483 lines of code, plus 250,836 comment lines and 222,683 blank lines, for 1,771,002 total lines at commit c42dca42c876 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit c42dca42c876, 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 c42dca42c876 on November 16, 2026.
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,297,483 code lines across 59 languages, counted by tokei.