Skip to content
Snippets Groups Projects
.clang-format 1.11 KiB
Newer Older
# Last Update: 2019-08-18T02:32:00
Language: Cpp
AccessModifierOffset: '-2'
AlignAfterOpenBracket: 'AlwaysBreak'
AlignConsecutiveAssignments : 'true'
AlignConsecutiveDeclarations: 'true'
AllowShortBlocksOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: 'None'
AlwaysBreakTemplateDeclarations: 'true'
BinPackArguments: 'false'
BinPackParameters: 'false'
BreakBeforeBraces: 'Custom'
BreakBeforeTernaryOperators: 'true'
Grant Kim's avatar
Grant Kim committed
BreakConstructorInitializersStyle: 'BeforeComma'
BreakInheritanceList: 'BeforeComma'
ColumnLimit: '80'
CompactNamespaces: 'true'
DerivePointerAlignment: 'false'
FixNamespaceComments: 'true'
IncludeBlocks: Regroup
IndentPPDirectives: AfterHash
IndentWidth: '2'
NamespaceIndentation: 'None'
PointerAlignment: 'Right'
ReflowComments: 'true'
SpaceBeforeAssignmentOperators: 'true'
SpacesInParentheses: 'true'
TabWidth: '2'
UseTab: Never

BraceWrapping: {
  AfterClass: 'true',
  AfterControlStatement: 'true',
  AfterEnum: 'true',
  AfterExternBlock: 'false',
  AfterFunction: 'true',
  AfterNamespace: 'false',
  AfterStruct: 'true',
  AfterUnion: 'true',
  BeforeCatch: 'true',
  BeforeElse: 'true',
}
...