diff --git a/roles/home-cli/files/clang-format b/roles/home-cli/files/clang-format index 11d4cca..537ac95 100644 --- a/roles/home-cli/files/clang-format +++ b/roles/home-cli/files/clang-format @@ -1,6 +1,7 @@ # clang-format 14 --- BasedOnStyle: InheritParentConfig +# Language: Cpp AccessModifierOffset: -4 AlignAfterOpenBracket: DontAlign @@ -120,4 +121,20 @@ SpacesInSquareBrackets: false Standard: Latest TabWidth: 8 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 ...