diff mbox series

Add more ForEachMacros to clang-format file

Message ID 20230602132057.293160-1-lehua.ding@rivai.ai
State New
Headers show
Series Add more ForEachMacros to clang-format file | expand

Commit Message

Lehua Ding June 2, 2023, 1:20 p.m. UTC
Hi,

This patch adds some missed ForEachMacros to the contrib/clang-format file,
which allows the clang-format tool to format gcc code correctly.

Best,
Lehua

---
 contrib/clang-format | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Comments

Jeff Law June 3, 2023, 3:55 p.m. UTC | #1
On 6/2/23 07:20, Lehua Ding wrote:
> Hi,
> 
> This patch adds some missed ForEachMacros to the contrib/clang-format file,
> which allows the clang-format tool to format gcc code correctly.
> 
> Best,
> Lehua
> 
> ---
>   contrib/clang-format | 10 +++++++++-
>   1 file changed, 9 insertions(+), 1 deletion(-)
Thanks.  I created a ChangeLog entry and pushed this patch to the trunk.

jeff
diff mbox series

Patch

diff --git a/contrib/clang-format b/contrib/clang-format
index 5d264aee3c6..8cfee99cd15 100644
--- a/contrib/clang-format
+++ b/contrib/clang-format
@@ -194,7 +194,15 @@  ForEachMacros: [
 'FOR_EACH_WIDER_MODE',
 'FOR_EXPR',
 'FOR_INIT_STMT',
-'FOR_SCOPE'
+'FOR_SCOPE',
+'EXECUTE_IF_SET_IN_BITMAP',
+'EXECUTE_IF_AND_IN_BITMAP',
+'EXECUTE_IF_AND_COMPL_IN_BITMAP',
+'EXECUTE_IF_SET_IN_REG_SET',
+'EXECUTE_IF_SET_IN_HARD_REG_SET',
+'EXECUTE_IF_AND_COMPL_IN_REG_SET',
+'EXECUTE_IF_AND_IN_REG_SET',
+'EXECUTE_IF_SET_IN_SPARSESET'
 ]
 IndentCaseLabels: false
 NamespaceIndentation: None