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

52 lines
886 B
Plaintext

---
Language: Cpp
BasedOnStyle: LLVM
# Use tabs
IndentWidth: 8
UseTab: Always
TabWidth: 8
ContinuationIndentWidth: 8
# Column limit
ColumnLimit: 80
# Braces
BreakBeforeBraces: Linux
# Indentation
IndentCaseLabels: false
IndentGotoLabels: false
AccessModifierOffset: -8
# Line breaking
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AllowShortBlocksOnASingleLine: Never
BreakBeforeBinaryOperators: None
# Pointer alignment
PointerAlignment: Right
# Spacing
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
# Comments
ReflowComments: false
FixNamespaceComments: false
# Alignment
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignTrailingComments: false
# Empty lines
MaxEmptyLinesToKeep: 1
# Preprocessor
IndentPPDirectives: None
...