qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] Makefile: Add *.[ch].inc files to cscope/ctags/TAGS
@ 2020-10-13  9:18 Greg Kurz
  2020-10-13 10:57 ` Paolo Bonzini
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Kurz @ 2020-10-13  9:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini

The code base has some C source and header files that don't get indexed
because their name ends with .inc:

$ git ls-files "*.[ch].inc" | wc -l
66

Add them to the list.

Signed-off-by: Greg Kurz <groug@kaod.org>
--
v2: add the missing \( and \)
---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c37e513431fe..3c5a0b0f7a11 100644
--- a/Makefile
+++ b/Makefile
@@ -190,7 +190,7 @@ distclean: clean ninja-distclean
 	rm -f linux-headers/asm
 	rm -Rf .sdk
 
-find-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o -name "*.[chsS]"
+find-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o \( -name "*.[chsS]" -o -name "*.[ch].inc" \)
 
 .PHONY: ctags
 ctags:




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] Makefile: Add *.[ch].inc files to cscope/ctags/TAGS
  2020-10-13  9:18 [PATCH v2] Makefile: Add *.[ch].inc files to cscope/ctags/TAGS Greg Kurz
@ 2020-10-13 10:57 ` Paolo Bonzini
  2020-10-26 19:18   ` Laurent Vivier
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2020-10-13 10:57 UTC (permalink / raw)
  To: Greg Kurz, qemu-devel; +Cc: qemu-trivial

On 13/10/20 11:18, Greg Kurz wrote:
> The code base has some C source and header files that don't get indexed
> because their name ends with .inc:
> 
> $ git ls-files "*.[ch].inc" | wc -l
> 66
> 
> Add them to the list.
> 
> Signed-off-by: Greg Kurz <groug@kaod.org>
> --
> v2: add the missing \( and \)
> ---
>  Makefile |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile b/Makefile
> index c37e513431fe..3c5a0b0f7a11 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -190,7 +190,7 @@ distclean: clean ninja-distclean
>  	rm -f linux-headers/asm
>  	rm -Rf .sdk
>  
> -find-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o -name "*.[chsS]"
> +find-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o \( -name "*.[chsS]" -o -name "*.[ch].inc" \)
>  
>  .PHONY: ctags
>  ctags:
> 
> 

Cc: qemu-trivial@nongnu.org



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] Makefile: Add *.[ch].inc files to cscope/ctags/TAGS
  2020-10-13 10:57 ` Paolo Bonzini
@ 2020-10-26 19:18   ` Laurent Vivier
  0 siblings, 0 replies; 3+ messages in thread
From: Laurent Vivier @ 2020-10-26 19:18 UTC (permalink / raw)
  To: Paolo Bonzini, Greg Kurz, qemu-devel; +Cc: qemu-trivial

Le 13/10/2020 à 12:57, Paolo Bonzini a écrit :
> On 13/10/20 11:18, Greg Kurz wrote:
>> The code base has some C source and header files that don't get indexed
>> because their name ends with .inc:
>>
>> $ git ls-files "*.[ch].inc" | wc -l
>> 66
>>
>> Add them to the list.
>>
>> Signed-off-by: Greg Kurz <groug@kaod.org>
>> --
>> v2: add the missing \( and \)
>> ---
>>  Makefile |    2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/Makefile b/Makefile
>> index c37e513431fe..3c5a0b0f7a11 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -190,7 +190,7 @@ distclean: clean ninja-distclean
>>  	rm -f linux-headers/asm
>>  	rm -Rf .sdk
>>  
>> -find-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o -name "*.[chsS]"
>> +find-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o \( -name "*.[chsS]" -o -name "*.[ch].inc" \)
>>  
>>  .PHONY: ctags
>>  ctags:
>>
>>
> 
> Cc: qemu-trivial@nongnu.org
> 
> 

Applied to my trivial-patches branch.

Thanks,
Laurent



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-26 19:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13  9:18 [PATCH v2] Makefile: Add *.[ch].inc files to cscope/ctags/TAGS Greg Kurz
2020-10-13 10:57 ` Paolo Bonzini
2020-10-26 19:18   ` Laurent Vivier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).