X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=.clang-format;h=654577d936a8ac5e9e349b48a6f0e96fb35a7249;hb=f94ed830df98218447f00b97f856de811bfcc4a2;hp=07f558d924295d8b755e6e6423df11753dd8cb5b;hpb=a8a4fa8954fd3b4e5b4f9bc9173eef79a827a8ff;p=mirror_frr.git diff --git a/.clang-format b/.clang-format index 07f558d92..654577d93 100644 --- a/.clang-format +++ b/.clang-format @@ -23,3 +23,48 @@ IncludeCategories: Priority: 0 CommentPragmas: '\$(FRR|clippy)' ContinuationIndentWidth: 8 +ForEachMacros: + # lib + - frr_each + - frr_each_safe + - frr_each_from + - frr_with_mutex + - frr_with_privs + - LIST_FOREACH + - LIST_FOREACH_SAFE + - SLIST_FOREACH + - SLIST_FOREACH_SAFE + - SLIST_FOREACH_PREVPTR + - STAILQ_FOREACH + - STAILQ_FOREACH_SAFE + - TAILQ_FOREACH + - TAILQ_FOREACH_SAFE + - TAILQ_FOREACH_REVERSE + - TAILQ_FOREACH_REVERSE_SAFE + - RB_FOREACH + - RB_FOREACH_SAFE + - RB_FOREACH_REVERSE + - RB_FOREACH_REVERSE_SAFE + - SPLAY_FOREACH + - FOR_ALL_INTERFACES + - FOR_ALL_INTERFACES_ADDRESSES + - JSON_FOREACH + # libyang + - LY_TREE_FOR + - LY_TREE_DFS_BEGIN + # zebra + - RE_DEST_FOREACH_ROUTE + - RE_DEST_FOREACH_ROUTE_SAFE + - RNODE_FOREACH_RE + - RNODE_FOREACH_RE_SAFE + # bgpd + - UPDGRP_FOREACH_SUBGRP + - UPDGRP_FOREACH_SUBGRP_SAFE + - SUBGRP_FOREACH_PEER + - SUBGRP_FOREACH_PEER_SAFE + - SUBGRP_FOREACH_ADJ + - SUBGRP_FOREACH_ADJ_SAFE + - AF_FOREACH + - FOREACH_AFI_SAFI + # ospfd + - LSDB_LOOP