Git: ignore compile_commands.json

The guide for using clang suggests to link the `compile_commands.json` file into
the source repo to make it easier for clangd to find it. This works well in my
test but has the problem that git wants to track that file. This patch adds the
`compile_commands.json` file to `.gitignore` to avoid committing it
accidentally.

Pull Request: https://projects.blender.org/blender/blender/pulls/132796
This commit is contained in:
Jacques Lucke 2025-01-08 16:42:50 +01:00
parent 13b79072e2
commit e853978edb

4
.gitignore vendored
View file

@ -74,3 +74,7 @@ waveletNoiseTile.bin
CMakeSettings.json
CMakePresets.json
CMakeUserPresets.json
# Compile commands generated by CMake that may be linked into the source code
# folder to make it easier for tools like clangd to discover.
compile_commands.json