~/talk

Using Clang LibASTMatchers for Compliance in Codebases

Talkat CppCon 2021 · on Thursday, 2021-10-28· at 15:15· online· [developer-experience]
links:none on file
slides:none on file

Uses Clang LibASTMatchers and libtooling to find concrete instances where alarms are instantiated, distinguishing string literals versus config-member expressions, and emits structured JSON output for postprocessing. Prototype compiles to ~300–400 MB in debug and ~30 MB in release, processes a file in ~2–3 seconds and runs parallel in CI to gate builds. Handles tricky cases with an explicit override for runtime-only factories and is authorable via clang-query into standalone matchers.

AI-written summary · about

  1. 0:00Start
  2. 2:40Failing Compliance
  3. 8:49Device Architecture
  4. 12:29Manual Process
  5. 13:01Regex
  6. 15:23Clang Tooling
  7. 16:47What is Clang Lib Tooling
  8. 17:32Clang AST
  9. 42:37Wrapping up the tool
~/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.