# Kitware/CMake SLOC report

> Kitware/CMake: 1,278,983 code lines at commit 0894f2a5b267, counted with tokei-14.0.0 on 2026-10-21. Saved result 89a86f53906623f063a4dbe00b6e93270690d596f7843ede3b0023fc536fdfe6.

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.

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.

## Repository size insights

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 | 1,796 | 500,853 | 371,295 | 71,707 | 57,851 |
| C++ | 2,074 | 378,896 | 313,757 | 25,459 | 39,680 |
| CMake | 12,094 | 355,860 | 277,736 | 26,357 | 51,767 |
| C Header | 1,713 | 198,466 | 116,819 | 55,736 | 25,911 |
| ReStructuredText | 2,518 | 115,417 | 85,011 | 0 | 30,406 |
| JSON | 276 | 58,181 | 58,181 | 0 | 0 |
| Autoconf | 835 | 32,076 | 24,758 | 3,627 | 3,691 |
| Vim Script | 2 | 5,575 | 5,535 | 15 | 25 |
| Python | 41 | 6,255 | 4,890 | 294 | 1,071 |
| Happy | 3 | 3,677 | 3,190 | 0 | 487 |
| C++ Header | 112 | 3,432 | 2,438 | 376 | 618 |
| Shell | 29 | 2,738 | 2,359 | 163 | 216 |
| YAML | 1 | 2,055 | 2,027 | 5 | 23 |
| CUDA | 129 | 2,366 | 1,950 | 73 | 343 |
| BASH | 50 | 2,001 | 1,533 | 225 | 243 |
| Lex | 6 | 1,307 | 947 | 177 | 183 |
| FORTRAN Modern | 89 | 954 | 759 | 37 | 158 |
| Bitbake | 2 | 445 | 405 | 24 | 16 |
| Dockerfile | 7 | 463 | 387 | 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 |
| Batch | 11 | 189 | 160 | 0 | 29 |
| 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 |
| HTML | 4 | 95 | 90 | 0 | 5 |
| C++ Module | 14 | 108 | 89 | 0 | 19 |
| JavaScript | 2 | 90 | 83 | 0 | 7 |
| PowerShell | 2 | 123 | 81 | 23 | 19 |
| Module-Definition | 19 | 78 | 78 | 0 | 0 |
| 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 | 8,497 | 68,180 | 0 | 62,579 | 5,601 |

Top language (C 29.0%). Generated at 2026-10-21T03:13:49.528361061Z. Canonical report: https://octocounts.com/github/Kitware/CMake/commit/0894f2a5b267009c12304287b729ddfb2a82b5d2?reportId=89a86f53906623f063a4dbe00b6e93270690d596f7843ede3b0023fc536fdfe6&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/Kitware/CMake/commit/0894f2a5b267009c12304287b729ddfb2a82b5d2?reportId=89a86f53906623f063a4dbe00b6e93270690d596f7843ede3b0023fc536fdfe6&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does Kitware/CMake have?

Kitware/CMake has 1,746,487 total lines, including 1,278,983 code lines, 248,214 comment lines, and 219,290 blank lines.

### How was the Kitware/CMake line count measured?

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.

### What commit was counted for Kitware/CMake?

This OctoCounts report was generated from master at commit 0894f2a5b267 on 2026-10-21T03:13:49.528361061Z.

## Similar repository reports

- [ctrl-cheeb-del/pokeheartgold](https://octocounts.com/github/ctrl-cheeb-del/pokeheartgold) — C, 1,358,770 code lines
- [SanjeevBashyal/OpenFOAM](https://octocounts.com/github/SanjeevBashyal/OpenFOAM) — C, 1,371,094 code lines
- [qemu/qemu](https://octocounts.com/github/qemu/qemu) — C, 1,376,572 code lines
- [apple/darwin-xnu](https://octocounts.com/github/apple/darwin-xnu) — C, 1,170,923 code lines
- [xeonliu/FFmpeg-AVSPlus](https://octocounts.com/github/xeonliu/FFmpeg-AVSPlus) — C, 1,504,588 code lines
- [ChefKissInc/Inferno](https://octocounts.com/github/ChefKissInc/Inferno) — C, 1,055,094 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
