xref: /aosp_15_r20/external/libopenapv/.clang-format (revision abb65b4b03b69e1d508d4d9a44dcf199df16e7c3)
1# .clang-format
2
3# Base style to use
4#BasedOnStyle: Google
5
6# Indentation settings
7IndentWidth: 4
8UseTab: Never
9
10Cpp11BracedListStyle: false
11PointerAlignment: Right
12
13AlignConsecutiveDeclarations:
14  Enabled: true
15  AcrossEmptyLines: true
16  AcrossComments: true
17  AlignFunctionPointers: false
18
19AlignConsecutiveAssignments:
20  Enabled: false
21  AcrossEmptyLines: true
22  AcrossComments: true
23
24AlignConsecutiveMacros:
25  Enabled: true
26  AcrossEmptyLines: true
27  AcrossComments: true
28
29AlignTrailingComments: true
30
31# Break settings
32BreakBeforeBraces: Custom
33BraceWrapping:
34  AfterEnum: false
35  AfterStruct: false
36  SplitEmptyFunction: false
37  AfterFunction: true
38  BeforeElse: true
39
40AllowShortBlocksOnASingleLine: Never
41AllowShortCaseLabelsOnASingleLine: false
42AllowShortFunctionsOnASingleLine: Inline
43AllowShortIfStatementsOnASingleLine: false
44AllowShortLoopsOnASingleLine: false
45
46# Space settings
47SpaceBeforeParens: Custom
48SpaceBeforeParensOptions:
49  AfterControlStatements: false
50  AfterFunctionDefinitionName: false
51
52SpaceAfterCStyleCast: false
53SpacesInParentheses: false
54SpacesInSquareBrackets: false
55
56# Comment settings
57CommentPragmas: Preserve
58SortIncludes: Never
59
60# Other settings
61ColumnLimit: 0  # Disable column limit
62