Skip to contentSkip to conversation

.gitignore: Add compilation database files

PATCH Superseded Toru Komatsu 3 participants 6 messages Jul 21, 2019 – Jul 23, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 .gitignore: Add compilation database files

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
index 8f5422cba6e2..025d887f64f1 100644
@@ -142,3 +142,6 @@ x509.genkey
 
 # Kdevelop4
 *.kdev4
+
+# Clang's compilation database files
+/compile_commands.json
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 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.

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +0 -0
index 8f5422cba6e2..025d887f64f1 100644

.gitignore x509.genkey · line 147

Quoted 6 lines
.gitignore +3 -0
@@ -142,3 +142,6 @@ x509.genkey
 
 # Kdevelop4
 *.kdev4
+
+# Clang's compilation database files
+/compile_commands.json

Thanks for the patch!

Also, if you're doing anything exciting with compile_commands.json, I'd love to know. We're using it for static analyses.

Signature · 2 lines
Thanks,
~Nick Desaulniers
#2 lore raw
In reply to Toru Komatsu

Just a nit.

The patch title is:
.gitignore: Add compilation database "files"

Maybe, should it be singular?

Quoted 25 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.

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +3 -1
index 8f5422cba6e2..025d887f64f1 100644
@@ -142,3 +142,6 @@ x509.genkey
 
 # Kdevelop4
 *.kdev4
+
+# Clang's compilation database files
+/compile_commands.json
--

2.17.1

Signature · 2 lines
Best Regards
Masahiro Yamada
#3 lore raw
Quoted 39 lines · Masahiro Yamada

Just a nit.

The patch title is:
.gitignore: Add compilation database "files"

Maybe, should it be singular?

Quoted 25 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.

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +3 -1
index 8f5422cba6e2..025d887f64f1 100644
@@ -142,3 +142,6 @@ x509.genkey
 
 # Kdevelop4
 *.kdev4
+
+# Clang's compilation database files
+/compile_commands.json
--

2.17.1

Signature · 2 lines
Best Regards
Masahiro Yamada
Signature · 7 lines
Thanks for your review.

 Sorry, this point which you pointed out is my mistake.
 It is should be "file".

 I'm begginer because this patch is my first time,
 What should I do next?
Quoted 2 lines

Thanks,
~Toru Komatsu

#4 lore raw
Quoted 44 lines · Toru Komatsu
Quoted 26 lines · Masahiro Yamada

Just a nit.

The patch title is:
.gitignore: Add compilation database "files"

Maybe, should it be singular?

Quoted 17 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.

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +0 -0
index 8f5422cba6e2..025d887f64f1 100644
@@ -142,3 +142,6 @@ x509.genkey
 
Quoted 13 lines
Quoted 8 lines
.gitignore +3 -1
 # Kdevelop4
 *.kdev4
+
+# Clang's compilation database files
+/compile_commands.json
--

2.17.1

--
Best Regards
Masahiro Yamada

--

Quoted 7 lines

Thanks for your review.

Sorry, this point which you pointed out is my mistake. It is should be "file".

I'm begginer because this patch is my first time, What should I do next?

This patch is trivial enough.

I will change "files" -> "file"
(patch subject and code),
then I will apply it.

Thanks.

Signature · 2 lines
Best Regards
Masahiro Yamada