From e5d50a303f71c58447b01fae998f01b8d7f175c4 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 23 Nov 2022 15:01:55 -0600 Subject: [PATCH] gitignore: ignore clangd files and directories In order to use clangd it is currently necessary to add some configuration into a .clangd file. Unfortunately, this is very situation specific and cannot meaningfully be upstreamed. (For example, I need to manually specify "-std=c++17" to work around the issue that gcc defaults to c++17 and clang defaults to c++14.) While at it also ignore the .cache directory where clangd stores its index. --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index d3c5630028..a769646b98 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,10 @@ qtcreator/ # qt creator CMakeLists.txt.user +# clangd +/.cache +/.clangd + # misc /compile_commands.json /.clang_complete -- 2.39.5