diff mbox series

[liburing,v1,2/2] .gitignore: Add compilation database file and directory

Message ID 20241106144545.6476-2-haiyuewa@163.com (mailing list archive)
State New
Headers show
Series [liburing,v1,1/2] .gitignore: Add `examples/reg-wait` | expand

Commit Message

Haiyue Wang Nov. 6, 2024, 2:45 p.m. UTC
The tool 'bear'[1] can be used to generate the C language server protocol
database file while compiling: 'bear -- make -j $(nproc)'

Add the database file into .gitignore as Linux Kernel [2] does.

The clangd will parse the compile_commands.json language metadata into the
.cache directory. Add it for clean git status track.

[1]: https://github.com/rizsotto/Bear
[2]: https://git.kernel.org/torvalds/c/26c4c71bcd9a

Signed-off-by: Haiyue Wang <haiyuewa@163.com>
---
 .gitignore | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/.gitignore b/.gitignore
index 7bcc514..4148091 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,6 +33,10 @@ 
 /test/*.dmesg
 /test/output/
 
+# Clang's compilation database file and directory.
+/.cache
+/compile_commands.json
+
 config-host.h
 config-host.mak
 config.log