Announcing the Lifetime Safety Breakout Group (original) (raw)
Following up on the recent LLVM Memory Safety WG meeting, we’re setting up a new breakout group focused on Lifetime Safety in Clang.
There’s growing interest in this area, and we think a dedicated forum will help coordinate ongoing work, discuss the roadmap, and involve more contributors.
Lifetime Analysis: Current Status
For those not already familiar, we’re working on a new intra-procedural lifetime analysis in Clang to catch issues like use-after-scope or returning-stack-address. The analysis is alias-based and draws inspiration from Rust’s borrow checker (specifically, Polonius). More details in the RFC.
The initial implementation targets an intra-procedural analysis for C++ raw pointers. This keeps the surface area small while we iterate. Over time, we aim to enable this analysis by default in Clang, with both “permissive” and “strict” modes to balance noise and coverage.
Goals of the Breakout Group
This breakout group will be a space to:
- Coordinate between current contributors (from Google and Apple) and others interested in getting involved.
- Discuss design, milestones, and direction for the analysis.
- Invite contributions, including implementation help, code reviews, and early feedback from users who are willing to try the analysis and report issues.
- Explore related efforts, such as lifetime annotations in CSA.
Who’s Involved
The following folks have expressed interest in the initial meetings:
- Dmytro Hrybenko @gribozavr dmitrig@google.com
- Gábor Horváth @Xazax-hun gaborh@apple.com
- Utkarsh Saxena @usx95 usx@google.com
- Yitzhak Mandelbaum @ymand yitzhakm@google.com
We welcome anyone from the LLVM community who’s interested in joining.
Meetings will be announced here and also added to the LLVM public calendar.
If you’d like to be involved, feel free to comment here or reach out directly.
usx95 July 18, 2025, 8:37am 2
To kick this off, we will meet on 2025-07-23T12:30:00Z→2025-07-23T13:30:00Z
Video call link: https://meet.google.com/hat-urfk-pgs
Meeting notes: link
usx95 August 5, 2025, 12:36pm 3
Last time, we decided on a 2w cadence for this meeting. We meet again tomorrow same time (2:30PM - 3:30PM CEST). Meetings are added to the LLVM public calendar as well.
Please add things to the agenda if you would like to discuss things.
harlowja August 12, 2025, 4:18pm 4
I’d like to join (but am unsure) how much I can help; I’ll try to show up to the next meeting though!
Especially since I think what the WG is doing is critical work and it’s really great to have folks trying to make the situation better.
usx95 September 2, 2025, 10:32am 5
We meet again tomorrow 3 September (2:30PM - 3:30PM CEST). You can find the event on LLVM public calendar.
Please add things to the agenda if you would like to discuss things.
Video call link: https://meet.google.com/hat-urfk-pgs
usx95 September 16, 2025, 12:18pm 6
We meet again tomorrow 16 September (2:30PM - 3:30PM CEST). You can find the event on LLVM public calendar.
Please add things to the agenda if you would like to discuss things.
Video call link: https://meet.google.com/hat-urfk-pgs
usx95 September 30, 2025, 7:14pm 7
We meet again tomorrow 30 September (2:30PM - 3:30PM CEST). You can find the event on LLVM public calendar.
Please add things to the agenda if you would like to discuss things.
Video call link: https://meet.google.com/hat-urfk-pgs
usx95 October 14, 2025, 10:54am 8
We meet again tomorrow 15 October (2:30PM - 3:30PM CEST).
Please add things to the agenda if you would like to discuss things.
Video call link: https://meet.google.com/hat-urfk-pgs
usx95 November 11, 2025, 1:20pm 9
We meet again tomorrow 12 Nov (2:30PM - 3:30PM CEST).
Please add things to the agenda if you would like to discuss things.
Video call link: https://meet.google.com/hat-urfk-pgs
usx95 December 9, 2025, 9:06am 10
We meet again tomorrow 10 Dec (2:30PM - 3:30PM CEST).
Please add things to the agenda if you would like to discuss things.
Video call link: https://meet.google.com/hat-urfk-pgs
We will likely skip the next iteration on 24 Dec and this will be our last meeting this year before the holidays.