Introduce .editorconfig

Graphics / Mesa 3D Graphics Library / Mesa - Eric Engestrom [engestrom.ch] - 31 August 2016 19:06 UTC

A few weeks ago, Jose Fonseca suggested [0] we use .editorconfig files to try and enforce the formatting of the code, to which Michel Dänzer suggested [1] we start by importing the existing .dir-locals.el settings. The first draft was discussed in the RFC [2].

These .editorconfig are a first step, one that has the advantage of requiring little to no intervention from the devs once the settings files are in place, but the settings are very limited. This does have the advantage of applying while the code is being written. This doesn't replace the need for more comprehensive formatting tools such as clang-format & clang-tidy, but those reformat the code after the fact.

[0] https://lists.freedesktop.org/archives/mesa-dev/2016-June/121545.html [1] https://lists.freedesktop.org/archives/mesa-dev/2016-June/121639.html [2] https://lists.freedesktop.org/archives/mesa-dev/2016-July/123431.html

3bd885d Introduce .editorconfig
.editorconfig | 34 ++++++++++++++++++++++
bin/.editorconfig | 3 ++
include/D3D9/.editorconfig | 2 ++
include/c11/.editorconfig | 3 ++
include/d3dadapter/.editorconfig | 3 ++
include/vulkan/.editorconfig | 3 ++
src/egl/drivers/haiku/.editorconfig | 2 ++
src/egl/wayland/.editorconfig | 2 ++
src/gallium/drivers/freedreno/.editorconfig | 2 ++
src/gallium/drivers/r300/.editorconfig | 3 ++
src/gallium/drivers/r600/.editorconfig | 2 ++
src/gallium/drivers/radeon/.editorconfig | 2 ++
src/gallium/drivers/radeonsi/.editorconfig | 2 ++
src/gallium/drivers/vc4/.editorconfig | 3 ++
src/gallium/drivers/vc4/kernel/.editorconfig | 2 ++
src/gallium/state_trackers/hgl/.editorconfig | 2 ++
src/gallium/state_trackers/nine/.editorconfig | 3 ++
src/gallium/state_trackers/xa/.editorconfig | 3 ++
src/gallium/targets/d3dadapter9/.editorconfig | 3 ++
src/gallium/targets/haiku-softpipe/.editorconfig | 2 ++
src/gallium/winsys/freedreno/drm/.editorconfig | 2 ++
src/gallium/winsys/nouveau/drm/.editorconfig | 2 ++
src/gallium/winsys/radeon/drm/.editorconfig | 3 ++
src/gallium/winsys/sw/hgl/.editorconfig | 2 ++
src/getopt/.editorconfig | 2 ++
src/gtest/.editorconfig | 3 ++
src/hgl/.editorconfig | 2 ++
src/mesa/drivers/dri/nouveau/.editorconfig | 2 ++
28 files changed, 99 insertions(+)

Upstream: cgit.freedesktop.org


  • Share