turnip: Add a .editorconfig and .dir-locals.el

I was inheriting the one from src/freedreno with funny tabs, while
this driver is written with normal Mesa 3-space indents.
Unfortunately I have to add both files, because I use emacs and emacs
prefers .dir-locals to .editorconfig :(

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
This commit is contained in:
Eric Anholt
2019-09-19 11:03:35 -07:00
parent 7a4647ee39
commit a6cc68106c
3 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
((prog-mode
(indent-tabs-mode . nil)
(tab-width . 8)
(c-basic-offset . 3)
(c-file-style . "k&r")
(fill-column . 78)
)
)

View File

@@ -0,0 +1,5 @@
[*.{c,h,cpp,hpp,cc,hh}]
indent_style = space
indent_size = 3
tab_width = 8
max_line_length = 78

View File

@@ -44,7 +44,6 @@
#endif
#include "c11/threads.h"
#include "compiler/shader_enums.h"
#include "main/macros.h"
#include "util/list.h"
#include "util/macros.h"