Re: [GIT PULL] clang-format for v5.3-rc8
From: Joe Perches
Date: Wed Sep 04 2019 - 19:35:03 EST
On Wed, 2019-09-04 at 20:29 +0200, Miguel Ojeda wrote:
> Hi Linus,
>
> Please pull this trivial update for the .clang-format file.
>
> Cheers,
> Miguel
>
> The following changes since commit a55aa89aab90fae7c815b0551b07be37db359d76:
>
> Linux 5.3-rc6 (2019-08-25 12:01:23 -0700)
>
> are available in the Git repository at:
>
> https://github.com/ojeda/linux.git tags/clang-format-for-linus-v5.3-rc8
>
> for you to fetch changes up to 52d083472e0b64d1da5b6469ed3defb1ddc45929:
>
> clang-format: Update with the latest for_each macro list (2019-08-31 10:00:51 +0200)
>
> ----------------------------------------------------------------
> clang-format update for 5.3
>
> ----------------------------------------------------------------
> Miguel Ojeda (1):
> clang-format: Update with the latest for_each macro list
>
> .clang-format | 17 ++++++++++++++---
> 1 file changed, 14 insertions(+), 3 deletions(-)
It's a long, long list.
$ git grep -P -h '^\s*#\s*define\s+\w*for_each\w*' | \
grep -P -oh '\w+for_each\w*' | sort | uniq | wc -l
491
Isn't there some way to regexes or automate this?
Maybe just:
$ git grep -P -h '^\s*#\s*define\s+\w*for_each\w*' | \
grep -P -oh '\w+for_each\w*' | sort | uniq > somefile...