-
-
Save ChlorUpload/10358c0d233a70657ce8a67df8c8b998 to your computer and use it in GitHub Desktop.
My clang-format configuration file
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
# Copyright (c) 2020-2021 Chanjung Kim (paxbun). All rights reserved. | |
# See Clang 10 documentation for more information. | |
BasedOnStyle: LLVM | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveDeclarations: true | |
AlignConsecutiveMacros: true | |
AlignEscapedNewlines: Right | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllArgumentsOnNextLine: true | |
AllowAllConstructorInitializersOnNextLine: false | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: Empty | |
AllowShortCaseLabelsOnASingleLine: true | |
AllowShortFunctionsOnASingleLine: Empty | |
AllowShortIfStatementsOnASingleLine: Always | |
AllowShortLambdasOnASingleLine: All | |
AllowShortLoopsOnASingleLine: true | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakBeforeMultilineStrings: false | |
AlwaysBreakTemplateDeclarations: Yes | |
BinPackArguments: false | |
BinPackParameters: false | |
BraceWrapping: | |
AfterCaseLabel: true | |
AfterClass: true | |
AfterControlStatement: Always | |
AfterEnum: true | |
AfterFunction: true | |
AfterNamespace: true | |
AfterStruct: true | |
AfterUnion: true | |
AfterExternBlock: true | |
BeforeCatch: true | |
BeforeElse: true | |
IndentBraces: false | |
SplitEmptyFunction: false | |
SplitEmptyRecord: false | |
SplitEmptyNamespace: false | |
BreakBeforeBinaryOperators: All | |
BreakBeforeBraces: Custom | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializers: AfterColon | |
BreakInheritanceList: AfterColon | |
BreakStringLiterals: true | |
ColumnLimit: 100 | |
CompactNamespaces: false | |
ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 4 | |
Cpp11BracedListStyle: false | |
FixNamespaceComments: false | |
IncludeBlocks: Regroup | |
IncludeCategories: | |
- Regex: "^<.*/.*\\.(hh|hpp|h)>" | |
Priority: 1 | |
- Regex: "^<.*\\.(hh|hpp|h)>" | |
Priority: 2 | |
- Regex: ".*" | |
Priority: 3 | |
IncludeIsMainRegex: '(Test)?$' | |
IndentCaseLabels: false | |
IndentGotoLabels: false | |
IndentPPDirectives: AfterHash | |
IndentWidth: 4 | |
IndentWrappedFunctionNames: false | |
Language: Cpp | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: None | |
PenaltyReturnTypeOnItsOwnLine: 80 | |
PointerAlignment: Left | |
ReflowComments: true | |
SortIncludes: true | |
SortUsingDeclarations: true | |
SpaceAfterCStyleCast: false | |
SpaceAfterLogicalNot: false | |
SpaceAfterTemplateKeyword: true | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeCpp11BracedList: true | |
SpaceBeforeCtorInitializerColon: true | |
SpaceBeforeInheritanceColon: true | |
SpaceBeforeParens: ControlStatements | |
SpaceBeforeRangeBasedForLoopColon: true | |
SpaceBeforeSquareBrackets: false | |
SpaceInEmptyBlock: false | |
SpaceInEmptyParentheses: false | |
SpacesBeforeTrailingComments: 1 | |
SpacesInAngles: false | |
SpacesInCStyleCastParentheses: false | |
SpacesInConditionalStatement: false | |
SpacesInParentheses: false | |
SpacesInSquareBrackets: false | |
Standard: c++20 | |
TabWidth: 4 | |
UseCRLF: false | |
UseTab: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment