diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..8f020d0 --- /dev/null +++ b/.clang-format @@ -0,0 +1,20 @@ +--- +BasedOnStyle: WebKit +AlignAfterOpenBracket: Align +AlignEscapedNewlines: DontAlign +AlignOperands: true +AlignTrailingComments: true +AllowShortBlocksOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: true +AllowShortIfStatementsOnASingleLine: true +AllowShortLoopsOnASingleLine: true +BraceWrapping: + AfterFunction: true + BeforeElse: true +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Custom +ContinuationIndentWidth: 0 +DerivePointerAlignment: true +MaxEmptyLinesToKeep: 2 +SortIncludes: false +SpacesBeforeTrailingComments: 2