svn commit: r1921436 - /subversion/trunk/.editorconfig

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.