[PATCH] Ignore clangd-related files and folders

Martin Kletzander posted 1 patch 3 years, 8 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/4ce84380f5da99f04218ed6fca4b3705abadb67d.1596204590.git.mkletzan@redhat.com
.gitignore | 4 ++++
1 file changed, 4 insertions(+)
[PATCH] Ignore clangd-related files and folders
Posted by Martin Kletzander 3 years, 8 months ago
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
---
 .gitignore | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitignore b/.gitignore
index 6c167e423b18..edc25cb8d0e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,3 +38,7 @@ Makefile.in
 /build/
 /ci/scratch/
 tags
+
+# clangd related ignores
+.clangd
+compile_commands.json
-- 
2.28.0

Re: [PATCH] Ignore clangd-related files and folders
Posted by Peter Krempa 3 years, 8 months ago
On Fri, Jul 31, 2020 at 16:09:50 +0200, Martin Kletzander wrote:
> Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
> ---
>  .gitignore | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/.gitignore b/.gitignore
> index 6c167e423b18..edc25cb8d0e0 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -38,3 +38,7 @@ Makefile.in
>  /build/
>  /ci/scratch/
>  tags
> +
> +# clangd related ignores
> +.clangd
> +compile_commands.json

Is clang creating these in the source directory? I'd expect them in the
build directory.

Re: [PATCH] Ignore clangd-related files and folders
Posted by Ján Tomko 3 years, 8 months ago
On a Friday in 2020, Peter Krempa wrote:
>On Fri, Jul 31, 2020 at 16:09:50 +0200, Martin Kletzander wrote:
>> Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
>> ---
>>  .gitignore | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/.gitignore b/.gitignore
>> index 6c167e423b18..edc25cb8d0e0 100644
>> --- a/.gitignore
>> +++ b/.gitignore
>> @@ -38,3 +38,7 @@ Makefile.in
>>  /build/
>>  /ci/scratch/
>>  tags
>> +
>> +# clangd related ignores
>> +.clangd
>> +compile_commands.json
>
>Is clang creating these in the source directory? I'd expect them in the
>build directory.
>

clangd, not clang.

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano