The largest C++ repositories by lines of code

OctoCounts has measured 557 public GitHub repositories whose primary programming language is C++. mozilla-firefox/firefox is the largest, with 25,035,652 code lines across 141,622 files, counted with tokei on November 24, 2026. The table ranks the 50 largest by code lines; each row links to a report pinned to the commit it counted.

RankRepositoryCode linesTotal linesFilesC++ share
1mozilla-firefox/firefox25,035,65235,820,102141,62223.2%
2ravynsoft/ravynos12,835,60418,979,05049,51536.7%
3llvm/llvm-project8,466,94911,769,32138,08767.2%
4komimoe/Arkari8,064,81111,202,59735,40467.1%
5mongodb/mongo7,689,07110,683,00139,86034.2%
6luobochuanqi/llvm-project7,466,20610,398,02232,42767.6%
7google/filament7,434,72110,546,29227,33042.1%
8GaijinEntertainment/DagorEngine6,701,5378,863,57826,59035.8%
9oceanbase/oceanbase6,445,5967,724,86414,80777.3%
10LibreOffice/core6,371,6108,807,29078,71168.4%
11dariulone/cyberpunk-vr-port5,708,0365,797,6843,1703.5%
12blender/blender5,348,1338,350,22511,94341.4%
13tensorflow/tensorflow5,342,8807,082,96624,67257.2%
14quackscarfmc-eng/ChimeraCraft5,234,4088,149,64511,93241.9%
15OrcaSlicer/OrcaSlicer5,130,5175,908,19420,30813.9%
16Kitware/VTK4,794,4976,936,64819,90542.1%
17bambulab/BambuStudio4,738,3395,448,80810,60214.6%
18openjdk/jfx4,304,0926,585,04323,17638.8%
19godotengine/godot4,238,9605,956,90611,44033.7%
20bluescarni/heyoka4,215,4454,303,77577297.7%
21MaaAssistantArknights/MaaAssistantArknights3,869,0283,959,8326,4262.0%
22meta/hhvm3,741,5265,475,11215,69545.5%
23momusdigital/fnv_decomp3,550,8533,959,7176,46294.5%
24hwCloudDBSDDS/dds3,403,7774,891,50416,35732.1%
25FULU-Foundation/OrcaSlicer-bambulab3,358,1153,903,80915,19415.7%
26klzgrad/naiveproxy3,335,4704,601,00521,14533.6%
27RosettaCommons/rosetta3,115,3436,369,56020,21648.6%
28KDE/krita3,102,2248,039,9078,24315.4%
29haiku/haiku3,082,2984,359,86815,12246.4%
30DeclanRiedel/krita-mini3,081,7257,989,6238,14415.5%
31ring-lang/ring2,954,4364,147,4504,10556.3%
32SunguckLee/Real-MongoDB2,880,4174,185,48614,44333.8%
33o3de/o3de2,722,5093,708,31622,31962.4%
34alibaba/MNN2,703,7483,193,7917,19064.0%
35ClickHouse/ClickHouse2,680,9733,501,01411,94864.4%
36CleverRaven/Cataclysm-DDA2,677,3552,895,4248,48718.2%
37microsoft/onnxruntime2,566,4223,005,9887,57067.3%
38qt/qtbase2,462,0903,624,6308,29239.9%
39swiftlang/swift2,309,1623,350,84015,03139.2%
40ryzom/ryzomcore2,198,8553,291,18410,50163.6%
41OSGeo/gdal2,174,1752,990,6705,29556.6%
42Open-Cascade-SAS/OCCT2,087,1803,036,51214,29775.3%
43Open-Tibia-Tools/remeres-map-editor-redux2,019,4852,067,4996,2464.9%
44ceph/ceph2,013,7632,488,2389,88541.5%
45brave/brave-core1,964,5312,705,40018,06838.5%
46MariaDB/server1,962,0982,919,8845,70846.6%
47ZimengXiong/PancakeSlicer1,961,8652,166,44919,10018.3%
48TwilitRealm/dusklight1,944,2962,316,06319,23746.6%
49v8/v81,767,2072,269,8334,67261.1%
50Snowy-Fluffy/freshGram1,754,9462,290,4265,28572.4%

Ranking rule: a repository belongs to C++ when C++ is its largest programming language by code lines; data and prose formats such as JSON, YAML, TOML and Markdown do not count as a language for this rule. "C++ share" is the share of the repository's code lines written in C++. Code lines exclude comments and blank lines. Every report uses OctoCounts' canonical public options, with tests, docs and generated directories excluded, and reports were generated on different dates.

C++ leaderboard FAQ

Which C++ repository has the most lines of code?

mozilla-firefox/firefox is the largest C++ repository in OctoCounts' index, with 25,035,652 code lines out of 35,820,102 total lines across 141,622 files, counted on November 24, 2026. ravynsoft/ravynos follows with 12,835,604 code lines. Code size is not code quality: a larger count only means more source material.

How does a repository join the C++ leaderboard?

C++ must be its primary programming language: the language with the most code lines in the repository's OctoCounts report, ignoring data and prose formats such as JSON, YAML, TOML and Markdown. The repository then needs a public report with at least 5 files, and it is listed when it is among the 50 largest by code lines.

How many C++ repositories has OctoCounts measured?

557 public GitHub repositories have C++ as their primary programming language in OctoCounts' index. This page lists the 50 largest by code lines; a repository analyzed with custom counting options keeps those counts as a separate saved result.

Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use line counts to gauge the scale of what you would be reading or maintaining, not as a quality signal.

Curated comparisons in C++