]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
add editorconfig
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 17 Jul 2017 10:15:47 +0000 (12:15 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 20 Jul 2017 07:56:56 +0000 (09:56 +0200)
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

.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..b2022e3
--- /dev/null
@@ -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