Skip to content

Commit

Permalink
[clang] Make lifetimebound and GSL analysis more coherent (#105884)
Browse files Browse the repository at this point in the history
This allows clang to detect more use-after-free bugs (shown in the
#100549).

This relands the remaining change (removing the EnableLifetimeWarnings
flag) in #104906, with a proper
fix for the regression.

Fixes #100549
  • Loading branch information
hokein authored Sep 4, 2024
1 parent 7330c9b commit d94199c
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 96 deletions.
3 changes: 3 additions & 0 deletions clang/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ Improvements to Clang's diagnostics

- Clang now respects lifetimebound attribute for the assignment operator parameter. (#GH106372).

- The lifetimebound and GSL analysis in clang are coherent, allowing clang to
detect more use-after-free bugs. (#GH100549).

Improvements to Clang's time-trace
----------------------------------

Expand Down
Loading

0 comments on commit d94199c

Please sign in to comment.