Created
August 1, 2022 15:37
-
-
Save pajlada/31dbde9c65c597ec2ce7859803698777 to your computer and use it in GitHub Desktop.
.clang-format for use in chatterino later
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
Language: Cpp | |
AccessModifierOffset: -4 | |
AlignEscapedNewlinesLeft: true | |
AllowShortFunctionsOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLambdasOnASingleLine: Empty | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterDefinitionReturnType: false | |
AlwaysBreakBeforeMultilineStrings: false | |
BasedOnStyle: Google | |
BraceWrapping: { | |
AfterClass: 'true' | |
AfterControlStatement: 'true' | |
AfterFunction: 'true' | |
AfterNamespace: 'false' | |
BeforeCatch: 'true' | |
BeforeElse: 'true' | |
} | |
BreakBeforeBraces: Custom | |
BreakConstructorInitializersBeforeComma: true | |
ColumnLimit: 80 | |
ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
DerivePointerBinding: false | |
FixNamespaceComments: true | |
IndentCaseLabels: true | |
IndentWidth: 4 | |
IndentWrappedFunctionNames: true | |
IndentPPDirectives: AfterHash | |
IncludeBlocks: Regroup | |
IncludeCategories: | |
# Project includes | |
- Regex: '^"[a-zA-Z\._-]+(/[a-zA-Z\._-]+)*"$' | |
Priority: 1 | |
# Third party library includes | |
- Regex: '<[[:alnum:].]+/[a-zA-Z\._\/-]+>' | |
Priority: 3 | |
# Qt includes | |
- Regex: '<Q[a-zA-Z\._\/-]+>' | |
Priority: 3 | |
# Standard library includes | |
- Regex: '^<[a-zA-Z_]+>$' | |
Priority: 4 | |
NamespaceIndentation: Inner | |
PointerBindsToType: false | |
SpacesBeforeTrailingComments: 2 | |
Standard: Auto | |
ReflowComments: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment