Skip to content

Conversation

@dvyukov
Copy link
Collaborator

@dvyukov dvyukov commented Nov 17, 2025

This mostly moves code in preparation for the second clang tool -- codesearch tool
that will provide code indexing for LLM agents.

  • pkg/osutil: add Read/ParseJSON functions
  • tools/syz-declextract: update clangtool to the latest clang
  • pkg/clangtool: make more generic
  • pkg/clangtool/tooltest: add package
  • pkg/clangtool/tooltest: add LoadOutput helper
  • tools/clang/declextract: move from tools/syz-declextract/clangtool

Make it possible to use pkg/clangtool with other types than declextract.Output.
Factor out common clang tool testing helpers from the declextract tool test.
Add LoadOutput helper to use in future commits,
and switch to osutil.ReadJSON helper.
@dvyukov dvyukov changed the title dvyukov prepare for codesearch Refactor syz-declextract in preparation for codesearch tool Nov 17, 2025
@dvyukov dvyukov enabled auto-merge November 17, 2025 07:32
Some of the common helpers may be reused across different Clang tools
(currently json.h and .clang-format). Move the files to allow such reuse.
@dvyukov dvyukov force-pushed the dvyukov-prepare-for-codesearch branch from 359e71b to 76fc3ef Compare November 17, 2025 07:38
@dvyukov dvyukov added this pull request to the merge queue Nov 17, 2025
Merged via the queue into google:master with commit de73685 Nov 17, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants