summaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authorGerd Hoffmann2017-07-17 12:15:47 +0200
committerGerd Hoffmann2017-07-20 09:56:56 +0200
commita62e20f6f84d747e55891a0d8aadd0737297571e (patch)
tree7acf4ebdbb95330a9b1be5ef35c7442f8580eed0 /.editorconfig
parentadd scripts/git.orderfile (diff)
downloadqemu-a62e20f6f84d747e55891a0d8aadd0737297571e.tar.gz
qemu-a62e20f6f84d747e55891a0d8aadd0737297571e.tar.xz
qemu-a62e20f6f84d747e55891a0d8aadd0737297571e.zip
add editorconfig
Add a .editorconfig file for qemu. Specifies the indent and tab style for various files (C code and Makefiles for starters). Most popular editors support this either natively or via plugin. Check http://editorconfig.org/ for details. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20170717101547.22295-1-kraxel@redhat.com
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..b2022e391a
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,15 @@
+# http://editorconfig.org
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+charset = utf-8
+
+[Makefile*]
+indent_style = tab
+indent_size = 8
+
+[*.{c,h}]
+indent_style = space
+indent_size = 4