~/talk

How to Refactor Millions of Line of Code Without Alienating Colleagues

Talkat CppCon 2019 · 2019-09-15..09-20· [developer-experience]
links:none on file
slides:none on file

Shows how to use Clang-Tidy extension API to write custom AST matchers and automated fix‑its, with concrete wins and limits: removing a dead parameter across 40,000 files with generated diffs, converting int return codes to an enum class via an incremental multi-step refactoring, and automating CI runs. Explains real pitfalls—macros, lambdas, overloaded &&, header conflicts—and practical fixes: emit XML replacements, deduplicate patches, run rules on diffs, and prefer staged, reviewable change sets rather than one massive commit.

AI-written summary · about

~/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.