~/lightning

Lightning Talk: find-move-candidates in Cpp

Lightningat CppCon 2022 · 2022-09-11..09-16· [developer-experience]
links:none on file
slides:none on file

A clang-based tool built on clang meta tool and lib tooling scans a compilation database and flags or inserts std::move suggestions where the last use of a variable is a copy, reducing unnecessary copies. It applies fixes when it proves safety: last use dominates and the type is safe to move (trivially destructible or composed of safe containers/optionals), and it avoids risky types (e.g., moving a shared_ptr to a unique_lock that would release a mutex).

AI-written summary · about

  1. 0:00Introduction
  2. 1:01Move Semantics
  3. 2:43When
~/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.