]> https://gitweb.dealii.org/ - dealii.git/commitdiff
gitignore: ignore clangd files and directories 14462/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 23 Nov 2022 21:01:55 +0000 (15:01 -0600)
committerMatthias Maier <tamiko@43-1.org>
Wed, 23 Nov 2022 21:01:55 +0000 (15:01 -0600)
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

index d3c5630028dbf6466f09e83a866c72e9227f42e5..a769646b98816d25f522723c8d14a68fe4ed2583 100644 (file)
@@ -12,6 +12,10 @@ qtcreator/
 # qt creator
 CMakeLists.txt.user
 
+# clangd
+/.cache
+/.clangd
+
 # misc
 /compile_commands.json
 /.clang_complete

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.