mirror of
https://github.com/kuhyx/testsAndMisc-archive.git
synced 2026-07-04 15:43:11 +02:00
62 lines
1.2 KiB
YAML
62 lines
1.2 KiB
YAML
# Clang-format configuration for imageViewer project
|
|
---
|
|
Language: Cpp
|
|
# Base style
|
|
BasedOnStyle: LLVM
|
|
|
|
# Indentation
|
|
IndentWidth: 4
|
|
TabWidth: 4
|
|
UseTab: Never
|
|
IndentCaseLabels: true
|
|
|
|
# Braces
|
|
BreakBeforeBraces: Attach
|
|
Cpp11BracedListStyle: true
|
|
|
|
# Line length and breaking
|
|
ColumnLimit: 100
|
|
BreakBeforeBinaryOperators: None
|
|
BreakBeforeTernaryOperators: true
|
|
AlwaysBreakAfterReturnType: None
|
|
|
|
# Spacing
|
|
SpaceBeforeParens: ControlStatements
|
|
SpaceInEmptyParentheses: false
|
|
SpacesInParentheses: false
|
|
SpacesInSquareBrackets: false
|
|
SpaceAfterCStyleCast: false
|
|
SpaceBeforeAssignmentOperators: true
|
|
|
|
# Alignment
|
|
AlignOperands: true
|
|
AlignConsecutiveAssignments: false
|
|
AlignConsecutiveDeclarations: false
|
|
AlignTrailingComments: true
|
|
|
|
# Function parameters
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
BinPackParameters: false
|
|
BinPackArguments: false
|
|
|
|
# Includes
|
|
SortIncludes: true
|
|
IncludeBlocks: Preserve
|
|
|
|
# Comments
|
|
ReflowComments: true
|
|
|
|
# Pointers and references
|
|
PointerAlignment: Right
|
|
DerivePointerAlignment: false
|
|
|
|
# Control statements
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
AllowShortLoopsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: None
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
|
|
# Misc
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
MaxEmptyLinesToKeep: 1
|