Skip to contentSkip to conversation

Add clangd specific files to gitignore

PATCH In review Andrea Cervesato 2 participants 2 messages Mar 25 – Mar 26

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 Add clangd specific files to gitignore

From: Andrea Cervesato <[email protected]>

Add rule to ignore clangd LSP configuration from local repository.

---
Clangd is extensively used by IDEs and generic LSP wrappers to setup
clangd configuration. This patch removes it from gitignore so we can
safely avoid it gets into the patch-set when it's sent.
---
Changes in v3:
- make compile_commands.json and compile_flags.txt ignored everywhere
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- add compile_commands.json
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +3 -0
index 24f4a4ea834e0b919e640e879fe5e5b5d7aec466..3fdfeaba0333990c607e7847e4f997192d710394 100644
@@ -60,3 +60,6 @@ patches/
 logfile.*
 
 /utils/benchmark/ebizzy-0.3/ebizzy
+
+compile_flags.txt
+compile_commands.json

---
base-commit: b874b6a264cf4f343c17d543ebe4ff91fbb89042
change-id: 20260325-compile_flags_gitignore-c12d8f65ef2d

Best regards,

Signature · 5 lines
Andrea Cervesato <[email protected]>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v3 1/1
#1 lore raw
Quoted 37 lines · Andrea Cervesato

From: Andrea Cervesato <[email protected]>

Add rule to ignore clangd LSP configuration from local repository.

---
Clangd is extensively used by IDEs and generic LSP wrappers to setup
clangd configuration. This patch removes it from gitignore so we can
safely avoid it gets into the patch-set when it's sent.
---
Changes in v3:
- make compile_commands.json and compile_flags.txt ignored everywhere
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- add compile_commands.json
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +3 -1
index 24f4a4ea834e0b919e640e879fe5e5b5d7aec466..3fdfeaba0333990c607e7847e4f997192d710394 100644
@@ -60,3 +60,6 @@ patches/
 logfile.*
 
 /utils/benchmark/ebizzy-0.3/ebizzy
+
+compile_flags.txt
+compile_commands.json
 
---

base-commit: b874b6a264cf4f343c17d543ebe4ff91fbb89042
change-id: 20260325-compile_flags_gitignore-c12d8f65ef2d

Quoted 7 lines

Best regards,
--
Andrea Cervesato <[email protected]>

--
Mailing list info: https://lists.linux.it/listinfo/ltp

Hi Andrea,

thank you for this patch.

Best regards,
Jan

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp