2022-05-18 06:42:48 -06:00
|
|
|
# For format see editorconfig.org
|
|
|
|
# Copyright 2022 Collabora Ltd.
|
|
|
|
# SPDX-License-Identifier: Zlib
|
|
|
|
|
|
|
|
root = true
|
|
|
|
|
2023-01-25 04:03:41 -07:00
|
|
|
[*.{c,cc,cg,cpp,gradle,h,java,m,metal,pl,py,S,sh,txt}]
|
2022-05-18 06:42:48 -06:00
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
2022-12-26 11:34:07 -07:00
|
|
|
insert_final_newline = true
|
|
|
|
trim_trailing_whitespace = true
|
2022-05-18 06:42:48 -06:00
|
|
|
|
|
|
|
[*.{html,js,json,m4,yml,yaml,vcxproj,vcxproj.filters}]
|
|
|
|
indent_size = 2
|
|
|
|
indent_style = space
|
2023-01-23 12:18:48 -07:00
|
|
|
trim_tailing_whitespace = true
|
2022-05-18 06:42:48 -06:00
|
|
|
|
|
|
|
[*.xml]
|
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
|
|
|
|
2022-11-27 14:19:44 -07:00
|
|
|
[{CMakeLists.txt,cmake/*.cmake}]
|
2022-05-18 06:42:48 -06:00
|
|
|
indent_size = 2
|
|
|
|
indent_style = space
|
2022-12-16 15:47:28 -07:00
|
|
|
insert_final_newline = true
|
|
|
|
trim_trailing_whitespace = true
|
2022-05-18 06:42:48 -06:00
|
|
|
|
2022-12-17 18:24:42 -07:00
|
|
|
[{cmake/cmake_uninstall.cmake.in,test/CMakeLists.txt,cmake/SDL3Config.cmake.in}]
|
2022-05-18 06:42:48 -06:00
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
2022-12-16 15:47:28 -07:00
|
|
|
insert_final_newline = true
|
|
|
|
trim_trailing_whitespace = true
|
2022-05-18 06:42:48 -06:00
|
|
|
|
|
|
|
[{Makefile.*,*.mk,*.sln,*.pbxproj,*.plist}]
|
|
|
|
indent_size = 8
|
|
|
|
indent_style = tab
|
|
|
|
tab_width = 8
|
|
|
|
|
2022-06-03 16:02:31 -06:00
|
|
|
[src/joystick/controller_type.*]
|
2022-05-18 06:42:48 -06: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 05:53:43 -06:00
|
|
|
[wayland-protocols/*.xml]
|
2022-05-18 06:42:48 -06: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 08:43:15 -07:00
|
|
|
|
|
|
|
[*.cocci]'
|
|
|
|
insert_final_newline = true
|