Last active
April 23, 2024 10:56
-
-
Save deqyra/de07b037d54ecb1cabef2a31c636336a to your computer and use it in GitHub Desktop.
Clang-format file
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 | |
# BasedOnStyle: LLVM | |
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: BlockIndent | |
AlignArrayOfStructures: Right | |
AlignConsecutiveAssignments: | |
Enabled: true | |
AcrossEmptyLines: true | |
AcrossComments: true | |
AlignCompound: true | |
PadOperators: true | |
AlignConsecutiveBitFields: | |
Enabled: true | |
AcrossEmptyLines: true | |
AcrossComments: true | |
AlignCompound: true | |
PadOperators: true | |
AlignConsecutiveDeclarations: | |
Enabled: true | |
AcrossEmptyLines: true | |
AcrossComments: true | |
AlignCompound: true | |
PadOperators: true | |
AlignConsecutiveMacros: | |
Enabled: true | |
AcrossEmptyLines: true | |
AcrossComments: true | |
AlignCompound: true | |
PadOperators: true | |
AlignConsecutiveShortCaseStatements: | |
Enabled: true | |
AcrossEmptyLines: false | |
AcrossComments: false | |
AlignCaseColons: false | |
AlignEscapedNewlines: Right | |
AlignOperands: AlignAfterOperator | |
AlignTrailingComments: | |
Kind: Always | |
OverEmptyLines: 1 | |
AllowAllArgumentsOnNextLine: true | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: Always | |
AllowShortCaseLabelsOnASingleLine: false | |
AllowShortEnumsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: Inline | |
AllowShortIfStatementsOnASingleLine: WithoutElse | |
AllowShortLambdasOnASingleLine: All | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterDefinitionReturnType: None | |
AlwaysBreakAfterReturnType: None | |
AlwaysBreakBeforeMultilineStrings: true | |
AlwaysBreakTemplateDeclarations: Yes | |
AttributeMacros: | |
- __capability | |
BinPackArguments: true | |
BinPackParameters: false | |
BitFieldColonSpacing: Both | |
BraceWrapping: | |
AfterCaseLabel: false | |
AfterClass: false | |
AfterControlStatement: Never | |
AfterEnum: false | |
AfterExternBlock: true | |
AfterFunction: false | |
AfterNamespace: false | |
AfterObjCDeclaration: false | |
AfterStruct: false | |
AfterUnion: false | |
BeforeCatch: false | |
BeforeElse: false | |
BeforeLambdaBody: false | |
BeforeWhile: false | |
IndentBraces: false | |
SplitEmptyFunction: true | |
SplitEmptyRecord: true | |
SplitEmptyNamespace: true | |
BracedInitializerIndentWidth: 4 | |
BreakAdjacentStringLiterals: true | |
BreakAfterAttributes: Never | |
BreakAfterJavaFieldAnnotations: false | |
BreakArrays: false | |
BreakBeforeBinaryOperators: None | |
BreakBeforeBraces: Custom | |
BreakBeforeConceptDeclarations: Always | |
BreakBeforeInlineASMColon: OnlyMultiline | |
BreakBeforeTernaryOperators: true | |
BreakConstructorInitializers: BeforeComma | |
BreakInheritanceList: BeforeComma | |
BreakStringLiterals: true | |
ColumnLimit: 80 | |
CommentPragmas: '^ IWYU pragma:' | |
CompactNamespaces: false | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 4 | |
Cpp11BracedListStyle: false | |
DerivePointerAlignment: false | |
DisableFormat: false | |
EmptyLineAfterAccessModifier: Never | |
EmptyLineBeforeAccessModifier: LogicalBlock | |
ExperimentalAutoDetectBinPacking: false | |
FixNamespaceComments: true | |
ForEachMacros: | |
- Q_FOREACH | |
- BOOST_FOREACH | |
IfMacros: | |
- KJ_IF_MAYBE | |
IncludeBlocks: Regroup | |
IncludeCategories: | |
- Regex: '<[a-z0-9_]+>' | |
Priority: 1 | |
SortPriority: 0 | |
CaseSensitive: false | |
- Regex: '<[a-z0-9_/]+>' | |
Priority: 2 | |
SortPriority: 0 | |
CaseSensitive: false | |
- Regex: '<[a-z0-9_/\.]+>' | |
Priority: 3 | |
SortPriority: 0 | |
CaseSensitive: false | |
- Regex: '^(<|"(catch2|gtest|gmock|isl|json)/)' | |
Priority: 5 | |
SortPriority: 0 | |
CaseSensitive: false | |
- Regex: '.*' | |
Priority: 4 | |
SortPriority: 0 | |
CaseSensitive: false | |
IncludeIsMainRegex: '^(test_)?' | |
IncludeIsMainSourceRegex: '' | |
IndentAccessModifiers: false | |
IndentCaseBlocks: false | |
IndentCaseLabels: false | |
IndentExternBlock: NoIndent | |
IndentGotoLabels: true | |
IndentPPDirectives: AfterHash | |
IndentRequiresClause: true | |
IndentWidth: 4 | |
IndentWrappedFunctionNames: false | |
InsertBraces: true | |
InsertNewlineAtEOF: true | |
InsertTrailingCommas: None | |
IntegerLiteralSeparator: | |
Binary: 4 | |
BinaryMinDigits: 8 | |
Decimal: 3 | |
DecimalMinDigits: 6 | |
Hex: 2 | |
HexMinDigits: 5 | |
KeepEmptyLinesAtEOF: true | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
LambdaBodyIndentation: Signature | |
LineEnding: DeriveCRLF | |
MacroBlockBegin: '' | |
MacroBlockEnd: '' | |
MaxEmptyLinesToKeep: 1 | |
NamespaceIndentation: Inner | |
PackConstructorInitializers: Never | |
PenaltyBreakAssignment: 0 | |
PenaltyBreakBeforeFirstCallParameter: 0 | |
PenaltyBreakComment: 30000 | |
PenaltyBreakFirstLessLess: 120 | |
PenaltyBreakOpenParenthesis: 0 | |
PenaltyBreakString: 1000 | |
PenaltyBreakTemplateDeclaration: 0 | |
PenaltyExcessCharacter: 10000 | |
PenaltyIndentedWhitespace: 0 | |
PenaltyReturnTypeOnItsOwnLine: 1000000 | |
PointerAlignment: Left | |
PPIndentWidth: -1 | |
QualifierAlignment: Left | |
QualifierOrder: ['inline', 'static', 'const', 'volatile', 'type' ] | |
ReferenceAlignment: Pointer | |
ReflowComments: true | |
RemoveBracesLLVM: false | |
RemoveParentheses: Leave | |
RemoveSemicolon: false | |
RequiresClausePosition: WithPreceding | |
RequiresExpressionIndentation: OuterScope | |
SeparateDefinitionBlocks: Always | |
ShortNamespaceLines: 0 | |
SortIncludes: CaseInsensitive | |
SortUsingDeclarations: LexicographicNumeric | |
SpaceAfterCStyleCast: false | |
SpaceAfterLogicalNot: false | |
SpaceAfterTemplateKeyword: false | |
SpaceAroundPointerQualifiers: Default | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeCaseColon: false | |
SpaceBeforeCpp11BracedList: false | |
SpaceBeforeCtorInitializerColon: true | |
SpaceBeforeInheritanceColon: true | |
SpaceBeforeJsonColon: false | |
SpaceBeforeParens: ControlStatementsExceptControlMacros | |
SpaceBeforeParensOptions: | |
AfterControlStatements: true | |
AfterForeachMacros: true | |
AfterFunctionDefinitionName: false | |
AfterFunctionDeclarationName: false | |
AfterIfMacros: true | |
AfterOverloadedOperator: false | |
AfterRequiresInClause: false | |
AfterRequiresInExpression: false | |
BeforeNonEmptyParentheses: false | |
SpaceBeforeRangeBasedForLoopColon: true | |
SpaceBeforeSquareBrackets: false | |
SpaceInEmptyBlock: false | |
SpacesBeforeTrailingComments: 3 | |
SpacesInAngles: Never | |
SpacesInContainerLiterals: false | |
SpacesInLineCommentPrefix: | |
Minimum: 1 | |
Maximum: -1 | |
SpacesInParens: Never | |
SpacesInParensOptions: | |
InCStyleCasts: false | |
InConditionalStatements: false | |
InEmptyParentheses: false | |
Other: false | |
SpacesInSquareBrackets: false | |
Standard: Latest | |
TabWidth: 4 | |
UseTab: Never | |
VerilogBreakBetweenInstancePorts: true | |
... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment