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 |
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
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(+)