Re: [PATCH v2 1/3] xen/scripts: import gen_compile_commands.py from Linux

Anthony PERARD <[email protected]>
Newsgroups gmane.comp.emulators.xen.devel
Message-ID <1786371843.8631fc262581453bbf619ec5b2062170.19fec0f24d6000e099@vates.tech>
On Mon, Aug 10, 2026 at 10:49:43AM +0100, George Dunlap wrote:
> Xen's Kbuild-derived build system records the exact command line used
> to compile each object in .<target>.o.cmd files.  That is everything
> needed to produce a compile_commands.json compilation database, the
> format clangd and other tooling consume to provide accurate
> cross-referencing (go to definition, find references, call hierarchy)
> in LSP-capable editors.
> 
> Import scripts/clang-tools/gen_compile_commands.py from the Linux
> kernel, unmodified, so that the provenance of the code is easy to
> verify (commit 90efe2b9119f, Linux v6.16).
> 
> As-is the script produces an empty database on a Xen tree, since
> Xen's compile command lines differ slightly from Linux's; the
> following patch adapts it.
> 
> Assisted-by: LLM
> Signed-off-by: George Dunlap <[email protected]>

Acked-by: Anthony PERARD <[email protected]>

Thanks,


-- 
Anthony Perard | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.