# Kitware/CMake SLOC report

> Kitware/CMake: 1,300,486 code lines at commit 4207edd6abca, counted with tokei-15.0.0 on 2026-11-24. Saved result c5162a2aba22e0b82f82065ba3bf52fccd40c6768d7d83803f57bb077ee0b105.

Source: [Kitware/CMake on GitHub](https://github.com/Kitware/CMake) · counted commit [4207edd6abca](https://github.com/Kitware/CMake/tree/4207edd6abcaa33719037ec1095d7767f4c684b4)

Kitware/CMake has 1,300,486 source lines of code out of 1,774,919 total lines across 31,504 files, counted with tokei from the master ref at commit 4207edd6abca on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving Kitware/CMake to commit 4207edd6abca, 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,819 | 504,456 | 373,918 | 72,373 | 58,165 |
| C++ | 2,106 | 385,191 | 319,205 | 25,928 | 40,058 |
| CMake | 12,482 | 365,418 | 285,500 | 27,240 | 52,678 |
| C Header | 1,733 | 200,183 | 117,859 | 56,131 | 26,193 |
| ReStructuredText | 2,809 | 121,160 | 89,013 | 0 | 32,147 |
| JSON | 278 | 58,608 | 58,608 | 0 | 0 |
| Autoconf | 841 | 32,302 | 24,946 | 3,652 | 3,704 |
| Vim Script | 2 | 5,576 | 5,536 | 15 | 25 |
| Python | 43 | 6,538 | 5,131 | 300 | 1,107 |
| Happy | 4 | 3,696 | 3,204 | 0 | 492 |
| Shell | 30 | 2,712 | 2,323 | 170 | 219 |
| C++ Header | 113 | 3,280 | 2,287 | 381 | 612 |
| 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 | 92 | 972 | 777 | 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 | 30 | 111 | 98 | 0 | 13 |
| C++ Module | 15 | 114 | 94 | 0 | 20 |
| HTML | 4 | 95 | 90 | 0 | 5 |
| PowerShell | 2 | 127 | 85 | 23 | 19 |
| JavaScript | 2 | 90 | 83 | 0 | 7 |
| 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,597 | 68,983 | 0 | 63,347 | 5,636 |

Top language: C 28.8%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/Kitware/CMake/commit/4207edd6abcaa33719037ec1095d7767f4c684b4?reportId=c5162a2aba22e0b82f82065ba3bf52fccd40c6768d7d83803f57bb077ee0b105&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/4207edd6abcaa33719037ec1095d7767f4c684b4?reportId=c5162a2aba22e0b82f82065ba3bf52fccd40c6768d7d83803f57bb077ee0b105&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,300,486 lines of code, plus 251,438 comment lines and 222,995 blank lines, for 1,774,919 total lines at commit 4207edd6abca on November 24, 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 4207edd6abca, 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 4207edd6abca on November 24, 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,386,032 code lines
- [apple-oss-distributions/xnu](https://octocounts.com/github/apple-oss-distributions/xnu) — C, 1,411,712 code lines
- [cuesta4/GOW3rehooked](https://octocounts.com/github/cuesta4/GOW3rehooked) — C, 1,182,238 code lines
- [apple/darwin-xnu](https://octocounts.com/github/apple/darwin-xnu) — C, 1,170,923 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [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)
