forked from scott/threaded_network_chat
initial commit
This commit is contained in:
21
formatting-configs/clang-format.yml
Normal file
21
formatting-configs/clang-format.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
# BSD KNF funcs + K&R blocks + other stuff
|
||||
# Requires clang-format >=16
|
||||
BasedOnStyle: LLVM # defaults
|
||||
UseTab: Always
|
||||
IndentWidth: 8
|
||||
TabWidth: 8
|
||||
ColumnLimit: 120
|
||||
LineEnding: LF # unix
|
||||
|
||||
RemoveBracesLLVM: true # single-statement blocks
|
||||
AlwaysBreakAfterReturnType: AllDefinitions # KNF functions
|
||||
|
||||
BreakBeforeBraces: Custom
|
||||
BraceWrapping:
|
||||
AfterFunction: true # KNF
|
||||
AfterClass: false # K&R
|
||||
AfterControlStatement: false # K&R
|
||||
AfterNamespace: false # K&R
|
||||
AfterStruct: false # K&R
|
||||
BeforeElse: false # K&R
|
||||
BeforeCatch: false # K&R
|
||||
Reference in New Issue
Block a user