As of 2026-08-19 (commit d5b4271ac83d), llvm/llvm-project contains 40,978,523 total lines: 18,083,894 code, 18,796,178 comments, 4,098,451 blank, across 156,910 files in 65 languages (top: C++ 39.3%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving llvm/llvm-project to commit d5b4271ac83d, 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.
This is a very large codebase by counted code lines. Code represents 44.1% of all lines, comments represent 45.9%, and the repository averages 115 code lines per file. C++ accounts for 39.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 39138 | 10697961 | 7110795 | 2352712 | 1234454 |
| LLVM | 47094 | 16798005 | 4026911 | 11943380 | 827714 |
| GNU Style Assembly | 13487 | 3763927 | 2098394 | 954483 | 711050 |
| C Header | 17562 | 2904803 | 1848448 | 637598 | 418757 |
| C | 14230 | 3247453 | 1252318 | 1673044 | 322091 |
| Python | 3061 | 439591 | 330114 | 45101 | 64376 |
| C++ Header | 686 | 271610 | 227209 | 22400 | 22001 |
| YAML | 1526 | 220241 | 182627 | 31290 | 6324 |
| FORTRAN Modern | 4045 | 308268 | 165344 | 108174 | 34750 |
| CMake | 2813 | 184297 | 153958 | 11395 | 18944 |
| Bitbake | 563 | 155654 | 143735 | 5519 | 6400 |
| ReStructuredText | 478 | 123204 | 93818 | 0 | 29386 |
Top language (C++ 39.3%). Generated at 2026-08-19T15:52:19.035891231+00:00.
llvm/llvm-project has 40,978,523 total lines, including 18,083,894 code lines, 18,796,178 comment lines, and 4,098,451 blank lines.
OctoCounts resolved the public GitHub repository to commit d5b4271ac83d, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit d5b4271ac83d on 2026-08-19T15:52:19.035891231+00:00.