dsanders11

#53032: build: enable Clang Static Analyzer clang-tidy checks

Merged
Created: Aug 19, 2026, 6:47:52 PM
Merged: Aug 20, 2026, 1:12:21 PM
5 comments
Target: main

Description of Change

This enables a bunch of clang-analyzer-* (static analysis) checks in clang-tidy and fixes the errors that popped out. The fixes are mostly separated out by commit with the check name, but some fixes went into the original commit as they were trivial or // NOLINT.

Other fixes from these checks were spun off into their own PRs when feasible and test coverage for the underlying issue was added when possible:

Checklist

Release Notes

Notes: none

Backports

43-x-y
In-flight
PR Number
#
Waiting to be merged
44-x-y
Merged
PR Number
#53044
Merged At
Aug 20, 2026, 4:35:36 PM
Released In
Not yet
Release Date
Not yet

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron