[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200826102017.GT35926@hirez.programming.kicks-ass.net>
Date: Wed, 26 Aug 2020 12:20:17 +0200
From: peterz@...radead.org
To: yamada.masahiro@...ionext.com
Cc: linux-kernel@...r.kernel.org, linux-kbuild@...r.kernel.org
Subject: Re: [PATCH -v2] scipts/tags.sh: Add custom sort order
On Thu, Aug 06, 2020 at 02:04:38PM +0200, peterz@...radead.org wrote:
>
> One long standing annoyance I have with using vim-tags is that our tags
> file is not properly sorted. That is, the sorting exhuberant Ctags does
> is only on the tag itself.
>
> The problem with that is that, for example, the tag 'mutex' appears a
> mere 505 times, 492 of those are structure members. However it is _far_
> more likely that someone wants the struct definition when looking for
> the mutex tag than any of those members. However, due to the nature of
> the sorting, the struct definition will not be first.
>
> So add a script that does a custom sort of the tags file, taking the tag
> kind into account.
>
> The kind ordering is roughly: 'type', 'function', 'macro', 'enum', rest.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
> ---
ping?
Powered by blists - more mailing lists