]> git.proxmox.com Git - mirror_frr.git/blobdiff - .clang-format
bgpd: Allow 'no set community`
[mirror_frr.git] / .clang-format
index 07f558d924295d8b755e6e6423df11753dd8cb5b..a65a29f8c995c7aea022a6f998e11fb309b693d6 100644 (file)
@@ -23,3 +23,43 @@ IncludeCategories:
     Priority:        0
 CommentPragmas: '\$(FRR|clippy)'
 ContinuationIndentWidth: 8
+ForEachMacros:
+  # lib
+  - 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