Added .editorconfig and .clang-format

This commit is contained in:
redtide 2023-07-01 12:35:38 +02:00
parent c15e5870d9
commit aefde05389
No known key found for this signature in database
2 changed files with 18 additions and 0 deletions

4
.clang-format Normal file
View File

@ -0,0 +1,4 @@
---
IndentWidth: '2'
...

14
.editorconfig Normal file
View File

@ -0,0 +1,14 @@
# EditorConfig configuration
# http://editorconfig.org
# Top-most EditorConfig file
root = true
# UTF-8 charset, set indent to spaces with width of four,
# with no trailing whitespaces and a newline ending every file.
[*]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true