Files
gh-jamie-bitflight-claude-s…/skills/clang-format/assets/configs/compact-dense.clang-format
2025-11-29 18:49:58 +08:00

46 lines
960 B
Plaintext

---
Language: Cpp
BasedOnStyle: Google
IndentWidth: 2
ColumnLimit: 120
# Braces
BreakBeforeBraces: Attach
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortEnumsOnASingleLine: true
# Pointer alignment
PointerAlignment: Left
# Breaking
BinPackArguments: true
BinPackParameters: BinPackAll
BreakBeforeBinaryOperators: None
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
# Spacing
SpaceInEmptyBlock: false
SpaceBeforeParens: Never
SpacesInParentheses: false
SpacesBeforeTrailingComments: 1
# Indentation
IndentCaseLabels: true
CompactNamespaces: true
# Empty lines
MaxEmptyLinesToKeep: 1
KeepEmptyLinesAtTheStartOfBlocks: false
# Alignment
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: false
AlignTrailingComments: false
AlignOperands: DontAlign
...