From 43a295a7f00af89ca653c0726db951dd739d35aa Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 2 Nov 2024 18:18:21 -0300 Subject: [PATCH] Add basic editorconfig for src subfolder. --- src/.editorconfig | 23 +++++++++++++++++++++++ src/libraries/.editorconfig | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 src/.editorconfig create mode 100644 src/libraries/.editorconfig diff --git a/src/.editorconfig b/src/.editorconfig new file mode 100644 index 000000000..449a96312 --- /dev/null +++ b/src/.editorconfig @@ -0,0 +1,23 @@ +# Loosely based on https://love2d.org/wiki/Code_Style and other existing code. +# Ref: https://learn.microsoft.com/en-us/visualstudio/ide/cpp-editorconfig-properties?view=vs-2022 + +root = true + +[*] +insert_final_newline = true +indent_style = tab + +[*.{cpp,mm,h}] +cpp_space_pointer_reference_alignment = right +cpp_indent_namespace_contents = false +cpp_new_line_before_open_brace_namespace = new_line +cpp_new_line_before_open_brace_type = new_line +cpp_new_line_before_open_brace_function = new_line +cpp_new_line_before_open_brace_block = new_line +cpp_new_line_before_else = true +cpp_space_before_function_open_parenthesis = remove +cpp_space_within_parameter_list_parentheses = false +cpp_space_between_empty_parameter_list_parentheses = false +cpp_space_after_keywords_in_control_flow_statements = true +cpp_space_within_control_flow_statement_parentheses = false + diff --git a/src/libraries/.editorconfig b/src/libraries/.editorconfig new file mode 100644 index 000000000..980047813 --- /dev/null +++ b/src/libraries/.editorconfig @@ -0,0 +1,2 @@ +# Don't enforce any styles here, it's all third party code. +root = true