Skip to content

Commit decd12d

Browse files
committed
.editorconfig: Add minimal settings for Visual Studio C/C++ formatter.
* Trim trailing whitespaces. * Indent function/condition parameters to parent. * Align pointer to right. * Add few newline setting. git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1921436 13f79535-47bb-0310-9956-ffa450edef68
1 parent bdc9542 commit decd12d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ max_line_length = 79
1616
# Guidelines extensions.
1717
guidelines = 79 dashed
1818

19+
[*.{c,h,cpp,hpp}]
20+
trim_trailing_whitespace = true
21+
cpp_indent_within_parentheses = align_to_parenthesis
22+
cpp_indent_preserve_within_parentheses = true
23+
cpp_space_pointer_reference_alignment = right
24+
cpp_wrap_preserve_blocks = all_one_line_scopes
25+
cpp_new_line_before_open_brace_function = new_line
26+
cpp_new_line_before_open_brace_block = new_line
27+
cpp_space_preserve_in_initializer_list = true
28+
1929
[**/Makefile*]
2030
indent_style = tab
2131
indent_size = 8

0 commit comments

Comments
 (0)