mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
testing clang-format settings
This commit is contained in:
parent
24de0e5fdb
commit
f18412b83e
36
.clang-format
Normal file
36
.clang-format
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
# Use defaults from the GNU style, but with 4 columns indentation.
|
||||||
|
BasedOnStyle: LLVM
|
||||||
|
UseTab: Always
|
||||||
|
IndentWidth: 4
|
||||||
|
TabWidth: 4
|
||||||
|
---
|
||||||
|
Language: Cpp
|
||||||
|
|
||||||
|
# Force pointers to the type for C++.
|
||||||
|
DerivePointerAlignment: false
|
||||||
|
PointerAlignment: Left
|
||||||
|
|
||||||
|
# Indent all namespaces
|
||||||
|
NamespaceIndentation: All
|
||||||
|
|
||||||
|
# Do not enforce a column limit
|
||||||
|
ColumnLimit: 0
|
||||||
|
|
||||||
|
# Allow short statements on one line
|
||||||
|
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
|
||||||
|
AllowShortLoopsOnASingleLine: true
|
||||||
|
AllowShortBlocksOnASingleLine: Always
|
||||||
|
AllowShortEnumsOnASingleLine: true
|
||||||
|
AllowShortFunctionsOnASingleLine: true
|
||||||
|
|
||||||
|
# Do not remove braces on short statements
|
||||||
|
RemoveBracesLLVM: false
|
||||||
|
|
||||||
|
# Add spaces between braces and contents
|
||||||
|
Cpp11BracedListStyle: false
|
||||||
|
|
||||||
|
# Brace wrapping rules
|
||||||
|
# BreakBeforeBraces: Custom
|
||||||
|
# BraceWrapping:
|
||||||
|
# BraceWrappingAfterControlStatementStyle: MultiLine
|
Loading…
Reference in New Issue
Block a user