Skip to content

Instantly share code, notes, and snippets.

@kurotych
Last active August 22, 2019 19:35
Show Gist options
  • Save kurotych/3a682c739b35ab46409ee0258f0e6985 to your computer and use it in GitHub Desktop.
Save kurotych/3a682c739b35ab46409ee0258f0e6985 to your computer and use it in GitHub Desktop.
My code style
Language: Cpp
Standard: Cpp11
IndentWidth: 4
PointerAlignment: Left
ColumnLimit: 90
AllowShortIfStatementsOnASingleLine: true
AccessModifierOffset: -4
AlignEscapedNewlinesLeft: true
AlignTrailingComments: true
AllowShortFunctionsOnASingleLine: true
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: true
BinPackParameters: true
BreakBeforeBinaryOperators: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterUnion: true
AfterEnum: true
AfterStruct: true
AfterClass: true
AfterFunction: true
AfterNamespace: true
AfterExternBlock: true
AfterControlStatement: true
BeforeCatch: false
BeforeElse: true
IndentCaseLabels: true
IndentPPDirectives: None
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: false
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: false
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment