[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a5eab6ca68ee1eb837c8c86b69b4696846af719b.camel@perches.com>
Date: Sat, 19 Jan 2019 11:06:20 -0800
From: Joe Perches <joe@...ches.com>
To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>,
Jason Gunthorpe <jgg@...lanox.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] clang-format: Update .clang-format with the latest
for_each macro list
On Sat, 2019-01-19 at 19:30 +0100, Miguel Ojeda wrote:
> Hi Jason,
>
> On Fri, Jan 18, 2019 at 11:57 PM Jason Gunthorpe <jgg@...lanox.com> wrote:
> > Re-run the shell fragment that generated the original list. In particular
> > this adds the missing xarray related functions.
> >
> > Signed-off-by: Jason Gunthorpe <jgg@...lanox.com>
>
> Thank for the patch! Picking it up.
This misses all the directory/file specific #defines
outside of include/ with for_each
$ git grep "#define.*for_each" | grep -v '^include' | wc -l
619
Is it possible to make this generic somehow instead?
Perhaps extend .clang_format with regexes?
(?:[a-z0-9_]+_)?for_each(?:_[a-z_]+)
[a-z0-9_]+_for_each
Powered by blists - more mailing lists