From ae38e4a50d263ca0e0cb0ae58a65865ab84eca59 Mon Sep 17 00:00:00 2001 From: Yanfeng Liu Date: Tue, 16 Apr 2024 06:32:06 +0800 Subject: [PATCH] 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 --- 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