Date & Time
Wednesday, April 15, 2026, 5:15 PM - 5:45 PM
Name
Adding Nullability Checking and Annotations to Many Millions of Lines of Code
Session Type
Technical Talk
Abstract/s

At Google, our team has been working on reducing null pointer dereference crashes in a huge and diverse C++ codebase by: (a) adopting the Clang nullability annotations and (b) implementing a flow-sensitive intra-procedural dataflow analysis in ClangTidy that verifies that code adheres to the contracts of the annotations. However, to get the most coverage, we need to introduce the annotations to millions of lines of code. To assist with that, we've developed an inter-TU annotation inference tool, and added inferred annotations through a "large-scale change". This talk introduces how the ClangTidy verification and inference tools work, but also discusses the practical experience and the challenges we faced attempting to infer the annotations in "legacy" C++.

Location Name
Pembroke + Herbert