Add Clangd cache to .gitignore

Some text editors (e.g. Kate or Vim) can use clangd to turn them into lightweight C++ IDE (via LSP plugins). Its cache (which is stored in the project's root directory) should be ignored by Git.

To use this feature for OpenMW, cmake configuration should be used with the -DCMAKE_EXPORT_COMPILE_COMMANDS=ON key, which will generate a compile_commands.json file for clangd based on content of Makefile.

Maybe it makes sense to generate this file automatically, but it is a separate question.

Edited by jvoisin

Merge request reports

Loading