~/talk

Code Intelligence in Large C(++) Repositories

Talkat TheiaCon 2021 · 2021-11-18..11-19· [developer-experience]
links:none on file
links:none on file
slides:none on file

Clangd needs a compile_commands.json to resolve symbols precisely, but generating those for thousands of build slices is slow, brittle and often out of date; builds in Ericsson hit multi-day generation, branching-by-preprocessor makes files compile many ways, and users see thousands of errors until configured. The practical alternative implemented wraps a CDT parser with CDT + CScope + CTags as a language server, indexes quickly (demo indexed 4,000 files), returns multiple candidate definitions and decent completions, and gives a usable unconfigured experience though it trades certainty for breadth.

AI-written summary · about

  1. 0:00Indexing Challenges on a Large C Repository
  2. 1:55Some common terms
  3. 5:42Clangd Build Configurations
  4. 6:15Compilation Database
  5. 8:50Example of command capture
  6. 9:16What makes C so challenging?
  7. 12:09Pre-computing compile_commands.json?
  8. 14:22Shortfalls in Global Scoping
  9. 15:57Demo Project
  10. 16:23For discussion: Our project
  11. 17:00Compile Scope
  12. 17:35Global Scope
  13. 18:50Analysis in areas that aren't in the build configuration...
  14. 19:50The First Impression Problem
  15. 20:02It's a complex world
  16. 21:44Cscope+LSP4J
  17. 24:47Cscope+CDT+ctags
  18. 26:32Functionality
  19. 27:47Solving Problems with First Impression
~/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.