diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..f04876ef9 --- /dev/null +++ b/.clang-format @@ -0,0 +1,36 @@ +BasedOnStyle: Google +IndentWidth: 4 +TabWidth: 4 +UseTab: Never +ColumnLimit: 120 +BreakBeforeBraces: Custom +BraceWrapping: + AfterClass: true + AfterControlStatement: true + AfterEnum: true + AfterFunction: true + AfterNamespace: true + AfterObjCDeclaration: true + AfterStruct: true + AfterUnion: true + BeforeCatch: true + BeforeElse: true + IndentBraces: false +AllowShortIfStatementsOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: true +AllowShortFunctionsOnASingleLine: All +ObjCSpaceAfterProperty: true +ObjCBlockIndentWidth: 4 +ObjCSpaceBeforeProtocolList: true +SpaceAfterCStyleCast: false +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: false +SpacesInAngles: false +SpacesInContainerLiterals: false +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +Cpp11BracedListStyle: false +DerivePointerAlignment: false +PointerAlignment: Left +IndentCaseLabels: true