diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..3cc7dfe9 --- /dev/null +++ b/.clang-format @@ -0,0 +1,37 @@ +--- +BasedOnStyle: Webkit +Language: Cpp +SpaceBeforeParens: Always +SpaceAfterTemplateKeyword: true +Standard: Cpp11 +TabWidth: 4 +IndentWidth: 4 +PointerAlignment: Middle +UseTab: ForIndentation +BreakBeforeBraces: Custom +AlignEscapedNewlines: Left +AllowShortBlocksOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +BreakConstructorInitializersBeforeComma: true +BreakConstructorInitializers: AfterColon +ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 0 +ContinuationIndentWidth: 0 +KeepEmptyLinesAtTheStartOfBlocks: false +IndentCaseLabels: true +BraceWrapping: + AfterEnum: true + AfterStruct: true + SplitEmptyFunction: true + AfterControlStatement: true + AfterFunction: true + AfterNamespace: true + AfterUnion: true + AfterClass: true + BeforeCatch: true + BeforeElse: true + SplitEmptyRecord: true + SplitEmptyNamespace: true +...