mirror of
https://github.com/sysprog21/lkmpg.git
synced 2021-08-03 01:33:29 +03:00
Enforce the customized style for example code
Instead of using tab for indention, the style defaults to 4 spaces for the sake of compact layout.
This commit is contained in:
15
examples/.clang-format
Normal file
15
examples/.clang-format
Normal file
@@ -0,0 +1,15 @@
|
||||
BasedOnStyle: Chromium
|
||||
Language: Cpp
|
||||
MaxEmptyLinesToKeep: 3
|
||||
IndentCaseLabels: false
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
AllowShortCaseLabelsOnASingleLine: false
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
DerivePointerAlignment: false
|
||||
PointerAlignment: Right
|
||||
SpaceAfterCStyleCast: true
|
||||
TabWidth: 4
|
||||
UseTab: Never
|
||||
IndentWidth: 4
|
||||
BreakBeforeBraces: Linux
|
||||
AccessModifierOffset: -4
|
||||
Reference in New Issue
Block a user