Skip to content

Instantly share code, notes, and snippets.

@proller
Created July 4, 2024 14:10
Show Gist options
  • Select an option

  • Save proller/56d1dd1eb05fa8e45216633a5757beaa to your computer and use it in GitHub Desktop.

Select an option

Save proller/56d1dd1eb05fa8e45216633a5757beaa to your computer and use it in GitHub Desktop.
clang-format
Language: Cpp
Standard: c++20
AccessModifierOffset: -4
ColumnLimit: 0
IndentWidth: 4
AlignAfterOpenBracket: DontAlign
AlignEscapedNewlines: DontAlign
AlignOperands: DontAlign
BinPackArguments: false
BraceWrapping:
AfterClass: true
AfterControlStatement: MultiLine
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterStruct: true
BeforeElse: false
SplitEmptyFunction: false
SplitEmptyFunction: false
SplitEmptyRecord: false
BreakBeforeBraces: Custom
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
IndentAccessModifiers: false
IndentCaseLabels: true
InsertBraces: true
InsertNewlineAtEOF: true
InsertTrailingCommas: Wrapped
MaxEmptyLinesToKeep: 2
PackConstructorInitializers: Never
PointerAlignment: Left
ReferenceAlignment: Pointer
RemoveSemicolon: true
SpaceInEmptyBlock: true
# future:
# RemoveParentheses: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment