diff --git a/.clang-format b/.clang-format index 17396a3..331bc24 100644 --- a/.clang-format +++ b/.clang-format @@ -1,18 +1,18 @@ -# Generated from CLion C/C++ Code Style settings BasedOnStyle: LLVM AccessModifierOffset: -4 AlignAfterOpenBracket: Align AlignConsecutiveAssignments: None +AlignConsecutiveMacros: Consecutive AlignOperands: Align -AllowAllArgumentsOnNextLine: false -AllowAllConstructorInitializersOnNextLine: false -AllowAllParametersOfDeclarationOnNextLine: false -AllowShortBlocksOnASingleLine: Always +AllowAllArgumentsOnNextLine: true +AllowAllConstructorInitializersOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortBlocksOnASingleLine: Empty AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: All -AllowShortIfStatementsOnASingleLine: Always +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: false AllowShortLambdasOnASingleLine: All -AllowShortLoopsOnASingleLine: true +AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None AlwaysBreakTemplateDeclarations: Yes BreakBeforeBraces: Custom @@ -24,8 +24,8 @@ BraceWrapping: AfterFunction: false AfterNamespace: false AfterUnion: false - BeforeCatch: false - BeforeElse: false + BeforeCatch: true + BeforeElse: true IndentBraces: false SplitEmptyFunction: false SplitEmptyRecord: true @@ -33,19 +33,22 @@ BreakBeforeBinaryOperators: None BreakBeforeTernaryOperators: true BreakConstructorInitializers: BeforeColon BreakInheritanceList: BeforeColon -ColumnLimit: 0 +ColumnLimit: 80 CompactNamespaces: false -ContinuationIndentWidth: 8 -IndentCaseLabels: true +ContinuationIndentWidth: 4 +IndentCaseLabels: false IndentPPDirectives: None +# wait for this +# IndentPragmas: true IndentWidth: 4 KeepEmptyLinesAtTheStartOfBlocks: true MaxEmptyLinesToKeep: 2 -NamespaceIndentation: All -ObjCSpaceAfterProperty: false -ObjCSpaceBeforeProtocolList: true -PointerAlignment: Right -ReflowComments: false +NamespaceIndentation: None +# Force pointers to the type for C++. +DerivePointerAlignment: false +PointerAlignment: Left +ReflowComments: true +AlignTrailingComments: false SpaceAfterCStyleCast: true SpaceAfterLogicalNot: false SpaceAfterTemplateKeyword: false @@ -54,13 +57,13 @@ SpaceBeforeCpp11BracedList: false SpaceBeforeCtorInitializerColon: true SpaceBeforeInheritanceColon: true SpaceBeforeParens: ControlStatements -SpaceBeforeRangeBasedForLoopColon: true +SpaceBeforeRangeBasedForLoopColon: false SpaceInEmptyParentheses: false -SpacesBeforeTrailingComments: 0 +SpacesBeforeTrailingComments: 1 SpacesInAngles: false SpacesInCStyleCastParentheses: false SpacesInContainerLiterals: false SpacesInParentheses: false SpacesInSquareBrackets: false -TabWidth: 8 -UseTab: ForContinuationAndIndentation +TabWidth: 4 +UseTab: Always