This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new ae38e4a50d tools/uncrustify: disable leading space removal for block
comment
ae38e4a50d is described below
commit ae38e4a50d263ca0e0cb0ae58a65865ab84eca59
Author: Yanfeng Liu <[email protected]>
AuthorDate: Tue Apr 16 06:32:06 2024 +0800
tools/uncrustify: disable leading space removal for block comment
This disables the leading spaces removal for block comments to
avoid changing well-formatted blocks.
Based on test with uncrusity 0.72.0+dfsg1-2 on Ubuntu 22.04, the
leading spaces of block comment lines are unexpectedly removed by
current version w/o this patch.
Signed-off-by: Yanfeng Liu <[email protected]>
---
tools/uncrustify.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/uncrustify.cfg b/tools/uncrustify.cfg
index c98710f70f..7e05e70906 100644
--- a/tools/uncrustify.cfg
+++ b/tools/uncrustify.cfg
@@ -104,7 +104,7 @@ cmt_star_cont = true # Add star to
comment continuation
cmt_sp_before_star_cont = 0 # was 1. One space before star on
subsequent comment lines
# The value 1 added an extra space,
indenting by 2.
cmt_sp_after_star_cont = 1 # One space after star on subsequent
comment lines
-cmt_multi_check_last = true # Multi-line comments with a '*'
lead, remove leading spaces
+cmt_multi_check_last = false # Multi-line comments with a '*'
lead, remove leading spaces
# cmt_insert_file_header # filename containing the file header
# cmt_insert_file_footer # filename containing the file footer
# cmt_insert_func_header # filename containing the function
header