Add CSharp formatting

This commit is contained in:
Anthony Rose 2024-09-18 12:42:44 +01:00
parent 48e84203b9
commit efa90b5fa6

View file

@ -1,6 +1,7 @@
# clang-format 14 # clang-format 14
--- ---
BasedOnStyle: InheritParentConfig BasedOnStyle: InheritParentConfig
# Language: Cpp
AccessModifierOffset: -4 AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign AlignAfterOpenBracket: DontAlign
@ -120,4 +121,20 @@ SpacesInSquareBrackets: false
Standard: Latest Standard: Latest
TabWidth: 8 TabWidth: 8
UseTab: Never UseTab: Never
---
Language: CSharp
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterStruct: true
BeforeCatch: true
BeforeElse: true
BeforeWhile: true
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
... ...