IWYU cleanup done

This commit is contained in:
2026-04-08 03:26:22 -04:00
parent 39cc7cd14b
commit 15beb42d5f
6 changed files with 57 additions and 22 deletions

View File

@@ -3,12 +3,14 @@
Usage:
python3 tools/clangd-query.py symbol <name>
python3 tools/clangd-query.py diagnostics <file>
python3 tools/clangd-query.py definition <file> <line> <col>
python3 tools/clangd-query.py references <file> <line> <col>
python3 tools/clangd-query.py stop
Commands:
symbol <name> Search for symbols by name across the project.
diagnostics <file> Report clangd diagnostics for a file.
definition <file> <line> <col> Find where a symbol is defined.
references <file> <line> <col> Find all references to a symbol.
stop Stop the background daemon.
@@ -22,15 +24,15 @@ Examples:
How it works:
The first invocation starts a background clangd daemon process. It loads
the project index from .vscode/.cache/clangd/index/ (shared with VS Code's
clangd). This takes ~10 seconds. Subsequent queries hit the warm daemon
and return in milliseconds.
the project through a dedicated .clangd-query compile-commands directory,
which gives it a separate clangd cache. This takes ~10 seconds.
Subsequent queries hit the warm daemon and return in milliseconds.
Clangd configuration (binary path, flags) is read from
Integration.code-workspace so it stays in sync with VS Code.
The daemon writes its PID to .clangd-query.pid and listens on a Unix
socket at .clangd-query.sock. Use 'stop' to shut it down, or just kill
The daemon writes its PID to .clangd-query/pid and listens on a Unix
socket at .clangd-query/sock. Use 'stop' to shut it down, or just kill
the PID. Starting a new daemon automatically kills any existing one.
"""