diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..cac9cee9 --- /dev/null +++ b/.clang-format @@ -0,0 +1,28 @@ +--- +BasedOnStyle: Google +Language: Cpp +Standard: Cpp03 +TabWidth: 4 +UseTab: Never +ColumnLimit: 120 +NamespaceIndentation: All + +AccessModifierOffset: -4 +ContinuationIndentWidth: 4 +IndentWidth: 4 + +BreakBeforeBraces: Custom +BraceWrapping: + AfterStruct: true + AfterClass: true + AfterFunction: true + AfterControlStatement: false + AfterEnum: true + AfterNamespace: true + +AllowShortFunctionsOnASingleLine: None +AllowShortBlocksOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false + +...