# llvm/llvm-project SLOC report

> llvm/llvm-project: 8,330,667 code lines at commit 4babb62699e4, counted with tokei-14.0.0 on 2026-10-21. Saved result 4c7ddd75f416d0a5a433781f729c93d9a714736cd19b4fea2a04eeb4bb58321e.

llvm/llvm-project has 8,330,667 source lines of code out of 11,581,529 total lines across 37,141 files, counted from the main ref at commit 4babb62699e4 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 llvm/llvm-project to commit 4babb62699e4, 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 71.9% of all lines, comments represent 15.7%, and the repository averages 224 code lines per file. C++ accounts for 67.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 13,768 | 7,470,860 | 5,601,325 | 981,228 | 888,307 |
| C Header | 15,471 | 2,777,472 | 1,724,876 | 643,660 | 408,936 |
| C | 958 | 249,947 | 171,172 | 47,023 | 31,752 |
| C++ Header | 619 | 208,852 | 165,473 | 22,047 | 21,332 |
| Python | 727 | 167,806 | 132,986 | 12,602 | 22,218 |
| CMake | 2,559 | 157,196 | 129,694 | 10,947 | 16,555 |
| Bitbake | 522 | 115,819 | 104,546 | 5,309 | 5,964 |
| Bazel | 128 | 65,031 | 58,630 | 1,514 | 4,887 |
| GNU Style Assembly | 257 | 53,101 | 39,829 | 9,487 | 3,785 |
| HTML | 49 | 38,729 | 37,550 | 428 | 751 |
| Module-Definition | 186 | 39,845 | 35,013 | 0 | 4,832 |
| YAML | 183 | 33,093 | 32,710 | 173 | 210 |
| JSON | 59 | 18,821 | 18,812 | 0 | 9 |
| OpenCL | 515 | 14,676 | 12,317 | 52 | 2,307 |
| Assembly | 5 | 10,199 | 9,522 | 406 | 271 |
| Objective-C++ | 7 | 9,300 | 7,235 | 924 | 1,141 |
| SWIG | 136 | 6,941 | 6,313 | 5 | 623 |
| FORTRAN Modern | 18 | 7,187 | 5,930 | 460 | 797 |
| JavaScript | 26 | 7,051 | 5,428 | 1,130 | 493 |
| Autoconf | 270 | 6,273 | 4,984 | 682 | 607 |
| Shell | 84 | 5,819 | 4,368 | 738 | 713 |
| AWK | 2 | 3,739 | 3,523 | 102 | 114 |
| OCaml | 22 | 6,038 | 3,224 | 1,835 | 979 |
| Perl | 8 | 3,093 | 2,498 | 384 | 211 |
| TypeScript | 31 | 3,247 | 2,437 | 508 | 302 |
| CSS | 16 | 2,614 | 2,197 | 76 | 341 |
| BASH | 5 | 1,564 | 1,197 | 218 | 149 |
| Emacs Lisp | 11 | 1,662 | 1,161 | 313 | 188 |
| Mustache | 15 | 1,009 | 923 | 47 | 39 |
| Scheme | 4 | 850 | 706 | 22 | 122 |
| Vim Script | 16 | 783 | 675 | 63 | 45 |
| Batch | 26 | 754 | 565 | 125 | 64 |
| XML | 6 | 503 | 490 | 7 | 6 |
| Dockerfile | 9 | 585 | 345 | 157 | 83 |
| Jupyter Notebooks | 3 | 630 | 324 | 219 | 87 |
| Protocol Buffers | 5 | 381 | 251 | 72 | 58 |
| ReStructuredText | 6 | 319 | 234 | 0 | 85 |
| TOML | 8 | 301 | 226 | 27 | 48 |
| Forge Config | 26 | 293 | 208 | 34 | 51 |
| Scala | 21 | 207 | 207 | 0 | 0 |
| Makefile | 10 | 308 | 180 | 64 | 64 |
| Objective-C | 7 | 209 | 131 | 31 | 47 |
| Nix | 1 | 152 | 106 | 44 | 2 |
| LLVM | 1 | 83 | 74 | 2 | 7 |
| GDB Script | 2 | 278 | 47 | 188 | 43 |
| D | 1 | 18 | 16 | 0 | 2 |
| INI | 2 | 12 | 9 | 2 | 1 |
| Markdown | 106 | 11,682 | 0 | 8,667 | 3,015 |
| Plain Text | 224 | 76,197 | 0 | 67,799 | 8,398 |

Top language (C++ 67.2%). Generated at 2026-10-21T02:44:27.547448361Z. Canonical report: https://octocounts.com/github/llvm/llvm-project/commit/4babb62699e414a26bff31c019caf38c952cbcf0?reportId=4c7ddd75f416d0a5a433781f729c93d9a714736cd19b4fea2a04eeb4bb58321e&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/llvm/llvm-project/commit/4babb62699e414a26bff31c019caf38c952cbcf0?reportId=4c7ddd75f416d0a5a433781f729c93d9a714736cd19b4fea2a04eeb4bb58321e&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 llvm/llvm-project have?

llvm/llvm-project has 11,581,529 total lines, including 8,330,667 code lines, 1,819,821 comment lines, and 1,431,041 blank lines.

### How was the llvm/llvm-project line count measured?

OctoCounts resolved the public GitHub repository to commit 4babb62699e4, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for llvm/llvm-project?

This OctoCounts report was generated from main at commit 4babb62699e4 on 2026-10-21T02:44:27.547448361Z.

## Similar repository reports

- [mongodb/mongo](https://octocounts.com/github/mongodb/mongo) — C++, 7,575,175 code lines
- [GaijinEntertainment/DagorEngine](https://octocounts.com/github/GaijinEntertainment/DagorEngine) — C++, 6,667,007 code lines
- [oceanbase/oceanbase](https://octocounts.com/github/oceanbase/oceanbase) — C++, 6,382,583 code lines
- [LibreOffice/core](https://octocounts.com/github/LibreOffice/core) — C++, 6,348,402 code lines
- [tensorflow/tensorflow](https://octocounts.com/github/tensorflow/tensorflow) — C++, 5,160,365 code lines
- [godotengine/godot](https://octocounts.com/github/godotengine/godot) — C++, 4,126,326 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [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)
