blob: 20adf934634d8dea0721bfce513e3683330eacac [file] [log] [blame]
Mateusz Starzyk200f58c2021-07-20 15:49:39 +02001---
2Language: Cpp
3AlignAfterOpenBracket: Align
4AlignConsecutiveAssignments: false
5AlignConsecutiveBitFields: Consecutive
6AlignConsecutiveDeclarations: false
7AlignConsecutiveMacros: Consecutive
8AlignEscapedNewlines: Left
9AlignOperands: true
10AlignTrailingComments: false
11AllowAllArgumentsOnNextLine: false
12AllowAllParametersOfDeclarationOnNextLine: false
13AllowShortBlocksOnASingleLine: false
14AllowShortCaseLabelsOnASingleLine: false
15AllowShortEnumsOnASingleLine: false
16AllowShortFunctionsOnASingleLine: None
17AllowShortIfStatementsOnASingleLine: false
18AllowShortLoopsOnASingleLine: false
19AlwaysBreakAfterDefinitionReturnType: None
20AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
22AlwaysBreakTemplateDeclarations: false
23BinPackArguments: true
24BinPackParameters: false
25BitFieldColonSpacing: Both
26BreakBeforeBinaryOperators: None
27BraceWrapping:
28 AfterCaseLabel: false
29 AfterControlStatement: Never
30 AfterEnum: false
31 AfterFunction: true
32 AfterStruct: false
33 AfterUnion: false
34 AfterExternBlock: false
35 BeforeElse: false
36 BeforeWhile: false
37 IndentBraces: false
38 SplitEmptyFunction: true
39 SplitEmptyRecord: true
40 SplitEmptyNamespace: true
41BreakBeforeBraces: Custom
42BreakBeforeInheritanceComma: false
43BreakBeforeTernaryOperators: false
44BreakStringLiterals: false
45ColumnLimit: 80
46# CommentPragmas prevent formatting of comments fitting particular patterns.
47# Clang-format accepts only one pragma, so we need too prepapre a list of patterns joined with "|".
48# * test cases: BEGIN_CASE|END_CASE
49# * special string for check-names script: ^no-check-names
50# * doxygen blocks: \\name|\\brief|\\param|\\return|^ {11}|\{.*\}
51# The '^ {11}' stands for minimal indent in multiline Doxygen comments.
52# It comes from the length of \brief keyword + 1 space prefix before the keyword
53# and 4 spaces suffix after it, as in: " * \brief Function description ..."
54# ^_________^
55# * KreMLin code generation: "KreMLin invocation"
56CommentPragmas: 'BEGIN_CASE|END_CASE|^no-check-names|\\name|\\brief|\\param|\\return|^ {11}|\{.*\}|KreMLin invocation'
57ContinuationIndentWidth: 4
58Cpp11BracedListStyle: false
59DerivePointerAlignment: false
60DisableFormat: false
61ExperimentalAutoDetectBinPacking: false
62ForEachMacros: []
63IncludeBlocks: Preserve
64IncludeCategories:
65 - Regex: '.*'
66 Priority: 1
67IncludeIsMainRegex: '(Test)?$'
68IndentCaseBlocks: true
69IndentCaseLabels: true
70IndentExternBlock: NoIndent
71IndentGotoLabels: false
72IndentPPDirectives: AfterHash
73IndentWidth: 4
74IndentWrappedFunctionNames: false
75KeepEmptyLinesAtTheStartOfBlocks: false
76MacroBlockBegin: ''
77MacroBlockEnd: ''
78MaxEmptyLinesToKeep: 1
79PenaltyBreakAssignment: 10
80PenaltyBreakBeforeFirstCallParameter: 30
81PenaltyBreakComment: 10
82PenaltyBreakFirstLessLess: 0
83PenaltyBreakString: 50
84PenaltyExcessCharacter: 100
85PenaltyReturnTypeOnItsOwnLine: 60
86PointerAlignment: Right
87ReflowComments: true
88SortIncludes: false
89SortUsingDeclarations: true
90SpaceAfterCStyleCast: false
91SpaceAfterLogicalNot: false
92SpaceAroundPointerQualifiers: Default
93SpaceBeforeAssignmentOperators: true
94SpaceBeforeCaseColon: false
95SpaceBeforeParens: ControlStatements
96SpaceBeforeSquareBrackets: false
97SpaceInEmptyBlock: false
98SpaceInEmptyParentheses: false
99SpacesBeforeTrailingComments: 1
100SpacesInAngles: false
101SpacesInContainerLiterals: false
102SpacesInCStyleCastParentheses: false
103SpacesInConditionalStatement: false
104SpacesInParentheses: false
105SpacesInSquareBrackets: false
106Standard: Cpp11
107StatementAttributeLikeMacros: []
108StatementMacros: []
109TypenameMacros: ['MBEDTLS_PRIVATE']
110UseCRLF: false
111UseTab: Never
112WhitespaceSensitiveMacros: []
113...