Coverity Scan: llvm

Project Name llvm
Lines of code analyzed 18,123,050
On Coverity Scan since Sep 25, 2013
Last build analyzed 2 days 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

Sep 05, 2026
Last Analyzed
18,123,050
Lines of Code Analyzed
17,839,081
Lines of Code in Selected Components
1.21
Defect Density

Defect changes since previous build dated Sep 01, 2026

83
Newly detected
6,652
Eliminated

Defects by status for current build

64,231
Total defects
21,616
Outstanding
42,314
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,799 2.75
Transforms .*Transforms.* No 457,403 5.87
system /usr/include/.* Yes 269,323 N/A
polly .*/polly/.* No 177,522 2.91
clang .*/clang/.* No 1,711,868 1.29
lldb .*/lldb/.* No 581,808 3.01
lld .*/lld/.* No 83,399 1.62
compiler-rt .*/compiler-rt/.* No 152,814 1.09
clang-tools-extra .*/clang-tools-extra/.* No 145,846 5.25
ignore-LinkAllPasses .*/llvm/include/llvm/LinkAllPasses.h Yes 138 N/A
llvm-target .*/llvm/lib/Target/.* No 10,145,013 0.28
openmp .*/openmp/.* No 196,997 1.63
llvm .*/llvm/.* No 1,429,987 4.74
libunwind .*/libunwind/.* No 16,006 0.12
Mlir .*/mlir/.* No 2,482,314 0.83
flang .*/flang/.* No 0 N/A
bolt .*/bolt/.* No 74,658 13.30
libcxx .*/libcxx/.* No 37 0.00
libcxxabi .*/libcxxabi/.* No 248 0.00
offload .*/offload/.* No 32,290 2.60
googletest .*/third-party/unittest/googletest/.* Yes 14,508 N/A
Other .* No 163,849 0.59

CWE Top 25 defects

ID CWE-Name Number of Defects
131 Incorrect Calculation of Buffer Size 10
190 Integer Overflow or Wraparound 695
676 Use of Potentially Dangerous Function 5
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