add editorconfig and clang-format files

This commit is contained in:
2026-03-07 16:37:55 -06:00
parent 7a0e2de855
commit 143ec79d37
3 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# BSD KNF funcs + K&R blocks + other stuff
# Requires clang-format >=16
BasedOnStyle: LLVM # defaults
UseTab: Always
IndentWidth: 8
TabWidth: 8
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