-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy path.clang-format
More file actions
32 lines (31 loc) · 900 Bytes
/
.clang-format
File metadata and controls
32 lines (31 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# clang-format configuration for astropy C code
BasedOnStyle: Google
IndentWidth: 4
TabWidth: 4
UseTab: Never
ContinuationIndentWidth: 4
ColumnLimit: 100
AlignAfterOpenBracket: BlockIndent
AlwaysBreakAfterReturnType: None
BreakBeforeBraces: Stroustrup
InsertBraces: true
BinPackArguments: false
BinPackParameters: false
PointerAlignment: Right
SpaceAfterCStyleCast: false
IncludeBlocks: Preserve
SortIncludes: false
ReflowComments: false
MaxEmptyLinesToKeep: 2
KeepEmptyLinesAtTheStartOfBlocks: true
AllowShortEnumsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
IndentPPDirectives: None
IndentGotoLabels: false
SpaceBeforeParens: ControlStatements
SpacesBeforeTrailingComments: 1
BreakStringLiterals: false
DerivePointerAlignment: false
AlignEscapedNewlines: DontAlign
StatementMacros: [PyObject_HEAD, PyObject_VAR_HEAD, PyObject_HEAD_EXTRA]