xref: /aosp_15_r20/external/XNNPACK/.clang-format (revision 4bdc94577ba0e567308109d787f7fec7b531ce36)
1AllowShortFunctionsOnASingleLine: Inline
2PackConstructorInitializers: Never
3ColumnLimit: 120
4AlignAfterOpenBracket: AlwaysBreak
5BinPackParameters: false
6AllowAllParametersOfDeclarationOnNextLine: true
7BreakBeforeBraces: Stroustrup
8SpaceAfterCStyleCast: true
9PointerAlignment: Left
10ForEachMacros: ['XNN_UNPREDICTABLE', 'XNN_LIKELY', 'XNN_UNLIKELY']
11IfMacros: ['IF']
12IndentCaseLabels: true
13ContinuationIndentWidth: 2
14SpaceBeforeParens: Custom
15SpaceBeforeParensOptions:
16  AfterControlStatements: true
17  AfterIfMacros: true
18  AfterForeachMacros: false
19SpacesBeforeTrailingComments: 2
20