-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic editorconfig for src subfolder.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Don't enforce any styles here, it's all third party code. | ||
root = true |