Re: [PATCH v2] .gitignore: ignore compile_commands.json globally
From: Nathan Chancellor
Date: Tue Aug 12 2025 - 19:00:18 EST
On Fri, 06 Jun 2025 14:48:40 -0700, Andrii Nakryiko wrote:
> compile_commands.json can be used with clangd to enable language server
> protocol-based assistance. For kernel itself this can be built with
> scripts/gen_compile_commands.py, but other projects (e.g., libbpf, or
> BPF selftests) can benefit from their own compilation database file,
> which can be generated successfully using external tools, like bear [0].
>
> So, instead of adding compile_commands.json to .gitignore in respective
> individual projects, let's just ignore it globally anywhere in Linux repo.
>
> [...]
Applied, thanks!
[1/1] .gitignore: ignore compile_commands.json globally
https://git.kernel.org/kbuild/c/f7cc3caea0005
Best regards,
--
Nathan Chancellor <nathan@xxxxxxxxxx>