~/talk

Clangd: architecture of a scalable C++ language server

links:none on file
slides:none on file

Clangd is an LLVM/Clang-based Language Server Protocol implementation that targets editor integration and large codebases by combining a compiler-driven AST for the current translation unit with a project-wide static + dynamic index (built roughly daily and overlaid with edited files). It implements global completion that merges AST completions with indexed symbols, automatically inserts missing #includes, and ranks candidates by name match and project usage counts. It runs via LSP in VS Code, Vim, Emacs, scales to Google‑scale repos, and is already used experimentally by Apple and JetBrains.

AI-written summary · about

  1. 0:00Intro
  2. 1:14Overview
  3. 3:12Editor integration problem
  4. 7:31Language Server Protocol (LSP)
  5. 14:31Architecture of clangd
  6. 20:14Models of your program
  7. 31:01Code completion flow
  8. 36:03Ranking example Query: 'uniq
  9. 39:16Embedding in a Web IDE
  10. 44:08Future plans
~/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.