diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-10-09 11:35:00 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2015-10-09 11:55:04 -0700 |
commit | cfad4a5f89acba4246162acd4906f374aa74b0d7 (patch) | |
tree | 5ffafef32a5057c2b048c6b9f387c375793730b7 /.editorconfig | |
parent | f75e849688b012934a5bac66edaf4074ac1d1964 (diff) |
Add editorconfig file.
Editorconfig is a very simple format that has a few very basic
formatting options (namely about indenting). It's not very complex or
powerful, but it's supported in a *lot* of editors
(http://editorconfig.org/#download), though often through plugins.
This configures any editor that will use editorconfig to set indents
correctly for C/C++ files (and their headers), python files, and cmake
files as used by piglit.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..c614fcca7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*.py] +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +[*.{c,cpp,h,hpp}] +indent_style = tab +tab_width = 8 + +[*.{cmake,txt}] +indent_style = tab +tab_width = 8 + +[{README,HACKING}] +indent_style = tab +tab_width = 8 |