# Kitware/CMake SLOC report

> As of 2026-09-17 (commit 833d9466d797), Kitware/CMake contains 1,715,528 total lines: 1,254,658 code, 244,757 comments, 216,113 blank, across 29,696 files in 59 languages (top: C 29.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

Kitware/CMake has 1,254,658 source lines of code out of 1,715,528 total lines across 29,696 files, counted from the 833d9466d797619d488448ccb0be2428a77a4aac ref at commit 833d9466d797 by the OctoCounts tokei engine on 2026-09-17. 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 833d9466d797, 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.1% of all lines, comments represent 14.3%, and the repository averages 42 code lines per file. C accounts for 29.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 1,774 | 498,326 | 369,468 | 71,147 | 57,711 |
| C++ | 2,017 | 371,417 | 306,723 | 25,289 | 39,405 |
| CMake | 11,580 | 342,702 | 266,872 | 25,381 | 50,449 |
| C Header | 1,683 | 196,620 | 115,761 | 55,229 | 25,630 |
| ReStructuredText | 2,496 | 111,950 | 82,549 | 0 | 29,401 |
| JSON | 276 | 58,175 | 58,175 | 0 | 0 |
| Autoconf | 823 | 31,261 | 24,119 | 3,521 | 3,621 |
| Vim Script | 2 | 5,569 | 5,529 | 15 | 25 |
| Python | 41 | 6,252 | 4,887 | 294 | 1,071 |
| Happy | 3 | 3,677 | 3,190 | 0 | 487 |
| C++ Header | 112 | 3,432 | 2,438 | 376 | 618 |
| Shell | 28 | 2,730 | 2,352 | 162 | 216 |

Top language (C 29.4%). Generated at 2026-09-17T04:22:49.251899166+00:00. Canonical report: https://octocounts.com/github/Kitware/CMake

## Reproduce this report

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

## Report FAQ

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

Kitware/CMake has 1,715,528 total lines, including 1,254,658 code lines, 244,757 comment lines, and 216,113 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 833d9466d797, 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 833d9466d797619d488448ccb0be2428a77a4aac at commit 833d9466d797 on 2026-09-17T04:22:49.251899166+00:00.

## Similar repository reports

- [kitware/cmake](https://octocounts.com/github/kitware/cmake) — C, 1,253,537 code lines
- [apple-oss-distributions/xnu](https://octocounts.com/github/apple-oss-distributions/xnu) — C, 1,390,343 code lines
- [apple/darwin-xnu](https://octocounts.com/github/apple/darwin-xnu) — C, 1,106,636 code lines
- [ChefKissInc/Inferno](https://octocounts.com/github/ChefKissInc/Inferno) — C, 1,055,014 code lines
- [systemd/systemd](https://octocounts.com/github/systemd/systemd) — C, 980,635 code lines
- [riscvarchive/riscv-qemu](https://octocounts.com/github/riscvarchive/riscv-qemu) — C, 910,920 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)
