diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..16237079 --- /dev/null +++ b/.clang-format @@ -0,0 +1,26 @@ +BasedOnStyle: Google +Standard: Cpp17 +ColumnLimit: 80 +IndentWidth: 2 +ContinuationIndentWidth: 4 +ConstructorInitializerIndentWidth: 4 +AccessModifierOffset: -1 +NamespaceIndentation: None +UseTab: Never +PointerAlignment: Left +ReferenceAlignment: Left +DerivePointerAlignment: false +AlignAfterOpenBracket: Align +BreakBeforeBraces: Attach +BreakBeforeBinaryOperators: None +BreakBeforeTernaryOperators: true +SpaceBeforeParens: ControlStatements +SpacesBeforeTrailingComments: 2 +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: WithoutElse +AllowShortLoopsOnASingleLine: true +AllowShortLambdasOnASingleLine: All +BinPackArguments: true +BinPackParameters: true +SortIncludes: false +IncludeBlocks: Preserve