Skip to content

Instantly share code, notes, and snippets.

@Hezkore
Last active October 23, 2021 21:23
Show Gist options
  • Save Hezkore/66e649bf6c1ddba031786f8bf2d00192 to your computer and use it in GitHub Desktop.
Save Hezkore/66e649bf6c1ddba031786f8bf2d00192 to your computer and use it in GitHub Desktop.
Clang-format 9.0.0
{
BasedOnStyle: Chromium,
UseTab: Always,
AlignAfterOpenBracket: DontAlign,
AlignConsecutiveMacros: true,
AlignConsecutiveAssignments: false,
AlignConsecutiveDeclarations: false,
AlignEscapedNewlines: Left,
AlignOperands: true,
AlignTrailingComments: true,
AllowAllArgumentsOnNextLine: true,
AllowAllConstructorInitializersOnNextLine: false,
AllowAllParametersOfDeclarationOnNextLine: false,
AllowShortBlocksOnASingleLine: true,
AllowShortCaseLabelsOnASingleLine: true,
AllowShortFunctionsOnASingleLine: All,
AllowShortIfStatementsOnASingleLine: Always,
AllowShortLambdasOnASingleLine: All,
AllowShortLoopsOnASingleLine: true,
AlwaysBreakAfterReturnType: None,
AlwaysBreakBeforeMultilineStrings: false,
AlwaysBreakTemplateDeclarations: Yes,
BinPackArguments: true,
BinPackParameters: false,
BreakBeforeBraces: Custom,
BraceWrapping:
{
AfterCaseLabel: true,
AfterClass: false,
AfterControlStatement: false,
AfterEnum: false,
AfterFunction: false,
AfterNamespace: false,
AfterStruct: false,
AfterUnion: false,
AfterExternBlock: false,
BeforeCatch: false,
BeforeElse: false,
IndentBraces: false,
SplitEmptyFunction: false,
SplitEmptyRecord: false,
SplitEmptyNamespace: false,
},
BreakBeforeTernaryOperators: true,
BreakConstructorInitializers: BeforeComma,
Cpp11BracedListStyle: false,
ConstructorInitializerIndentWidth: 70,
ContinuationIndentWidth: 70,
AccessModifierOffset: -6,
IndentWidth: 8,
IncludeBlocks: Regroup,
IndentCaseLabels: true,
IndentPPDirectives: AfterHash,
IndentWrappedFunctionNames: true,
KeepEmptyLinesAtTheStartOfBlocks: false,
MaxEmptyLinesToKeep: 1,
NamespaceIndentation: All,
PointerAlignment: Left,
SortIncludes: true,
SortUsingDeclarations: true,
SpaceAfterLogicalNot: false,
SpaceAfterTemplateKeyword: false,
SpaceBeforeAssignmentOperators: true,
SpaceBeforeCpp11BracedList: true,
SpaceBeforeCtorInitializerColon: false,
SpaceBeforeInheritanceColon: false,
SpaceBeforeParens: ControlStatements,
SpaceBeforeRangeBasedForLoopColon: true,
SpaceAfterCStyleCast: false,
SpaceInEmptyParentheses: false,
SpacesInAngles: false,
SpacesInCStyleCastParentheses: false,
SpacesInParentheses: true,
SpacesInSquareBrackets: false,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment