Skip to content

Instantly share code, notes, and snippets.

@waddlesplash
Last active May 6, 2020 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waddlesplash/2842404d0a670ff75112 to your computer and use it in GitHub Desktop.
Save waddlesplash/2842404d0a670ff75112 to your computer and use it in GitHub Desktop.
.clang-format
---
BasedOnStyle: Mozilla
AlignAfterOpenBracket: DontAlign
AlignEscapedNewlines: DontAlign
AlignOperands: 'false'
AllowShortBlocksOnASingleLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortIfStatementsOnASingleLine: 'false'
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
BreakBeforeTernaryOperators: 'false'
BreakStringLiterals: 'false'
ColumnLimit: '100'
CompactNamespaces: 'false'
ConstructorInitializerIndentWidth: '4'
ContinuationIndentWidth: '4'
IndentCaseLabels: 'false'
IndentPPDirectives: AfterHash
IndentWidth: '4'
IndentWrappedFunctionNames: 'false'
KeepEmptyLinesAtTheStartOfBlocks: 'true'
Language: Cpp
ReflowComments: 'true'
SortIncludes: 'false'
SpacesInParentheses: 'false'
Standard: Cpp03
TabWidth: '4'
UseTab: Always
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment