Would you like to use clang-format to auto-format the source code?
I ran whatstyle *.c *.h which tries to infer what clang-format settings to use by looking at the source code, and it gave the following .clang-format file:
BasedOnStyle: Chromium
AlignEscapedNewlines: DontAlign
AllowShortCaseLabelsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AlwaysBreakBeforeMultilineStrings: false
BinPackParameters: true
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Custom
ColumnLimit: 0
ContinuationIndentWidth: 2
SortIncludes: false
SpacesBeforeTrailingComments: 1
This can probably be simplified.
Would you like to use
clang-formatto auto-format the source code?I ran
whatstyle *.c *.hwhich tries to infer whatclang-formatsettings to use by looking at the source code, and it gave the following.clang-formatfile:This can probably be simplified.