-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
149 additions
and
224 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,242 +1,167 @@ | ||
# Available style options are described in https://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
# | ||
# An easy way to create the .clang-format file is: | ||
# | ||
# clang-format -style=llvm -dump-config > .clang-format | ||
# | ||
--- | ||
BasedOnStyle: Google | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: LLVM | ||
AccessModifierOffset: -1 | ||
AlignAfterOpenBracket: Align | ||
AlignArrayOfStructures: Right | ||
AlignConsecutiveAssignments: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AlignCompound: true | ||
PadOperators: true | ||
AlignConsecutiveBitFields: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AlignCompound: true | ||
PadOperators: true | ||
AlignConsecutiveDeclarations: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AlignCompound: false | ||
PadOperators: false | ||
AlignConsecutiveMacros: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AlignCompound: false | ||
PadOperators: false | ||
AlignConsecutiveShortCaseStatements: | ||
Enabled: false | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AlignCaseColons: false | ||
AlignEscapedNewlines: Left | ||
AlignOperands: Align | ||
AlignTrailingComments: | ||
Kind: Always | ||
OverEmptyLines: 1 | ||
AllowAllArgumentsOnNextLine: false | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: Always | ||
AccessModifierOffset: -4 | ||
# AlignAfterOpenBracket: Align | ||
AlignConsecutiveMacros: true | ||
# AlignConsecutiveAssignments: false | ||
# AlignConsecutiveDeclarations: false | ||
# AlignEscapedNewlines: Left | ||
# AlignOperands: true | ||
# AlignTrailingComments: true | ||
# AllowAllArgumentsOnNextLine: true | ||
AllowAllConstructorInitializersOnNextLine: true | ||
# AllowAllParametersOfDeclarationOnNextLine: true | ||
# AllowShortBlocksOnASingleLine: Never | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortEnumsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: WithoutElse | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortLoopsOnASingleLine: true | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
AllowShortFunctionsOnASingleLine: false | ||
# AllowShortLambdasOnASingleLine: All | ||
# AllowShortIfStatementsOnASingleLine: WithoutElse | ||
# AllowShortLoopsOnASingleLine: true | ||
# AlwaysBreakAfterDefinitionReturnType: None | ||
# AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: false | ||
AlwaysBreakTemplateDeclarations: MultiLine | ||
AttributeMacros: | ||
- __capability | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BitFieldColonSpacing: Both | ||
# AlwaysBreakTemplateDeclarations: Yes | ||
# BinPackArguments: true | ||
# BinPackParameters: true | ||
BraceWrapping: | ||
AfterCaseLabel: false | ||
# AfterCaseLabel: false | ||
AfterClass: true | ||
AfterControlStatement: Always | ||
AfterControlStatement: true | ||
AfterEnum: true | ||
AfterExternBlock: false | ||
AfterFunction: true | ||
AfterNamespace: true | ||
# AfterNamespace: false | ||
AfterObjCDeclaration: true | ||
AfterStruct: true | ||
AfterUnion: false | ||
AfterUnion: true | ||
AfterExternBlock: true | ||
BeforeCatch: true | ||
BeforeElse: true | ||
BeforeLambdaBody: false | ||
BeforeWhile: false | ||
IndentBraces: false | ||
SplitEmptyFunction: true | ||
SplitEmptyRecord: true | ||
SplitEmptyNamespace: true | ||
BreakAfterAttributes: Never | ||
BreakAfterJavaFieldAnnotations: false | ||
BreakArrays: false | ||
BreakBeforeBinaryOperators: NonAssignment | ||
BreakBeforeConceptDeclarations: Always | ||
# IndentBraces: false | ||
# SplitEmptyFunction: true | ||
# SplitEmptyRecord: true | ||
# SplitEmptyNamespace: true | ||
# BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Custom | ||
BreakBeforeInlineASMColon: OnlyMultiline | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializers: AfterColon | ||
BreakInheritanceList: AfterColon | ||
BreakStringLiterals: true | ||
ColumnLimit: 0 | ||
CommentPragmas: "^ IWYU pragma:" | ||
CompactNamespaces: false | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
Cpp11BracedListStyle: true | ||
DerivePointerAlignment: false | ||
DisableFormat: false | ||
EmptyLineAfterAccessModifier: Never | ||
EmptyLineBeforeAccessModifier: Always | ||
ExperimentalAutoDetectBinPacking: false | ||
FixNamespaceComments: true | ||
ForEachMacros: | ||
- foreach | ||
- Q_FOREACH | ||
- BOOST_FOREACH | ||
IfMacros: | ||
- KJ_IF_MAYBE | ||
IncludeBlocks: Preserve | ||
IncludeCategories: | ||
- Regex: '^"(llvm|llvm-c|clang|clang-c)/' | ||
Priority: 2 | ||
SortPriority: 0 | ||
CaseSensitive: false | ||
- Regex: '^(<|"(gtest|gmock|isl|json)/)' | ||
Priority: 3 | ||
SortPriority: 0 | ||
CaseSensitive: false | ||
- Regex: ".*" | ||
Priority: 1 | ||
SortPriority: 0 | ||
CaseSensitive: false | ||
IncludeIsMainRegex: "(Test)?$" | ||
IncludeIsMainSourceRegex: "" | ||
IndentAccessModifiers: false | ||
IndentCaseBlocks: false | ||
IndentCaseLabels: false | ||
IndentExternBlock: NoIndent | ||
IndentGotoLabels: true | ||
IndentPPDirectives: None | ||
IndentRequiresClause: true | ||
# BreakBeforeInheritanceComma: false | ||
# BreakInheritanceList: BeforeColon | ||
# BreakBeforeTernaryOperators: true | ||
# BreakConstructorInitializersBeforeComma: false | ||
# BreakConstructorInitializers: BeforeColon | ||
# BreakAfterJavaFieldAnnotations: false | ||
# BreakStringLiterals: true | ||
# ColumnLimit: 80 | ||
CommentPragmas: "^ NOLINT:" | ||
# CompactNamespaces: false | ||
# ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
# ConstructorInitializerIndentWidth: 4 | ||
# ContinuationIndentWidth: 4 | ||
# Cpp11BracedListStyle: true | ||
# DeriveLineEnding: true | ||
# DerivePointerAlignment: true | ||
# DisableFormat: false | ||
# ExperimentalAutoDetectBinPacking: false | ||
# FixNamespaceComments: true | ||
# ForEachMacros: | ||
# - foreach | ||
# - Q_FOREACH | ||
# - BOOST_FOREACH | ||
# IncludeBlocks: Regroup | ||
# IncludeCategories: | ||
# - Regex: '^<ext/.*\.h>' | ||
# Priority: 2 | ||
# SortPriority: 0 | ||
# - Regex: '^<.*\.h>' | ||
# Priority: 1 | ||
# SortPriority: 0 | ||
# - Regex: "^<.*" | ||
# Priority: 2 | ||
# SortPriority: 0 | ||
# - Regex: ".*" | ||
# Priority: 3 | ||
# SortPriority: 0 | ||
# IncludeIsMainRegex: "([-_](test|unittest))?$" | ||
# IncludeIsMainSourceRegex: "" | ||
# IndentCaseLabels: true | ||
# IndentGotoLabels: true | ||
# IndentPPDirectives: None | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: false | ||
InsertBraces: false | ||
InsertNewlineAtEOF: true | ||
InsertTrailingCommas: None | ||
IntegerLiteralSeparator: | ||
Binary: 0 | ||
BinaryMinDigits: 0 | ||
Decimal: 0 | ||
DecimalMinDigits: 0 | ||
Hex: 0 | ||
HexMinDigits: 0 | ||
JavaScriptQuotes: Leave | ||
JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
KeepEmptyLinesAtEOF: true | ||
LambdaBodyIndentation: Signature | ||
LineEnding: DeriveLF | ||
MacroBlockBegin: "" | ||
MacroBlockEnd: "" | ||
MaxEmptyLinesToKeep: 2 | ||
NamespaceIndentation: None | ||
ObjCBinPackProtocolList: Auto | ||
ObjCBlockIndentWidth: 2 | ||
ObjCBreakBeforeNestedBlockParam: true | ||
ObjCSpaceAfterProperty: false | ||
ObjCSpaceBeforeProtocolList: true | ||
PackConstructorInitializers: BinPack | ||
PenaltyBreakAssignment: 1000 | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyBreakOpenParenthesis: 0 | ||
PenaltyBreakString: 1000 | ||
PenaltyBreakTemplateDeclaration: 10 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyIndentedWhitespace: 0 | ||
PenaltyReturnTypeOnItsOwnLine: 1000 | ||
# IndentWrappedFunctionNames: false | ||
# JavaScriptQuotes: Leave | ||
# JavaScriptWrapImports: true | ||
# KeepEmptyLinesAtTheStartOfBlocks: false | ||
# MacroBlockBegin: "" | ||
# MacroBlockEnd: "" | ||
# MaxEmptyLinesToKeep: 1 | ||
# NamespaceIndentation: None | ||
# ObjCBinPackProtocolList: Never | ||
# ObjCBlockIndentWidth: 2 | ||
# ObjCSpaceAfterProperty: false | ||
# ObjCSpaceBeforeProtocolList: true | ||
# PenaltyBreakAssignment: 2 | ||
# PenaltyBreakBeforeFirstCallParameter: 1 | ||
# PenaltyBreakComment: 300 | ||
# PenaltyBreakFirstLessLess: 120 | ||
# PenaltyBreakString: 1000 | ||
# PenaltyBreakTemplateDeclaration: 10 | ||
# PenaltyExcessCharacter: 1000000 | ||
# PenaltyReturnTypeOnItsOwnLine: 200 | ||
PointerAlignment: Right | ||
PPIndentWidth: 4 | ||
QualifierAlignment: Leave | ||
ReferenceAlignment: Pointer | ||
ReflowComments: false | ||
RemoveBracesLLVM: false | ||
RemoveParentheses: Leave | ||
RemoveSemicolon: false | ||
RequiresClausePosition: OwnLine | ||
RequiresExpressionIndentation: OuterScope | ||
SeparateDefinitionBlocks: Leave | ||
ShortNamespaceLines: 1 | ||
SortIncludes: Never | ||
SortJavaStaticImport: Before | ||
SortUsingDeclarations: LexicographicNumeric | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterLogicalNot: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceAroundPointerQualifiers: Both | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCaseColon: false | ||
SpaceBeforeCpp11BracedList: false | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeJsonColon: false | ||
SpaceBeforeParens: ControlStatements | ||
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 | ||
# RawStringFormats: | ||
# - Language: Cpp | ||
# Delimiters: | ||
# - cc | ||
# - CC | ||
# - cpp | ||
# - Cpp | ||
# - CPP | ||
# - "c++" | ||
# - "C++" | ||
# CanonicalDelimiter: "" | ||
# BasedOnStyle: google | ||
# - Language: TextProto | ||
# Delimiters: | ||
# - pb | ||
# - PB | ||
# - proto | ||
# - PROTO | ||
# EnclosingFunctions: | ||
# - EqualsProto | ||
# - EquivToProto | ||
# - PARSE_PARTIAL_TEXT_PROTO | ||
# - PARSE_TEST_PROTO | ||
# - PARSE_TEXT_PROTO | ||
# - ParseTextOrDie | ||
# - ParseTextProtoOrDie | ||
# CanonicalDelimiter: "" | ||
# BasedOnStyle: google | ||
# ReflowComments: true | ||
SortIncludes: false | ||
SortUsingDeclarations: false | ||
# SpaceAfterCStyleCast: false | ||
# SpaceAfterLogicalNot: false | ||
# SpaceAfterTemplateKeyword: true | ||
# SpaceBeforeAssignmentOperators: true | ||
# SpaceBeforeCpp11BracedList: false | ||
# SpaceBeforeCtorInitializerColon: true | ||
# SpaceBeforeInheritanceColon: true | ||
# SpaceBeforeParens: ControlStatements | ||
# SpaceBeforeRangeBasedForLoopColon: true | ||
# SpaceInEmptyBlock: false | ||
# SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: Never | ||
SpacesInContainerLiterals: true | ||
SpacesInLineCommentPrefix: | ||
Minimum: 1 | ||
Maximum: -1 | ||
SpacesInParens: Never | ||
SpacesInParensOptions: | ||
InCStyleCasts: false | ||
InConditionalStatements: false | ||
InEmptyParentheses: false | ||
Other: false | ||
SpacesInSquareBrackets: false | ||
Standard: Latest | ||
StatementAttributeLikeMacros: | ||
- Q_EMIT | ||
StatementMacros: | ||
- Q_UNUSED | ||
- QT_REQUIRE_VERSION | ||
# SpacesInAngles: false | ||
# SpacesInConditionalStatement: false | ||
SpacesInContainerLiterals: false | ||
# SpacesInCStyleCastParentheses: false | ||
# SpacesInParentheses: false | ||
# SpacesInSquareBrackets: false | ||
# SpaceBeforeSquareBrackets: false | ||
Standard: Cpp11 | ||
# StatementMacros: | ||
# - Q_UNUSED | ||
# - QT_REQUIRE_VERSION | ||
TabWidth: 4 | ||
# UseCRLF: false | ||
UseTab: Never | ||
VerilogBreakBetweenInstancePorts: true | ||
WhitespaceSensitiveMacros: | ||
- BOOST_PP_STRINGIZE | ||
- CF_SWIFT_NAME | ||
- NS_SWIFT_NAME | ||
- PP_STRINGIZE | ||
- STRINGIZE | ||
--- | ||
|