Author: rinrab
Date: Sun Oct 20 10:59:45 2024
New Revision: 1921436
URL: http://svn.apache.org/viewvc?rev=1921436&view=rev
Log:
.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.
Modified:
subversion/trunk/.editorconfig
Modified: subversion/trunk/.editorconfig
URL:
http://svn.apache.org/viewvc/subversion/trunk/.editorconfig?rev=1921436&r1=1921435&r2=1921436&view=diff
==============================================================================
--- subversion/trunk/.editorconfig (original)
+++ subversion/trunk/.editorconfig Sun Oct 20 10:59:45 2024
@@ -16,6 +16,16 @@ max_line_length = 79
# Guidelines extensions.
guidelines = 79 dashed
+[*.{c,h,cpp,hpp}]
+trim_trailing_whitespace = true
+cpp_indent_within_parentheses = align_to_parenthesis
+cpp_indent_preserve_within_parentheses = true
+cpp_space_pointer_reference_alignment = right
+cpp_wrap_preserve_blocks = all_one_line_scopes
+cpp_new_line_before_open_brace_function = new_line
+cpp_new_line_before_open_brace_block = new_line
+cpp_space_preserve_in_initializer_list = true
+
[**/Makefile*]
indent_style = tab
indent_size = 8