Skip to content

Commit 778bb5e

Browse files
committed
Merge branch 'bc/editorconfig'
To help developers, an EditorConfig file that attempts to follow the project convention has been added. * bc/editorconfig: editorconfig: indicate settings should be kept in sync editorconfig: provide editor settings for Git developers
2 parents f766176 + b548d69 commit 778bb5e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.clang-format

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
# Use tabs whenever we need to fill whitespace that spans at least from one tab
88
# stop to the next one.
9+
#
10+
# These settings are mirrored in .editorconfig. Keep them in sync.
911
UseTab: Always
1012
TabWidth: 8
1113
IndentWidth: 8

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[*]
2+
charset = utf-8
3+
insert_final_newline = true
4+
5+
# The settings for C (*.c and *.h) files are mirrored in .clang-format. Keep
6+
# them in sync.
7+
[*.{c,h,sh,perl,pl,pm}]
8+
indent_style = tab
9+
tab_width = 8
10+
11+
[*.py]
12+
indent_style = space
13+
indent_size = 4
14+
15+
[COMMIT_EDITMSG]
16+
max_line_length = 72

0 commit comments

Comments
 (0)