2022-05-18 15:42:48 +03:00
|
|
|
# For format see editorconfig.org
|
|
|
|
# Copyright 2022 Collabora Ltd.
|
|
|
|
# SPDX-License-Identifier: Zlib
|
|
|
|
|
|
|
|
root = true
|
|
|
|
|
2023-01-25 14:03:41 +03:00
|
|
|
[*.{c,cc,cg,cpp,gradle,h,java,m,metal,pl,py,S,sh,txt}]
|
2022-05-18 15:42:48 +03:00
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
2022-12-26 21:34:07 +03:00
|
|
|
insert_final_newline = true
|
|
|
|
trim_trailing_whitespace = true
|
2022-05-18 15:42:48 +03:00
|
|
|
|
|
|
|
[*.{html,js,json,m4,yml,yaml,vcxproj,vcxproj.filters}]
|
|
|
|
indent_size = 2
|
|
|
|
indent_style = space
|
2023-01-23 22:18:48 +03:00
|
|
|
trim_tailing_whitespace = true
|
2022-05-18 15:42:48 +03:00
|
|
|
|
|
|
|
[*.xml]
|
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
|
|
|
|
2022-11-28 00:19:44 +03:00
|
|
|
[{CMakeLists.txt,cmake/*.cmake}]
|
2022-05-18 15:42:48 +03:00
|
|
|
indent_size = 2
|
|
|
|
indent_style = space
|
2022-12-17 01:47:28 +03:00
|
|
|
insert_final_newline = true
|
|
|
|
trim_trailing_whitespace = true
|
2022-05-18 15:42:48 +03:00
|
|
|
|
2022-12-18 04:24:42 +03:00
|
|
|
[{cmake/cmake_uninstall.cmake.in,test/CMakeLists.txt,cmake/SDL3Config.cmake.in}]
|
2022-05-18 15:42:48 +03:00
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
2022-12-17 01:47:28 +03:00
|
|
|
insert_final_newline = true
|
|
|
|
trim_trailing_whitespace = true
|
2022-05-18 15:42:48 +03:00
|
|
|
|
|
|
|
[{Makefile.*,*.mk,*.sln,*.pbxproj,*.plist}]
|
|
|
|
indent_size = 8
|
|
|
|
indent_style = tab
|
|
|
|
tab_width = 8
|
|
|
|
|
2022-06-04 01:02:31 +03:00
|
|
|
[src/joystick/controller_type.*]
|
2022-05-18 15:42:48 +03:00
|
|
|
indent_style = tab
|
|
|
|
|
|
|
|
[src/joystick/hidapi/steam/*.h]
|
|
|
|
indent_style = tab
|
|
|
|
|
|
|
|
[src/libm/*.c]
|
|
|
|
indent_style = tab
|
|
|
|
|
|
|
|
[src/test/SDL_test_{crc32,md5,random}.c]
|
|
|
|
indent_size = 2
|
|
|
|
indent_style = space
|
|
|
|
|
|
|
|
[src/video/yuv2rgb/*.{c,h}]
|
|
|
|
indent_style = tab
|
|
|
|
|
2022-08-23 14:53:43 +03:00
|
|
|
[wayland-protocols/*.xml]
|
2022-05-18 15:42:48 +03:00
|
|
|
indent_size = 2
|
|
|
|
indent_style = space
|
|
|
|
|
|
|
|
[*.{markdown,md}]
|
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
|
|
|
# Markdown syntax treats tabs as 4 spaces
|
|
|
|
tab_width = 4
|
|
|
|
|
|
|
|
[{*.bat,*.rc}]
|
|
|
|
end_of_line = crlf
|
2023-01-10 18:43:15 +03:00
|
|
|
|
|
|
|
[*.cocci]'
|
|
|
|
insert_final_newline = true
|