.gitignore: Add compilation database file
PATCH v2 1/1 .gitignore: Add compilation database file
This file is used by clangd to use language server protocol. It can be generated at each compile using scripts/gen_compile_commands.py. Therefore it is different depending on the environment and should be ignored.
--- .gitignore | 3 +++ 1 file changed, 3 insertions(+)
.gitignore +3 -0
@@ -142,3 +142,6 @@ x509.genkey # Kdevelop4 *.kdev4 + +# Clang's compilation database file +/compile_commands.json
Signature · 1 line
2.17.1
Quoted 7 lines · Toru Komatsu
This file is used by clangd to use language server protocol. It can be generated at each compile using
scripts/gen_compile_commands.py. Therefore it is different depending on the environment and should be ignored.Signed-off-by Toru Komatsu <[email protected]>
Thank you again for this patch. We're working on adding clang-tidy checks for the Linux kernel, which will make use of this file soon. Keep yours eyes out for it!
https://reviews.llvm.org/D59963
Quoted 18 lines
--- .gitignore | 3 +++ 1 file changed, 3 insertions(+).gitignore +3
-1@@ -142,3 +142,6 @@ x509.genkey # Kdevelop4 *.kdev4 + +# Clang's compilation database file +/compile_commands.json --2.17.1
Signature · 2 lines
Thanks, ~Nick Desaulniers
Quoted 10 lines · Toru Komatsu
This file is used by clangd to use language server protocol. It can be generated at each compile using
scripts/gen_compile_commands.py. Therefore it is different depending on the environment and should be ignored.Signed-off-by Toru Komatsu <[email protected]>--- .gitignore | 3 +++ 1 file changed, 3 insertions(+)
Applied to linux-kbuild/fixes. Thanks.
Signature · 2 lines
Best Regards Masahiro Yamada