]> git.proxmox.com Git - mirror_frr.git/blame - .clang-format
ospfd: fix clang warning & ci-ospf test
[mirror_frr.git] / .clang-format
CommitLineData
888ac268
DL
1---
2BasedOnStyle: LLVM
3Language: Cpp
4IndentWidth: 8
5UseTab: Always
6BreakBeforeBraces: Linux
7AlwaysBreakBeforeMultilineStrings: true
8AllowShortIfStatementsOnASingleLine: false
9AllowShortLoopsOnASingleLine: false
10AllowShortFunctionsOnASingleLine: false
11IndentCaseLabels: false
12AlignEscapedNewlinesLeft: false
13AlignTrailingComments: true
14AllowAllParametersOfDeclarationOnNextLine: false
15AlignAfterOpenBracket: true
16SpaceAfterCStyleCast: false
17MaxEmptyLinesToKeep: 2
18BreakBeforeBinaryOperators: NonAssignment
19BreakStringLiterals: false
20SortIncludes: false
21IncludeCategories:
22 - Regex: '^(<|lib)'
23 Priority: 0
24CommentPragmas: '\$(FRR|clippy)'
25ContinuationIndentWidth: 8
a2addae8
RW
26ForEachMacros:
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 # zebra
45 - RE_DEST_FOREACH_ROUTE
46 - RE_DEST_FOREACH_ROUTE_SAFE
47 - RNODE_FOREACH_RE
48 - RNODE_FOREACH_RE_SAFE
49 # bgpd
50 - UPDGRP_FOREACH_SUBGRP
51 - UPDGRP_FOREACH_SUBGRP_SAFE
52 - SUBGRP_FOREACH_PEER
53 - SUBGRP_FOREACH_PEER_SAFE
54 - SUBGRP_FOREACH_ADJ
55 - SUBGRP_FOREACH_ADJ_SAFE
56 - AF_FOREACH
57 - FOREACH_AFI_SAFI