Coverity Scan: llvm

Project Name llvm
Lines of code analyzed 17,946,682
On Coverity Scan since Sep 25, 2013
Last build analyzed 1 day ago
   
Language C/C++
Repository URL https://github.com/llvm/llvm-project
Homepage URL https://llvm.org/
License Apache (Apache License )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: Version

Aug 20, 2026
Last Analyzed
17,946,682
Lines of Code Analyzed
17,662,737
Lines of Code in Selected Components
1.67
Defect Density

Defect changes since previous build dated Aug 12, 2026

84
Newly detected
44
Eliminated

Defects by status for current build

71,838
Total defects
29,474
Outstanding
42,063
Fixed
See how defect density for 'llvm' compares with defect density for other open source projects.  Learn more

Note: Defect density is measured by the number of defects per 1,000 lines of code.


Analysis Metrics per Components

Component Name Pattern Ignore Line of Code Defect density
generated /build-llvm/.* No 0 N/A
TableGen .*TableGen.* No 89,455 2.77
Transforms .*Transforms.* No 454,114 5.95
system /usr/include/.* Yes 269,299 N/A
polly .*/polly/.* No 177,523 2.91
clang .*/clang/.* No 1,706,961 1.28
lldb .*/lldb/.* No 578,925 3.02
lld .*/lld/.* No 83,057 1.63
compiler-rt .*/compiler-rt/.* No 152,704 1.09
clang-tools-extra .*/clang-tools-extra/.* No 145,377 5.26
ignore-LinkAllPasses .*/llvm/include/llvm/LinkAllPasses.h Yes 138 N/A
llvm-target .*/llvm/lib/Target/.* No 10,001,482 0.28
openmp .*/openmp/.* No 190,343 2.01
llvm .*/llvm/.* No 1,426,748 4.74
libunwind .*/libunwind/.* No 15,997 0.13
Mlir .*/mlir/.* No 2,379,883 4.17
flang .*/flang/.* No 0 N/A
bolt .*/bolt/.* No 74,262 13.34
libcxx .*/libcxx/.* No 37 0.00
libcxxabi .*/libcxxabi/.* No 248 0.00
offload .*/offload/.* No 31,442 2.70
googletest .*/third-party/unittest/googletest/.* Yes 14,508 N/A
Other .* No 162,196 0.59

CWE Top 25 defects

ID CWE-Name Number of Defects
131 Incorrect Calculation of Buffer Size 10
190 Integer Overflow or Wraparound 693
676 Use of Potentially Dangerous Function 6
Loading...

Loading...

Loading...

Loading...

Loading...

About Coverity Scan Static Analysis

Find and fix defects in your C/C++, Java, JavaScript or C# open source project for free.

Coverity Scan tests every line of code and potential execution path. The root cause of each defect is clearly explained, making it easy to fix bugs.

Would you like to view the project defects, or help improve its quality by fixing defects?

 Add me to project