Add clang-format to format C# files

more-targets
Titan Yuan 2024-09-13 22:42:01 -07:00
parent 25e6568023
commit df4c8dfbfe
2 changed files with 9 additions and 0 deletions

4
.clang-format Normal file
View File

@ -0,0 +1,4 @@
BasedOnStyle: Google
---
Language: CSharp
ColumnLimit: 100

5
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,5 @@
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.8
hooks:
- id: clang-format