Skip to content

Commit

Permalink
Added .clang-format and .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Jun 11, 2020
1 parent fb53f41 commit 3a54f19
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
BasedOnStyle: LLVM
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
---
Language: Cpp
Standard: Cpp11
AccessModifierOffset: -4
ColumnLimit: 100
---
Language: JavaScript
IndentWidth: 2
UseTab: Never
ColumnLimit: 100
...
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig is awesome: https://EditorConfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = tab
indent_size = 4

[*.js]
insert_final_newline = true
indent_style = space
indent_size = 2

[*.py]
insert_final_newline = false
indent_style = space
indent_size = 4

0 comments on commit 3a54f19

Please sign in to comment.