# llvm/llvm-project SLOC report

> As of 2026-09-16 (commit 6f6bbfb5e63e), llvm/llvm-project contains 11,420,548 total lines: 8,218,225 code, 1,787,239 comments, 1,415,084 blank, across 36,479 files in 49 languages (top: C++ 67.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

llvm/llvm-project has 8,218,225 source lines of code out of 11,420,548 total lines across 36,479 files, counted from the 6f6bbfb5e63e8cf4f051c7e5f773c41fe5ddbf19 ref at commit 6f6bbfb5e63e by the OctoCounts tokei engine on 2026-09-16. 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 6f6bbfb5e63e, 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.6%, and the repository averages 225 code lines per file. C++ accounts for 67.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 13,496 | 7,362,861 | 5,519,716 | 964,803 | 878,342 |
| C Header | 15,148 | 2,743,492 | 1,708,445 | 630,805 | 404,242 |
| C | 957 | 248,285 | 170,483 | 46,283 | 31,519 |
| C++ Header | 613 | 208,148 | 165,105 | 21,815 | 21,228 |
| Python | 723 | 166,244 | 131,712 | 12,486 | 22,046 |
| CMake | 2,526 | 151,855 | 125,087 | 10,657 | 16,111 |
| Bitbake | 518 | 112,078 | 100,802 | 5,299 | 5,977 |
| Bazel | 126 | 63,388 | 57,162 | 1,467 | 4,759 |
| GNU Style Assembly | 248 | 52,313 | 39,233 | 9,323 | 3,757 |
| HTML | 49 | 38,728 | 37,646 | 380 | 702 |
| Module-Definition | 183 | 39,389 | 34,586 | 0 | 4,803 |
| YAML | 179 | 32,208 | 31,816 | 183 | 209 |

Top language (C++ 67.2%). Generated at 2026-09-16T00:54:15.073056661+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/6f6bbfb5e63e8cf4f051c7e5f773c41fe5ddbf19?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,420,548 total lines, including 8,218,225 code lines, 1,787,239 comment lines, and 1,415,084 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 6f6bbfb5e63e, 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 6f6bbfb5e63e8cf4f051c7e5f773c41fe5ddbf19 at commit 6f6bbfb5e63e on 2026-09-16T00:54:15.073056661+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,095,080 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,443 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)
