Skip to content

Commit

Permalink
.gitignore: add clangd-related files
Browse files Browse the repository at this point in the history
I started using clangd as my LSP for C-based codebases and it works
quite well! Setting it up requires creating a `compile_commands.json`
file using e.g. `bear` (https://github.com/rizsotto/Bear).

Add it to the list of files to ignore. clangd caches its indexing in the
`.cache` directory. Add that too.
  • Loading branch information
jlebon authored and cgwalters committed Jan 13, 2023
1 parent a083a65 commit 4dfe686
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,7 @@
/tests/check/test-lib-introspection.sh.trs
/tests/kola
_libs

# for clangd: https://clangd.llvm.org/installation#project-setup
/compile_commands.json
/.cache

0 comments on commit 4dfe686

Please sign in to comment.