[LTP] [PATCH v2] Add cglangd specific files to gitignore

Andrea Cervesato andrea.cervesato@suse.de
Wed Mar 25 11:51:45 CET 2026


From: Andrea Cervesato <andrea.cervesato@suse.com>

Add rule to ignore clangd LSP configuration from local repository.

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
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 v2:
- add compile_commands.json
- Link to v1: https://lore.kernel.org/r/20260325-compile_flags_gitignore-v1-1-b0de37eeacc8@suse.com
---
 .gitignore | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitignore b/.gitignore
index 24f4a4ea834e0b919e640e879fe5e5b5d7aec466..139ecded5fa0a47a12b97eac6ebf432cbe5e5c11 100644
--- a/.gitignore
+++ b/.gitignore
@@ -60,3 +60,5 @@ 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,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>



More information about the ltp mailing list