noidb/.clang-format

69 lines
1.8 KiB
Text
Raw Normal View History

2024-04-25 02:46:40 +00:00
BasedOnStyle: Mozilla
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Attach
BreakBeforeConceptDeclarations: Always
ColumnLimit: 80
ContinuationIndentWidth: 2
Cpp11BracedListStyle: true
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
# Seastar files (with angles)
- Regex: '^<seastar/'
Priority: 2
# Other libraries
- Regex: '^<.+/'
Priority: 4
# Std header files (with angles)
- Regex: '^<'
Priority: 5
# Internal headers (with quotes)
- Regex: '.h'
Priority: 1
IndentCaseLabels: false
IndentRequires: false
IndentRequiresClause: false
IndentWidth: 4
InsertNewlineAtEOF: true
KeepEmptyLinesAtTheStartOfBlocks: false
PenaltyBreakAssignment: 80
PenaltyBreakBeforeFirstCallParameter: 10
PenaltyReturnTypeOnItsOwnLine: 60
RequiresClausePosition: OwnLine
RequiresExpressionIndentation: OuterScope
---
Language: JavaScript
# Use 100 columns for JS.
ColumnLimit: 80
2024-04-25 02:15:50 +00:00
---
2024-04-25 02:46:40 +00:00
Language: Java
ColumnLimit: 80
2024-04-25 02:15:50 +00:00
AccessModifierOffset: -4
2024-04-25 02:46:40 +00:00
AlignAfterOpenBracket: AlwaysBreak
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Attach
---
Language: Proto
BasedOnStyle: Google
ColumnLimit: 80
IndentWidth: 4