Skip to content

Instantly share code, notes, and snippets.

@flamewing
Last active December 18, 2018 18:42
Show Gist options
  • Save flamewing/7cb8a67bacee3311ce6453aa4b03ad44 to your computer and use it in GitHub Desktop.
Save flamewing/7cb8a67bacee3311ce6453aa4b03ad44 to your computer and use it in GitHub Desktop.
A .clang-format file with some good default values
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlwaysBreakTemplateDeclarations: Yes
IndentPPDirectives: AfterHash
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
NamespaceIndentation: All
PointerAlignment: Left
SpacesInContainerLiterals: false
TabWidth: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment