[FEAT] Update indent settings and add a clang-format file
This commit is contained in:
32
.clang-format
Normal file
32
.clang-format
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
# We'll use defaults from the LLVM style, but with 4 columns indentation.
|
||||
BasedOnStyle: LLVM
|
||||
IndentWidth: 4
|
||||
# use \n instead of \r\n
|
||||
UseCRLF: true
|
||||
# spaces, not tabs!
|
||||
UseTab: Never
|
||||
---
|
||||
Language: Cpp
|
||||
Standard: c++17
|
||||
AccessModifierOffset: -4
|
||||
# Force pointers to the type for C++.
|
||||
DerivePointerAlignment: false
|
||||
PointerAlignment: Left
|
||||
# Use 100 columns
|
||||
ColumnLimit: 100
|
||||
AlignConsecutiveStyle: Consecutive
|
||||
AllowAllParametersOfDeclarationOnNextLine: true
|
||||
AllowShortBlocksOnASingleLine: Never
|
||||
AlwaysBreakAfterReturnType: None
|
||||
AllowShortCaseLabelsOnASingleLine: false
|
||||
AllowShortFunctionsOnASingleLine: None
|
||||
AllowShortIfStatementsOnASingleLine: Never
|
||||
SplitEmptyFunction: true
|
||||
BreakBeforeBraces: Allman
|
||||
SeparateDefinitionBlocks: Always
|
||||
NamespaceIndentation: All
|
||||
IndentAccessModifiers: false
|
||||
ReferenceAlignment: Right
|
||||
BreakConstructorInitializers: AfterColon
|
||||
...
|
||||
Reference in New Issue
Block a user