Last active
February 8, 2020 15:21
-
-
Save jessestricker/29adee16c6c9d26fff1efd323da6161b to your computer and use it in GitHub Desktop.
Code Style for C and C++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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