summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-10-06 20:25:58 +0200
committerRenato Westphal <renato@opensourcerouting.org>2017-10-10 14:05:46 +0200
commit451fda4f9a2fadc24328e640077780a00ffcdac2 (patch)
treee5cb1b11502a6c525698d188ccc94adfea4515a1 /.clang-format
parentospf6d: Add missing vrf lookup (diff)
downloadfrr-451fda4f9a2fadc24328e640077780a00ffcdac2.tar.xz
frr-451fda4f9a2fadc24328e640077780a00ffcdac2.zip
*: use the FOR_ALL_INTERFACES abstraction from babeld
This improves code readability and also future-proofs our codebase against new changes in the data structure used to store interfaces. The FOR_ALL_INTERFACES_ADDRESSES macro was also moved to lib/ but for now only babeld is using it. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format2
1 files changed, 2 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
index 2710d844e..21fe9d7c5 100644
--- a/.clang-format
+++ b/.clang-format
@@ -41,6 +41,8 @@ ForEachMacros:
- RB_FOREACH_REVERSE
- RB_FOREACH_REVERSE_SAFE
- SPLAY_FOREACH
+ - FOR_ALL_INTERFACES
+ - FOR_ALL_INTERFACES_ADDRESSES
# zebra
- RE_DEST_FOREACH_ROUTE
- RE_DEST_FOREACH_ROUTE_SAFE