~/talk

Customising clang tidy to modernise your legacy C++ code

Talkat Meeting C++ 2024 · 2024-11-14..11-16· [developer-experience, testing]
links:none on file
slides:none on file

Custom clang‑tidy checks convert legacy printf wrappers to fmt::printf then fmt::print and prepare for C++23 std::print, changing about 7,500 lines across ~440 files. Work includes a modernize-use-std-print converter, tests (~1,500 lines of lit tests), handling format quirks (width/precision, integer/sign casts), fixing a valgrind-only crash with git bisect, and landing changes upstream so the checks run as part of clang‑tidy and automate safe bulk rewrites.

AI-written summary · about

  1. 0:00Modernizing legacy C++
  2. 10:58What is Clang Tidy
  3. 15:11Extending Clang Tidy
  4. 21:52Testing custom checks
  5. 27:43printf to C++20 format
  6. 35:28Other printf-like functions
  7. 39:32Limitations and future
  8. 41:20Contributing to Clang Tidy
  9. 43:28Q&A
~/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.