Skip to content

Commit 79c154a

Browse files
committed
btrfs-progs: ignore compile_commands.json
Clangd is the most commonly used LSP server for C, and it needs a `compile_commands.json` file to get all the compiler flags for each C file, and such file is normally the root marker to detect the root directory of the project. So it's pretty common to just put that file at the project top directory. Furthermore projects like the Linux kernel has already added that file into gitignore, we should also ignore that file. Signed-off-by: Qu Wenruo <wqu@suse.com>
1 parent 82451be commit 79c154a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
/cscope.files
7171
/cscope.in.out
7272
/cscope.po.out
73+
/compile_commands.json
7374
.*
7475
!.editorconfig
7576
!.github

0 commit comments

Comments
 (0)