| 1 |
AllowShortFunctionsOnASingleLine: Inline |
| 2 |
PackConstructorInitializers: Never |
| 3 |
ColumnLimit: 120 |
| 4 |
AlignAfterOpenBracket: AlwaysBreak |
| 5 |
BinPackParameters: false |
| 6 |
AllowAllParametersOfDeclarationOnNextLine: true |
| 7 |
BreakBeforeBraces: Stroustrup |
| 8 |
SpaceAfterCStyleCast: true |
| 9 |
PointerAlignment: Left |
| 10 |
ForEachMacros: ['XNN_UNPREDICTABLE', 'XNN_LIKELY', 'XNN_UNLIKELY'] |
| 11 |
IfMacros: ['IF'] |
| 12 |
IndentCaseLabels: true |
| 13 |
ContinuationIndentWidth: 2 |
| 14 |
SpaceBeforeParens: Custom |
| 15 |
SpaceBeforeParensOptions: |
| 16 |
AfterControlStatements: true |
| 17 |
AfterIfMacros: true |
| 18 |
AfterForeachMacros: false |
| 19 |
SpacesBeforeTrailingComments: 2 |
| 20 |
IncludeBlocks: Regroup |
| 21 |
IncludeCategories: |
| 22 |
- Regex: '<xnnpack[./][[:alnum:].-]+>' # match XNNPack includes first |
| 23 |
Priority: 5 |
| 24 |
- Regex: 'benchmark.h' # includes used in benchmarks |
| 25 |
Priority: 3 |
| 26 |
- Regex: 'bench/' # includes used in benchmarks |
| 27 |
Priority: 3 |
| 28 |
- Regex: 'gtest.h' # includes used in tests |
| 29 |
Priority: 3 |
| 30 |
- Regex: 'gmock.h' # includes used in tests |
| 31 |
Priority: 3 |
| 32 |
- Regex: '<[[:alnum:].]+>' # system headers |
| 33 |
Priority: 2 # lower priority to keep it sorted first before XNNPack includes |
| 34 |
MaxEmptyLinesToKeep: 2 # used to separate includes from functions |