public inbox for [email protected]
 help / color / mirror / Atom feed
From: Haiyue Wang <[email protected]>
To: [email protected]
Cc: Haiyue Wang <[email protected]>
Subject: [PATCH liburing v1 2/2] .gitignore: Add compilation database file and directory
Date: Wed,  6 Nov 2024 22:45:28 +0800	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

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 <[email protected]>
---
 .gitignore | 4 ++++
 1 file changed, 4 insertions(+)

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
-- 
2.47.0


  reply	other threads:[~2024-11-06 14:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-06 14:45 [PATCH liburing v1 1/2] .gitignore: Add `examples/reg-wait` Haiyue Wang
2024-11-06 14:45 ` Haiyue Wang [this message]
2024-11-06 14:53 ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox