This seems to be as close as I can get it to my style. I'd've wanted to also set Cpp11BracedListStyle[1] to Block, but that ended up misformatting some compound literals that included expressions with binary operators. I'm also unsure what is going on with the formatting of _Generic(). [1] https://clang.llvm.org/docs/ClangFormatStyleOptions.html#cpp11bracedliststyle
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
AlignAfterOpenBracket: false
|
|
AlignEscapedNewlines: DontAlign
|
|
AlignOperands: DontAlign
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AllowShortBlocksOnASingleLine: Never
|
|
AllowShortCaseLabelsOnASingleLine: true
|
|
AllowShortEnumsOnASingleLine: true
|
|
AllowShortFunctionsOnASingleLine: None
|
|
BinPackParameters: OnePerLine
|
|
BreakAfterAttributes: Never
|
|
BreakAfterOpenBracketBracedList: true
|
|
BreakAfterOpenBracketFunction: true
|
|
BreakAfterOpenBracketIf: true
|
|
BreakAfterOpenBracketLoop: true
|
|
BreakAfterOpenBracketSwitch: true
|
|
BreakBeforeBinaryOperators: NonAssignment
|
|
BreakBeforeBraces: Attach
|
|
BreakBeforeCloseBracketBracedList: true
|
|
BreakBeforeCloseBracketFunction: true
|
|
BreakBeforeCloseBracketIf: true
|
|
BreakBeforeCloseBracketLoop: true
|
|
BreakBeforeCloseBracketSwitch: true
|
|
BreakBinaryOperations: RespectPrecedence
|
|
ColumnLimit: 80
|
|
IndentCaseLabels: true
|
|
IndentPPDirectives: BeforeHash
|
|
IndentWidth: 4
|
|
Language: C
|
|
NumericLiteralCase:
|
|
ExponentLetter: Lower
|
|
HexDigit: Lower
|
|
Prefix: Lower
|
|
Suffix: Upper
|
|
QualifierAlignment: Right
|
|
UseTab: ForContinuationAndIndentation
|
|
SpaceBeforeCpp11BracedList: true
|
|
TabWidth: 4
|
|
TypenameMacros: [SPAN, VEC]
|