Skip to content

Instantly share code, notes, and snippets.

@jessestricker
Last active February 8, 2020 15:21
Show Gist options
  • Save jessestricker/29adee16c6c9d26fff1efd323da6161b to your computer and use it in GitHub Desktop.
Save jessestricker/29adee16c6c9d26fff1efd323da6161b to your computer and use it in GitHub Desktop.
Code Style for C and C++
BasedOnStyle: WebKit
Language: Cpp
Standard: Cpp11
UseTab: Never
ColumnLimit: 120
AlignEscapedNewlines: Left
NamespaceIndentation: All
IndentWidth: 2
AccessModifierOffset: -2
IndentPPDirectives: BeforeHash
Cpp11BracedListStyle: true
SpaceBeforeCpp11BracedList: false
BreakBeforeBraces: Attach
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: WithoutElse
AlwaysBreakTemplateDeclarations: Yes
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<.*\.h>'
Priority: 1
- Regex: "^<.*"
Priority: 2
- Regex: ".*"
Priority: 3
SortIncludes: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment