]> git.proxmox.com Git - mirror_frr.git/blobdiff - .clang-format
Merge pull request #10697 from donaldsharp/free_bsd_clock_gettime
[mirror_frr.git] / .clang-format
index a65a29f8c995c7aea022a6f998e11fb309b693d6..a620b5c2c03a47a02db7e27f6ef4cbc3a4dede60 100644 (file)
@@ -15,7 +15,7 @@ AllowAllParametersOfDeclarationOnNextLine: false
 AlignAfterOpenBracket: true
 SpaceAfterCStyleCast: false
 MaxEmptyLinesToKeep: 2
-BreakBeforeBinaryOperators: NonAssignment
+BreakBeforeBinaryOperators: None
 BreakStringLiterals: false
 SortIncludes:    false
 IncludeCategories:
@@ -25,6 +25,11 @@ 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
@@ -45,8 +50,11 @@ ForEachMacros:
   - FOR_ALL_INTERFACES_ADDRESSES
   - JSON_FOREACH
   # libyang
+  - LY_FOR_KEYS
+  - LY_LIST_FOR
   - LY_TREE_FOR
   - LY_TREE_DFS_BEGIN
+  - LYD_TREE_DFS_BEGIN
   # zebra
   - RE_DEST_FOREACH_ROUTE
   - RE_DEST_FOREACH_ROUTE_SAFE
@@ -61,5 +69,7 @@ ForEachMacros:
   - SUBGRP_FOREACH_ADJ_SAFE
   - AF_FOREACH
   - FOREACH_AFI_SAFI
+  - FOREACH_AFI_SAFI_NSF
+  - FOREACH_SAFI
   # ospfd
   - LSDB_LOOP