]> git.ipfire.org Git - people/ms/suricata.git/blame - .clang-format
detect: allows <> syntax for uint ranges
[people/ms/suricata.git] / .clang-format
CommitLineData
ce7440e2
RF
1# Suricata settings as per
2# doc/devguide/codebase/code-style.rst
3#
4# This file is set up for clang 9. For the settings available, see
5# https://releases.llvm.org/9.0.0/tools/clang/docs/ClangFormatStyleOptions.html
6#
7# For the settings available in the latest clang release, see
8# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
9---
10BasedOnStyle: LLVM
11AlignAfterOpenBracket: DontAlign
12AlignConsecutiveMacros: true
13AlignEscapedNewlines: Right
14# clang 10: AllowShortBlocksOnASingleLine: Never
15# clang 11: AllowShortEnumsOnASingleLine: false
16AllowShortFunctionsOnASingleLine: None
17# BreakBeforeBraces: Mozilla is closest, but does not split empty functions/structs
18BraceWrapping:
19 AfterClass: true
20 AfterControlStatement: false
21 AfterEnum: false
22 AfterFunction: true
23 AfterStruct: false
24 AfterUnion: false
25 AfterExternBlock: true
26 BeforeElse: false
27 IndentBraces: false
28 SplitEmptyFunction: true
29 SplitEmptyRecord: true
30BreakBeforeBraces: Custom
31Cpp11BracedListStyle: false
32ColumnLimit: 100
33ConstructorInitializerIndentWidth: 8
34ContinuationIndentWidth: 8
35ForEachMacros: ['json_array_foreach', 'json_object_foreach', 'SLIST_FOREACH',
36 'SLIST_FOREACH_PREVPTR', 'LIST_FOREACH', 'SIMPLEQ_FOREACH', 'TAILQ_FOREACH',
37 'TAILQ_FOREACH_SAFE', 'TAILQ_FOREACH_REVERSE', 'CIRCLEQ_FOREACH',
38 'CIRCLEQ_FOREACH_REVERSE', 'CIRCLEQ_FOREACH_SAFE', 'CIRCLEQ_FOREACH_REVERSE_SAFE',
39 'SPLAY_FOREACH, RB_FOREACH', 'RB_FOREACH_FROM', 'RB_FOREACH_SAFE',
40 'RB_FOREACH_REVERSE', 'RB_FOREACH_REVERSE_FROM', 'RB_FOREACH_REVERSE_SAFE' ]
41IndentCaseLabels: true
42IndentWidth: 4
43ReflowComments: true
44SortIncludes: false
45
46# implicit by LLVM style
47#BreakBeforeTernaryOperators: true
48#UseTab: Never
49#TabWidth: 8
50
51...