Skip to contentSkip to conversation

clang-format for v5.3-rc8

GIT PULL Merged Miguel Ojeda 3 participants 4 messages Sep 4, 2019 – Sep 5, 2019

lore
Share & tools
lore
#0 lore raw

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(-)
#1 lore raw
Quoted 22 lines · Miguel Ojeda

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

Quoted 6 lines

----------------------------------------------------------------
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...
#2 lore raw
Quoted 7 lines · Joe Perches

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
Quoted 5 lines

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...

The command I use is in the file, I re-run it every once in a while. Ideally we could run this somehow automatically every -rc (for instance), e.g. Linus could have it in his release script or something like that, or maybe at the end of the merge window.

Even being more idealistic, clang-format could somehow do this itself keeping a cache somewhere.

Cheers,
Miguel

merge bot Merged
#3 lore raw
In reply to Miguel Ojeda
The pull request you sent on Wed, 4 Sep 2019 20:29:49 +0200:

The pull request you sent on Wed, 4 Sep 2019 20:29:49 +0200:

Quoted 1 line

https://github.com/ojeda/linux.git tags/clang-format-for-linus-v5.3-rc8

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/13133f933ac463f233fbf118061c4c47cd72eecf

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker