* [PATCH v2] .gitignore: Add compilation database file
@ 2019-07-24 0:22 Toru Komatsu
2019-07-26 3:56 ` Nick Desaulniers
2019-07-27 3:03 ` Masahiro Yamada
0 siblings, 2 replies; 3+ messages in thread
From: Toru Komatsu @ 2019-07-24 0:22 UTC (permalink / raw)
To: linux-kernel
Cc: yamada.masahiro, clang-built-linux, ndesaulniers, 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 <k0ma@utam0k.jp>
---
.gitignore | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.gitignore b/.gitignore
index 8f5422cba6e2..2030c7a4d2f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -142,3 +142,6 @@ x509.genkey
# Kdevelop4
*.kdev4
+
+# Clang's compilation database file
+/compile_commands.json
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] .gitignore: Add compilation database file
2019-07-24 0:22 [PATCH v2] .gitignore: Add compilation database file Toru Komatsu
@ 2019-07-26 3:56 ` Nick Desaulniers
2019-07-27 3:03 ` Masahiro Yamada
1 sibling, 0 replies; 3+ messages in thread
From: Nick Desaulniers @ 2019-07-26 3:56 UTC (permalink / raw)
To: Toru Komatsu; +Cc: LKML, Masahiro Yamada, clang-built-linux
On Tue, Jul 23, 2019 at 5:22 PM Toru Komatsu <k0ma@utam0k.jp> wrote:
>
> 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 <k0ma@utam0k.jp>
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
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
> ---
> .gitignore | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/.gitignore b/.gitignore
> index 8f5422cba6e2..2030c7a4d2f8 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -142,3 +142,6 @@ x509.genkey
>
> # Kdevelop4
> *.kdev4
> +
> +# Clang's compilation database file
> +/compile_commands.json
> --
> 2.17.1
>
--
Thanks,
~Nick Desaulniers
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] .gitignore: Add compilation database file
2019-07-24 0:22 [PATCH v2] .gitignore: Add compilation database file Toru Komatsu
2019-07-26 3:56 ` Nick Desaulniers
@ 2019-07-27 3:03 ` Masahiro Yamada
1 sibling, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2019-07-27 3:03 UTC (permalink / raw)
To: Toru Komatsu
Cc: Linux Kernel Mailing List, clang-built-linux, Nick Desaulniers
On Wed, Jul 24, 2019 at 9:22 AM Toru Komatsu <k0ma@utam0k.jp> wrote:
>
> 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 <k0ma@utam0k.jp>
> ---
> .gitignore | 3 +++
> 1 file changed, 3 insertions(+)
Applied to linux-kbuild/fixes. Thanks.
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-27 3:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-24 0:22 [PATCH v2] .gitignore: Add compilation database file Toru Komatsu
2019-07-26 3:56 ` Nick Desaulniers
2019-07-27 3:03 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).