Skip to content

Instantly share code, notes, and snippets.

@nyorain
Created April 23, 2018 21:53
Show Gist options
  • Save nyorain/208988f0222caa7499bb82eaf91eeb04 to your computer and use it in GitHub Desktop.
Save nyorain/208988f0222caa7499bb82eaf91eeb04 to your computer and use it in GitHub Desktop.
IndentWidth: 4
PointerAlignment: Left
Language: Cpp
UseTab: ForIndentation
TabWidth: 4
ColumnLimit: 80
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: DontAlign
AlignOperands: false
AlignTrailingComments: false
# AllowAllParametersOfDeclarationOnNextLine
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
# AlwaysBreakBeforeMultilineStrings
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: true
# BraceWrapping:
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
# BreakBeforeTernaryOperators: false
BreakConstructorInitializers: AfterColon
Cpp11BracedListStyle: true
FixNamespaceComments: true
IncludeBlocks: Preserve
IndentCaseLabels: true
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
ReflowComments: true
# SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
# SpaceBeforeCtorInitializerColon: true
# SpaceBeforeInheritanceColon: true
SpaceBeforeParens: Never
# SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
# SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
# SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment