]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
.gitignore: ignore compile_commands.json globally
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 6 Jun 2025 21:48:40 +0000 (14:48 -0700)
committerNathan Chancellor <nathan@kernel.org>
Tue, 12 Aug 2025 22:53:55 +0000 (15:53 -0700)
commitf7cc3caea0005972162813e24892c49f2364f2fd
treeba5e847029dd0710ab1f6ba26b64115731338379
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
.gitignore: ignore compile_commands.json globally

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.

While at it, remove exactly such a local .gitignore rule under
tools/power/cpupower.

  [0] https://github.com/rizsotto/Bear

Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Suggested-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://lore.kernel.org/r/20250606214840.3165754-1-andrii@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
.gitignore
tools/power/cpupower/.gitignore