Last active
July 30, 2019 20:07
-
-
Save FelixK15/3ab329a1eb8591aac51a93310791bb94 to your computer and use it in GitHub Desktop.
.clang_format for private projects
This file contains hidden or 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
# General | |
TabWidth: 4 | |
Language: Cpp | |
BreakStringLiterals: true | |
PointerAlignment: Left | |
NamespaceIndentation: All | |
Cpp11BracedListStyle: false | |
# Spacing | |
SpaceAfterCStyleCast: false | |
SpacesInAngles: true | |
SpacesInCStyleCastParentheses: true | |
SpacesInContainerLiterals: true | |
SpacesInParentheses: true | |
SpacesInSquareBrackets: true | |
SpaceInEmptyParentheses: false | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeParens: Never | |
SpaceAfterLogicalNot: false | |
SpaceAfterTemplateKeyword: false | |
SpaceBeforeCpp11BracedList: false | |
SpaceBeforeCtorInitializerColon: true | |
SpaceBeforeInheritanceColon: true | |
SpaceBeforeRangeBasedForLoopColon: true | |
# Alignment | |
AlignConsecutiveMacros: true | |
AlignConsecutiveAssignments: true | |
AlignEscapeNewlineLeft: true | |
AlignTrailingComments: true | |
# Single line handling | |
AllowShortCaseLabelsOnASingleLine: true | |
AllowShortIfStatementsOnASingleLine: Never | |
AllowShortLambdasOnASingleLine: None | |
AllowShortFunctionsOnASingleLine: None | |
AllowShortLoopsOnASingleLine: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment