# llvm/llvm-project SLOC report

> As of 2026-09-21 (commit 462f83ce4fff), llvm/llvm-project contains 11,442,338 total lines: 8,232,907 code, 1,791,972 comments, 1,417,459 blank, across 36,583 files in 49 languages (top: C++ 67.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

llvm/llvm-project has 8,232,907 source lines of code out of 11,442,338 total lines across 36,583 files, counted from the main ref at commit 462f83ce4fff by the OctoCounts tokei engine on 2026-09-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 462f83ce4fff, 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 72.0% of all lines, comments represent 15.7%, and the repository averages 225 code lines per file. C++ accounts for 67.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 13,537 | 7,374,784 | 5,528,381 | 966,852 | 879,551 |
| C Header | 15,202 | 2,750,621 | 1,712,502 | 632,941 | 405,178 |
| C | 957 | 248,559 | 170,572 | 46,423 | 31,564 |
| C++ Header | 613 | 208,261 | 165,136 | 21,889 | 21,236 |
| Python | 724 | 166,464 | 131,876 | 12,518 | 22,070 |
| CMake | 2,532 | 152,654 | 125,819 | 10,659 | 16,176 |
| Bitbake | 519 | 112,716 | 101,440 | 5,299 | 5,977 |
| Bazel | 126 | 63,641 | 57,384 | 1,479 | 4,778 |
| GNU Style Assembly | 248 | 52,313 | 39,233 | 9,323 | 3,757 |
| HTML | 49 | 38,728 | 37,549 | 428 | 751 |
| Module-Definition | 183 | 39,394 | 34,590 | 0 | 4,804 |
| YAML | 180 | 32,366 | 31,974 | 183 | 209 |

Top language (C++ 67.1%). Generated at 2026-09-21T09:04:40.225156840+00:00. Canonical report: https://octocounts.com/github/llvm/llvm-project

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/llvm/llvm-project/commit/462f83ce4fff5d7fef0e6beb6b8bb2e568a5d13f?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 llvm/llvm-project have?

llvm/llvm-project has 11,442,338 total lines, including 8,232,907 code lines, 1,791,972 comment lines, and 1,417,459 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 462f83ce4fff, 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 462f83ce4fff on 2026-09-21T09:04:40.225156840+00:00.

## Similar repository reports

- [oceanbase/oceanbase](https://octocounts.com/github/oceanbase/oceanbase) — C++, 8,265,001 code lines
- [LibreOffice/core](https://octocounts.com/github/LibreOffice/core) — C++, 6,334,759 code lines
- [mongodb/mongo](https://octocounts.com/github/mongodb/mongo) — C++, 5,888,453 code lines
- [tensorflow/tensorflow](https://octocounts.com/github/tensorflow/tensorflow) — C++, 5,100,331 code lines
- [facebook/hhvm](https://octocounts.com/github/facebook/hhvm) — C++, 4,641,684 code lines
- [godotengine/godot](https://octocounts.com/github/godotengine/godot) — C++, 4,110,867 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)
