Add compile_flags.txt to gitignore file
PATCH 1/1 Add compile_flags.txt to gitignore file
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.
--- .gitignore | 1 + 1 file changed, 1 insertion(+)
.gitignore +1 -0
@@ -60,3 +60,4 @@ patches/ logfile.* /utils/benchmark/ebizzy-0.3/ebizzy +/compile_flags.txt
---
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
Hi Andrea,
Quoted 1 line
Add rule to ignore clangd LSP configuration from local repository.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Quoted 18 lines
From: Andrea Cervesato <[email protected]>
Add rule to ignore clangd LSP configuration from local repository.
Signed-off-by Andrea Cervesato <[email protected]>---
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.--- .gitignore | 1 + 1 file changed, 1 insertion(+).gitignore +0
-0
.gitignore patches/ · line 63
Quoted 4 lines
.gitignore +1
-0@@ -60,3 +60,4 @@ patches/ logfile.* /utils/benchmark/ebizzy-0.3/ebizzy +/compile_flags.txt
Hi Andrea,
thanks for the patch!
One thought: compile_commands.json (the compilation database) is also commonly generated locally (e.g. with bear, compiledb), and not necessarily in the repository root (often in a build directory). Since the intent here is to prevent accidental inclusion in patch series, would it make sense to ignore that filename as well?
In .gitignore we could do this without anchoring to the repo root, e.g.:
compile_commands.json
Thanks & best regards,
Jan
Quoted 12 lines
---
base-commit:b874b6a264cf4f343c17d543ebe4ff91fbb89042
change-id: 20260325-compile_flags_gitignore-c12d8f65ef2dBest regards,
--
Andrea Cervesato <[email protected]>--
Mailing list info: https://lists.linux.it/listinfo/ltp
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Jan,
Quoted 5 lines
One thought:
compile_commands.json(the compilation database) is also commonly generated locally (e.g. with bear, compiledb), and not necessarily in the repository root (often in a build directory). Since the intent here is to prevent accidental inclusion in patch series, would it make sense to ignore that filename as well?
I think it's a good idea, thanks. Will send v2.
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
[email protected]
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp