Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 21 additions & 14 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ AlignConsecutiveShortCaseStatements:
AlignCaseArrows: false
AlignCaseColons: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AlignOperands: Align
AlignTrailingComments:
Kind: Always
OverEmptyLines: 0
AlignPPAndNotPP: false
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowBreakBeforeNoexceptSpecifier: OnlyWithParen
AllowBreakBeforeQtProperty: true
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseExpressionOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
Expand All @@ -34,25 +38,25 @@ AllowShortNamespacesOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
AttributeMacros: []
BinPackArguments: true
BinPackLongBracedList: false
BinPackParameters: true
BitFieldColonSpacing: Both
BreakAdjacentStringLiterals: false
BreakAfterAttributes: Leave
BreakAfterJavaFieldAnnotations: true
BreakAfterOpenBracketBracedList: false
BreakAfterOpenBracketFunction: false
BreakAfterOpenBracketIf: false
BreakAfterOpenBracketLoop: false
BreakAfterOpenBracketSwitch: false
BreakAfterReturnType: Automatic
BreakBeforeBinaryOperators: None
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Attach
BreakBeforeCloseBracketBracedList: false
BreakBeforeCloseBracketFunction: false
BreakBeforeCloseBracketIf: false
BreakBeforeCloseBracketLoop: false
BreakBeforeCloseBracketSwitch: false
BreakBeforeConceptDeclarations: true
BreakBeforeConceptDeclarations: Always
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeTemplateCloser: true
BreakBeforeTernaryOperators: true
Expand All @@ -76,6 +80,7 @@ EnumTrailingComma: Leave
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros: []
IfMacros: []
IncludeBlocks: Regroup
IncludeCategories: # the order of declaration matters!
- Regex: '.(gtest|gmock)\/.+'
Expand All @@ -85,7 +90,7 @@ IncludeCategories: # the order of declaration matters!
- Regex: '".*"'
Priority: 1
IncludeIsMainRegex: '(Test|-test|_test)?$'
IncludeIsMainSourceRegex: '(_impl\.hpp)$'
IncludeIsMainSourceRegex: '(Impl|_impl)\.h.*$'
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: true
Expand All @@ -101,8 +106,8 @@ InsertNewlineAtEOF: true
InsertTrailingCommas: None
IntegerLiteralSeparator:
Binary: 0
Decimal: 3
Hex: -1
Decimal: 0
Hex: 0
KeepEmptyLines:
AtEndOfFile: false
AtStartOfBlock: false
Expand All @@ -123,7 +128,7 @@ NumericLiteralCase:
HexDigit: Upper
Prefix: Lower
Suffix: Upper
OneLineFormatOffRegex: ''
OneLineFormatOffRegex: '^// NOLINT'
PPIndentWidth: 2
PackConstructorInitializers: Never
PenaltyBreakAssignment: 2
Expand All @@ -132,14 +137,15 @@ PenaltyBreakBeforeMemberAccess: 0
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakScopeResolution: 1000
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyIndentedWhitespace: 1
PenaltyReturnTypeOnItsOwnLine: 1000
PointerAlignment: Left
QualifierAlignment: Custom
QualifierOrder: ['static', 'inline', 'constexpr', 'const', 'volatile', 'restrict', 'type']
QualifierOrder: ['friend', 'inline', 'static', 'constexpr', 'const', 'volatile', 'restrict', 'type']
RawStringFormats:
- Language: Cpp
Delimiters:
Expand All @@ -154,7 +160,7 @@ RawStringFormats:
- 'PARSE_TEXT_PROTO'
BasedOnStyle: google
ReferenceAlignment: Left
ReflowComments: true
ReflowComments: Always
RemoveBracesLLVM: false
RemoveEmptyLinesInUnwrappedLines: true
RemoveParentheses: ReturnStatement
Expand All @@ -168,14 +174,14 @@ SortIncludes:
Enabled: true
IgnoreCase: true
IgnoreExtension: true
SortJavaStaticImport: Before
SortUsingDeclarations: true
SortUsingDeclarations: Lexicographic
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterOperatorKeyword: false
SpaceAfterTemplateKeyword: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
Expand All @@ -188,7 +194,7 @@ SpacesInAngles: Never
SpacesInContainerLiterals: true
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: 1
Maximum: -1
SpacesInParens: Never
SpacesInSquareBrackets: false
Standard: Latest
Expand All @@ -204,6 +210,7 @@ WhitespaceSensitiveMacros: []
WrapNamespaceBodyWithEmptyLines: Leave
---
Language: JavaScript
SpaceBeforeJsonColon: false
SpacesInContainerLiterals: false
JavaScriptQuotes: Double
JavaScriptWrapImports: true
Expand Down
Loading