# 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]
