~/talk

Using the Clang developer tools

Talkat Linaro Connect Hong Kong 2018 · 2018-03-19..03-23· [developer-experience]
links:none on file
slides:none on file

Shows how to use clang tools beyond the compiler: clang-format for consistent 80-column layouts, clang-tidy for style and automated modernize fixes, and scan-build (the static analyzer) which reports concrete issues like uninitialized-value traces. Explains the Compilation Database JSON workflow needed for accurate analysis, contrasts libclang Python bindings (easy but memory-limited at scale) with C++ libTooling/AST matchers (more powerful but less stable), and describes a Python tool built to histogram function-parameter counts — it works but required parsing full definitions and deduplicating locations.

AI-written summary · about

  1. 0:00Introduction to Clang tools
  2. 1:05Clang beyond the compiler
  3. 2:32ClangFormat for code formatting
  4. 6:07Compilation database explained
  5. 7:49Clang static analyzer basics
  6. 10:00Clang-Tidy for refactoring
  7. 12:09Building custom tools with Clang
  8. 18:56Exploring Clang AST with Python
  9. 24:19LibTooling and AST matchers
  10. 26:03Conclusion and Q&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.