Re: list iterator spacing: clang-format vs checkpatch
From: Joe Perches
Date: Mon Jan 17 2022 - 23:25:29 EST
On Mon, 2022-01-17 at 22:41 +0100, Miguel Ojeda wrote:
> Yeah, for `clang-format` I tried to be conservative having only
> `include/`, but we could change that.
There are more #defines outside of include/ than inside:
$ git grep -P '^\s*#\s*define\s+\w*for_each\w*\(' -- '*.[ch]' | \
grep -P -v '^(?:include|tools)/' | wc -l
613
$ git grep -P '^\s*#\s*define\s+\w*for_each\w*\(' -- 'include/*.[ch]' | \
wc -l
469