From 14b0e482ece82b691c86f4b9ac32be01218b6568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Tue, 16 Nov 2021 10:42:26 +0100 Subject: [PATCH] Add .editorconfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inspired from the .editorconfig file of Mesa to ensure that we are using a consistent code formating here while minimizing the need to customize the code editor when working on virglrenderer. Signed-off-by: Corentin Noël Reviewed-by: Gert Wollny --- .editorconfig | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5ceb0ae --- /dev/null +++ b/.editorconfig @@ -0,0 +1,31 @@ +# To use this config on you editor, follow the instructions at: +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +insert_final_newline = true +tab_width = 3 + +[*.{c,h,cpp,hpp,cc,hh}] +indent_style = space +indent_size = 3 +max_line_length = 90 + +[{*.py,SCons*}] +indent_style = space +indent_size = 4 + +[*.yml] +indent_style = space +indent_size = 2 + +[*.rst] +indent_style = space +indent_size = 3 + +[{meson.build,meson_options.txt}] +indent_style = space +indent_size = 3 +