~/talk

Mechanical C++ Refactoring in the Present and in the Future

Talkat NDC Oslo 2019 · 2019-06-17..06-21· [c-and-cpp, developer-experience]
links:none on file
slides:none on file

Mechanical refactoring uses clang-tidy checks and custom clang AST matchers discovered with clang-query to automate large-scale C++ edits, hitting roughly 80–90% of cases before manual fixes for templates or macros. A JavaScript-based GUI (qapla) runs matchers, shows AST nodes and source locations, batches replacements into a replacement database, and applies them in parallel; it compiles against clang’s virtual file system so iteration finds and fixes failures. Run time matches a full compile unless you use PCH, unity builds or a build-distributor like icecream.

AI-written summary · about

  1. 0:00Start
  2. 13:05make your code awesome by renaming all of your functions
  3. 15:10creating a binding for every function declaration in the code
  4. 20:44specify the type as a string
  5. 28:10creating account id check
  6. 41:30reuse fragments of ast matchers
  7. 47:37create insertion at the insertion point
  8. 50:12run your tool on particular parts of your source code
~/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.