Skip to content

clang-format #2

@lassik

Description

@lassik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions