~/talk

Tips and Tricks for Improving C++ Legacy Codebases

Talkat C++Online 2025 · 2025-02-26..02-28· [software-architecture, c-and-cpp]
slides:none on file

Merging three 20+ year C++ codebases uncovers ~2 million lines of code and drives pragmatic, incremental fixes: enable ASAN and UBSAN first on low-level libraries, build and pin your own clang-format/clang-tidy binaries, and use git hooks that format only changed lines. Catch API drift with clang-tidy diff and turn deprecations into CI failures. Share code via a DL boundary for complex legacy, header-only source for small ML outputs, copy/paste pure functions, or prebuilt static libs as a temporary bridge; TSAN gives noisy false positives.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:06What is legacy code?
  3. 9:10Cautionary tale about changing legacy code
  4. 15:27Improving code with style guides
  5. 18:40Static analysis with sanitizers
  6. 25:49Changing legacy APIs
  7. 32:57Static analysis and deprecations
  8. 37:09Sharing code across teams
  9. 51:39Summary and incremental improvements
  10. 52:00Bonus: Refactoring legacy wrappers
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.