llvm/llvm-project SLOC report

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
C++3913810697961711079523527121234454
LLVM4709416798005402691111943380827714
GNU Style Assembly1348737639272098394954483711050
C Header1756229048031848448637598418757
C14230324745312523181673044322091
Python30614395913301144510164376
C++ Header6862716102272092240022001
YAML1526220241182627312906324
FORTRAN Modern404530826816534410817434750
CMake28131842971539581139518944
Bitbake56315565414373555196400
ReStructuredText47812320493818029386

Top language (C++ 39.3%). Generated at 2026-08-19T15:52:19.035891231+00:00.

Report FAQ

How many lines of code does llvm/llvm-project have?

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.

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

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.

What commit was counted for llvm/llvm-project?

This OctoCounts report was generated from main at commit d5b4271ac83d on 2026-08-19T15:52:19.035891231+00:00.