Add regex filtering to clangd navigation
This commit is contained in:
@@ -76,6 +76,7 @@ powershell -ExecutionPolicy Bypass -File scripts\automation\platform-build.ps1 -
|
||||
powershell -ExecutionPolicy Bypass -File scripts\automation\package-smoke.ps1 -Preset windows-msvc-default -Configuration Debug
|
||||
cmake --fresh --preset windows-clangcl-asan
|
||||
python scripts/dev/clangd_nav.py symbols --file src/app_core/brush_ui.h --name execute_brush
|
||||
python scripts/dev/clangd_nav.py symbols --file src/app_core/brush_ui.h --name-regex "execute_.*preset"
|
||||
python scripts/dev/clangd_nav.py definition --file src/node_panel_brush.cpp --line 511 --column 39
|
||||
```
|
||||
|
||||
@@ -96,6 +97,9 @@ Known local toolchain state:
|
||||
the current `compile_commands.json` from `windows-clangcl-asan`,
|
||||
`android-arm64`, or a caller-provided build directory. Symbol, hover,
|
||||
declaration, definition, and implementation lookups are the reliable use case.
|
||||
Symbol listing supports substring filtering with `--name` and regex filtering
|
||||
against `qualifiedName` with `--name-regex`; regex matching is case-insensitive
|
||||
by default and can be made case-sensitive with `--no-ignore-case`.
|
||||
Reference lookup is guarded because a one-shot clangd process may not have a
|
||||
complete project index: pass `--background-index` for broader best-effort
|
||||
results or `--allow-incomplete-references` for explicitly
|
||||
|
||||
Reference in New Issue
Block a user