]> git.proxmox.com Git - mirror_frr.git/blob - .clang-format
zebra: Allow ns delete to happen after under/over flow checks
[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 - LIST_FOREACH
29 - LIST_FOREACH_SAFE
30 - SLIST_FOREACH
31 - SLIST_FOREACH_SAFE
32 - SLIST_FOREACH_PREVPTR
33 - STAILQ_FOREACH
34 - STAILQ_FOREACH_SAFE
35 - TAILQ_FOREACH
36 - TAILQ_FOREACH_SAFE
37 - TAILQ_FOREACH_REVERSE
38 - TAILQ_FOREACH_REVERSE_SAFE
39 - RB_FOREACH
40 - RB_FOREACH_SAFE
41 - RB_FOREACH_REVERSE
42 - RB_FOREACH_REVERSE_SAFE
43 - SPLAY_FOREACH
44 - FOR_ALL_INTERFACES
45 - FOR_ALL_INTERFACES_ADDRESSES
46 - JSON_FOREACH
47 # libyang
48 - LY_TREE_FOR
49 - LY_TREE_DFS_BEGIN
50 # zebra
51 - RE_DEST_FOREACH_ROUTE
52 - RE_DEST_FOREACH_ROUTE_SAFE
53 - RNODE_FOREACH_RE
54 - RNODE_FOREACH_RE_SAFE
55 # bgpd
56 - UPDGRP_FOREACH_SUBGRP
57 - UPDGRP_FOREACH_SUBGRP_SAFE
58 - SUBGRP_FOREACH_PEER
59 - SUBGRP_FOREACH_PEER_SAFE
60 - SUBGRP_FOREACH_ADJ
61 - SUBGRP_FOREACH_ADJ_SAFE
62 - AF_FOREACH
63 - FOREACH_AFI_SAFI
64 # ospfd
65 - LSDB_LOOP