[Clangd] Feature Request: Automatically generate .gitignore in the .cache directory (original) (raw)
July 16, 2025, 7:15am 1
I use VSCode with clangd plugin. It often generate .cache directory in the project root without noticing and cause a lot of untracked files in the git view. meson will automatically put .gitignore in the build directory with * as the content[1]. I think this is very convenient and recommend clangd to do the same.
2 Likes
JVApen July 16, 2025, 7:44am 2
If you want to look into this, llvm-project/clang-tools-extra/clangd/index/BackgroundIndexStorage.cpp at f223411e2e005ecd54523801db603b54d69f3159 · llvm/llvm-project · GitHub will be a good starting point.
Feel free to create a PR or log a feature request at GitHub · Where software is built
The former will most likely be the most efficient.
2 Likes
mrexodia November 29, 2025, 5:41pm 3
I took a crack at this after getting annoyed for the Nth time that I need to do this manually: Add .gitignore file in .cache/clangd/index by mrexodia · Pull Request #170003 · llvm/llvm-project · GitHub
2 Likes