~/talk

Lifetime analysis for everyone

Talkat CppCon 2019 · 2019-09-15..09-20· [c-and-cpp]
links:none on file
links:none on file
slides:none on file

Clang implements Herb Sutter–inspired lifetime checks that run as fast, statement-local diagnostics and ship as clang 10 default, with the same rules available in MSVC. The checks track owners vs non-owning pointers (string_view, span, iterators), flag returns or local initializations that point into temporaries, and found ~20 lifetime-fix commits in LLVM with about half preventable; on tested projects the warnings produce no false positives. A more powerful -Wlifetime experimental flow‑sensitive branch adds annotations and inference for inter-statement bugs.

AI-written summary · about

  1. 0:00Intro
  2. 0:32Object lifetimes
  3. 2:42String lifetimes
  4. 4:34Subobjects
  5. 6:13Rangebased
  6. 7:26Ternary operators
  7. 9:42Summary
  8. 11:01Do we make mistakes
  9. 16:53Practice
  10. 19:42Sanitizer
  11. 23:13Behind the curtain
  12. 36:49Flow sensitive analysis
  13. 40:42Owner invalidation
  14. 43:20New features
  15. 45:34Can the analysis read my mind
  16. 48:38Conclusion
  17. 50:08Statement local analysis
  18. 52:26False positives
  19. 55:10Release branch
  20. 56:51Wrap up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.