diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..f6fa41c --- /dev/null +++ b/.clang-format @@ -0,0 +1,60 @@ +BasedOnStyle: WebKit +IndentWidth: 8 +DerivePointerAlignment: false +PointerAlignment: Right +ColumnLimit: 80 +AlignAfterOpenBracket: AlwaysBreak +AlignConsecutiveAssignments: None +AlignConsecutiveBitFields: None +AlignConsecutiveDeclarations: None +AlignConsecutiveMacros: AcrossEmptyLinesAndComments +AlignEscapedNewlines: Right +AlignOperands: AlignAfterOperator +AlignTrailingComments: true +AllowAllArgumentsOnNextLine: false +AllowAllConstructorInitializersOnNextLine: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: Empty +AllowShortCaseLabelsOnASingleLine: false +AllowShortEnumsOnASingleLine: false +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLambdasOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: true +AlwaysBreakTemplateDeclarations: Yes +BinPackArguments: false +BinPackParameters: false +ExperimentalAutoDetectBinPacking: false +BitFieldColonSpacing: Both +BreakBeforeBraces: Linux +BreakBeforeBinaryOperators: All +BreakBeforeTernaryOperators: true +BreakConstructorInitializers: BeforeComma +BreakInheritanceList: BeforeComma +BreakStringLiterals: true +ContinuationIndentWidth: 8 +Cpp11BracedListStyle: true +IncludeBlocks: Regroup +SortIncludes: true +IndentRequires: true +NamespaceIndentation: Inner +ReflowComments: true +SpacesBeforeTrailingComments: 3 +TabWidth: 8 +UseTab: AlignWithSpaces +BreakAfterReturnType: Automatic +PenaltyBreakAssignment: 1000000 +PenaltyReturnTypeOnItsOwnLine: 100000000 +PenaltyExcessCharacter: 10000000 +PenaltyBreakOpenParenthesis: 0 +PenaltyBreakBeforeFirstCallParameter: 0 +PenaltyIndentedWhitespace: 0 +AttributeMacros: + - FX_API +ForEachMacros: + - fx_btree_foreach + - fx_queue_foreach +MacroBlockBegin: "FX_(TYPE|ASSEMBLY).*_BEGIN" +MacroBlockEnd: "FX_(TYPE|ASSEMBLY).*_END"