]> git.proxmox.com Git - mirror_frr.git/blob - .clang-format
zebra: clear dup detect cleanup for nb conversion
[mirror_frr.git] / .clang-format
1 ---
2 BasedOnStyle: LLVM
3 Language: Cpp
4 IndentWidth: 8
5 UseTab: Always
6 BreakBeforeBraces: Linux
7 AlwaysBreakBeforeMultilineStrings: true
8 AllowShortIfStatementsOnASingleLine: false
9 AllowShortLoopsOnASingleLine: false
10 AllowShortFunctionsOnASingleLine: false
11 IndentCaseLabels: false
12 AlignEscapedNewlinesLeft: false
13 AlignTrailingComments: true
14 AllowAllParametersOfDeclarationOnNextLine: false
15 AlignAfterOpenBracket: true
16 SpaceAfterCStyleCast: false
17 MaxEmptyLinesToKeep: 2
18 BreakBeforeBinaryOperators: NonAssignment
19 BreakStringLiterals: false
20 SortIncludes: false
21 IncludeCategories:
22 - Regex: '^(<|lib)'
23 Priority: 0
24 CommentPragmas: '\$(FRR|clippy)'
25 ContinuationIndentWidth: 8
26 ForEachMacros:
27 # lib
28 - frr_each
29 - frr_each_safe
30 - frr_each_from
31 - frr_with_mutex
32 - frr_with_privs
33 - LIST_FOREACH
34 - LIST_FOREACH_SAFE
35 - SLIST_FOREACH
36 - SLIST_FOREACH_SAFE
37 - SLIST_FOREACH_PREVPTR
38 - STAILQ_FOREACH
39 - STAILQ_FOREACH_SAFE
40 - TAILQ_FOREACH
41 - TAILQ_FOREACH_SAFE
42 - TAILQ_FOREACH_REVERSE
43 - TAILQ_FOREACH_REVERSE_SAFE
44 - RB_FOREACH
45 - RB_FOREACH_SAFE
46 - RB_FOREACH_REVERSE
47 - RB_FOREACH_REVERSE_SAFE
48 - SPLAY_FOREACH
49 - FOR_ALL_INTERFACES
50 - FOR_ALL_INTERFACES_ADDRESSES
51 - JSON_FOREACH
52 # libyang
53 - LY_TREE_FOR
54 - LY_TREE_DFS_BEGIN
55 # zebra
56 - RE_DEST_FOREACH_ROUTE
57 - RE_DEST_FOREACH_ROUTE_SAFE
58 - RNODE_FOREACH_RE
59 - RNODE_FOREACH_RE_SAFE
60 # bgpd
61 - UPDGRP_FOREACH_SUBGRP
62 - UPDGRP_FOREACH_SUBGRP_SAFE
63 - SUBGRP_FOREACH_PEER
64 - SUBGRP_FOREACH_PEER_SAFE
65 - SUBGRP_FOREACH_ADJ
66 - SUBGRP_FOREACH_ADJ_SAFE
67 - AF_FOREACH
68 - FOREACH_AFI_SAFI
69 # ospfd
70 - LSDB_LOOP