summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.clang-format31
-rw-r--r--.editorconfig22
2 files changed, 53 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..670c9d1
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,31 @@
1Language: C
2BasedOnStyle: LLVM
3AccessModifierOffset: -4
4AlignAfterOpenBracket: Align
5AlignConsecutiveAssignments: false
6AlignConsecutiveDeclarations: false
7AlignEscapedNewlines: Left
8AlignOperands: true
9AlignTrailingComments: true
10AllowAllParametersOfDeclarationOnNextLine: false
11AllowShortCaseLabelsOnASingleLine: false
12AllowShortFunctionsOnASingleLine: InlineOnly
13AllowShortIfStatementsOnASingleLine: false
14AllowShortLoopsOnASingleLine: false
15AlwaysBreakAfterReturnType: None
16BinPackArguments: false
17BinPackParameters: false
18BreakBeforeBinaryOperators: NonAssignment
19BreakBeforeBraces: Linux
20BreakBeforeTernaryOperators: true
21BreakConstructorInitializersBeforeComma: true
22ColumnLimit: 80
23ConstructorInitializerAllOnOneLineOrOnePerLine: true
24DerivePointerAlignment: false
25IndentCaseLabels: true
26IndentWidth: 8
27KeepEmptyLinesAtTheStartOfBlocks: false
28PointerAlignment: Left
29SpacesBeforeTrailingComments: 1
30TabWidth: 8
31UseTab: Always
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..e3a3965
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,22 @@
1# EditorConfig dla Embedded C Project
2root = true
3
4[*]
5charset = utf-8
6end_of_line = lf
7insert_final_newline = true
8trim_trailing_whitespace = true
9max_line_length = 80
10
11[*.c]
12indent_style = tab
13indent_size = 8
14
15[*.h]
16indent_style = tab
17indent_size = 8
18
19[Makefile]
20indent_style = tab
21indent_size = 8
22max_line_length = 120