vessel/.clang-format
2025-04-23 19:29:34 +03:00

68 lines
1.5 KiB
YAML

---
BasedOnStyle: LLVM
# General formatting
IndentWidth: 4
UseTab: Never
ColumnLimit: 100
AllowShortFunctionsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
BreakBeforeBraces: Attach
BraceWrapping:
AfterClass: false
AfterControlStatement: true
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterStruct: false
AfterUnion: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
# Alignments
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: true
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: true
AlignEscapedNewlines: true
AlignOperands: true
AlignTrailingComments: true
# Includes
IncludeBlocks: Preserve
SortIncludes: false
IncludeCategories:
- Regex: ".*"
Priority: 1
# Pointers and references
PointerAlignment: Right
# Spaces and casting
SpaceAfterCStyleCast: false
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
SpacesInCStyleCastParentheses: false
SpaceInEmptyParentheses: false
# Structure formatting
BinPackArguments: false
BinPackParameters: false
# Indentation and case handling
IndentCaseLabels: true
IndentGotoLabels: true
IndentExternBlock: true
IndentPPDirectives: AfterHash
# Misc
KeepEmptyLinesAtTheStartOfBlocks: false
Cpp11BracedListStyle: false
DerivePointerAlignment: false
FixNamespaceComments: false
SortUsingDeclarations: false
# Consistent formatting for all blocks (to ensure uniformity)
AllowShortBlocksOnASingleLine: false