Initial commit
This commit is contained in:
51
skills/clang-format/assets/configs/linux-kernel.clang-format
Normal file
51
skills/clang-format/assets/configs/linux-kernel.clang-format
Normal file
@@ -0,0 +1,51 @@
|
||||
---
|
||||
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
|
||||
...
|
||||
Reference in New Issue
Block a user