Skip to content

Commit d94199c

Browse files
authored
[clang] Make lifetimebound and GSL analysis more coherent (#105884)
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
1 parent 7330c9b commit d94199c

File tree

3 files changed

+87
-96
lines changed

3 files changed

+87
-96
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ Improvements to Clang's diagnostics
270270

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

273+
- The lifetimebound and GSL analysis in clang are coherent, allowing clang to
274+
detect more use-after-free bugs. (#GH100549).
275+
273276
Improvements to Clang's time-trace
274277
----------------------------------
275278

0 commit comments

Comments
 (0)