-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
53 lines (50 loc) · 1.88 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Windows-Style newlines with a newline ending every file
[*]
end_of_line = crlf
insert_final_newline = true
indent_style = space
indent_size = 4
tab_width = 4
trim_trailing_whitespace = true
charset = utf-8
curly_bracket_next_line = true
# See: https://learn.microsoft.com/en-us/visualstudio/ide/cpp-editorconfig-properties?view=vs-2019
[*.{c++, cc, cpp, cxx, c, h, h++, hh, hpp, hxx, inl, ipp, tlh, tli}]
# Indent preferences
cpp_indent_braces = true
cpp_indent_case_contents = true
cpp_indent_case_labels = true
cpp_indent_case_contents_when_block = true
cpp_indent_preprocessor = none
cpp_indent_namespace_contents = true
cpp_indent_preserve_comments = true
# Space preferences
cpp_space_before_function_open_parenthesis = remove
cpp_space_within_parameter_list_parentheses = true
cpp_space_after_keywords_in_control_flow_statements = true
cpp_space_between_empty_braces = true
cpp_space_after_comma = true
cpp_space_remove_before_semicolon = true
cpp_space_before_initializer_list_open_brace = true
cpp_space_within_initializer_list_braces = true
cpp_space_before_constructor_colon = true
cpp_space_around_binary_operator = insert
cpp_space_around_assignment_operator = insert
cpp_space_around_ternary_operator = insert
cpp_space_pointer_reference_alignment = ignore
# New line preferences
cpp_new_line_scope_braces_on_separate_lines = true
cpp_new_line_before_catch = true
cpp_new_line_before_else = true
cpp_new_line_before_open_brace_block = new_line
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_lambda = new_line
cpp_new_line_close_brace_same_line_empty_type = true
cpp_new_line_close_brace_same_line_empty_function = true
# Wrap preferences
cpp_wrap_preserve_blocks = one_liners