Browse Source

Added .clang-format and .editorconfig

Paul-Louis Ageneau 6 years ago
parent
commit
611c53191c
2 changed files with 25 additions and 0 deletions
  1. 14 0
      .clang-format
  2. 11 0
      .editorconfig

+ 14 - 0
.clang-format

@@ -0,0 +1,14 @@
+---
+BasedOnStyle: LLVM
+IndentWidth: 4
+TabWidth: 4
+UseTab: ForIndentation
+---
+Language: Cpp
+Standard: Cpp11
+AccessModifierOffset: -4
+ColumnLimit: 100
+---
+Language: JavaScript
+ColumnLimit: 80
+...

+ 11 - 0
.editorconfig

@@ -0,0 +1,11 @@
+# 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
+