[PATCH] clang-format: Add maple tree's for_each macros

Elliot Berman posted 1 patch 2 years ago
.clang-format | 2 ++
1 file changed, 2 insertions(+)
[PATCH] clang-format: Add maple tree's for_each macros
Posted by Elliot Berman 2 years ago
Add maple tree's for_each macros so clang-format operates correctly on
{mt,mas}_for_each.

Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
---
 .clang-format | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.clang-format b/.clang-format
index 0bbb1991defe..54bab11d38f0 100644
--- a/.clang-format
+++ b/.clang-format
@@ -494,11 +494,13 @@ ForEachMacros:
   - 'map_for_each_metric'
   - 'maps__for_each_entry'
   - 'maps__for_each_entry_safe'
+  - 'mas_for_each'
   - 'mci_for_each_dimm'
   - 'media_device_for_each_entity'
   - 'media_device_for_each_intf'
   - 'media_device_for_each_link'
   - 'media_device_for_each_pad'
+  - 'mt_for_each'
   - 'msi_for_each_desc'
   - 'nanddev_io_for_each_page'
   - 'netdev_for_each_lower_dev'

---
base-commit: 5eda217cee887e595ba2265435862d585d399769
change-id: 20231201-clang-format-mt-for-each-cada9d44aa5d

Best regards,
-- 
Elliot Berman <quic_eberman@quicinc.com>
Re: [PATCH] clang-format: Add maple tree's for_each macros
Posted by Miguel Ojeda 2 years ago
On Fri, Dec 8, 2023 at 11:08 PM Elliot Berman <quic_eberman@quicinc.com> wrote:
>
> Add maple tree's for_each macros so clang-format operates correctly on
> {mt,mas}_for_each.

Thanks, applied (moved `mt_for_each` to the right spot).

I have also applied a full update of the list on top, since it has
been a while since we have done so.

Cheers,
Miguel