Re: [PATCH] clang-format: use git grep to generate the ForEachMacros list
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Jun 5, 2019, 20:20 UTC
- Message-ID
- <20190605202019.GA84760@D-10-18-172-221.dhcp4.washington.edu>
- In-Reply-To
- <20190603224814.GA15851@gmail.com>
Hi Miguel,
On Tue, Jun 04, 2019 at 12:48:14AM +0200, Miguel Ojeda wrote:
Show 6 quoted lines
> The ForEachMacros list can reasonably be generated grepping > the C source code for macros with 'for_each' in their name. > > Taken almost verbatim from the .clang-format file in the Linux kernel. > > Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Thanks for CC-ing me on this. I suspect that it was because I show up somewhere recently in the blame for 'git grep' (I believe I worked on adding `-o` about a year ago).
You 'git grep' usage of course looks correct, so this patch looks good to me, too.
Thanks, Taylor