# Kitware/CMake SLOC report

> Kitware/CMake: 1,297,483 code lines at commit c42dca42c876, counted with tokei-15.0.0 on 2026-11-16. Saved result 08dfe0dac3034a4034ab622d793562fcad597f16c1ec3ed7c594e5c231f78f3a.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 1,812 | 504,227 | 373,743 | 72,361 | 58,123 |
| C++ | 2,102 | 384,183 | 318,393 | 25,771 | 40,019 |
| CMake | 12,428 | 363,559 | 284,009 | 27,001 | 52,549 |
| C Header | 1,732 | 200,167 | 117,847 | 56,132 | 26,188 |
| ReStructuredText | 2,781 | 120,695 | 88,642 | 0 | 32,053 |
| JSON | 278 | 58,436 | 58,436 | 0 | 0 |
| Autoconf | 839 | 32,210 | 24,869 | 3,642 | 3,699 |
| Vim Script | 2 | 5,576 | 5,536 | 15 | 25 |
| Python | 42 | 6,465 | 5,071 | 299 | 1,095 |
| Happy | 4 | 3,696 | 3,204 | 0 | 492 |
| C++ Header | 113 | 3,477 | 2,471 | 380 | 626 |
| Shell | 30 | 2,713 | 2,324 | 170 | 219 |
| YAML | 1 | 2,055 | 2,027 | 5 | 23 |
| CUDA | 129 | 2,366 | 1,950 | 73 | 343 |
| BASH | 50 | 1,997 | 1,530 | 225 | 242 |
| Lex | 7 | 1,315 | 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 | 8,580 | 68,800 | 0 | 63,164 | 5,636 |

Top language: C 28.8%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/Kitware/CMake/commit/c42dca42c876eee8ac1cdb36560c078581113120?reportId=08dfe0dac3034a4034ab622d793562fcad597f16c1ec3ed7c594e5c231f78f3a&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/c42dca42c876eee8ac1cdb36560c078581113120?reportId=08dfe0dac3034a4034ab622d793562fcad597f16c1ec3ed7c594e5c231f78f3a&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,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.

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

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.

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

This OctoCounts report was generated from master at commit c42dca42c876 on November 16, 2026.

## Similar repository reports

- [ctrl-cheeb-del/pokeheartgold](https://octocounts.com/github/ctrl-cheeb-del/pokeheartgold) — C, 1,357,447 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,385,437 code lines
- [apple-oss-distributions/xnu](https://octocounts.com/github/apple-oss-distributions/xnu) — C, 1,411,712 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

## 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)
- [CMake vs Meson](https://octocounts.com/compare/cmake-vs-meson)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
