From e19d7e5141286b7a70291bf3264117d9813acc94 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 22 Dec 2022 23:18:30 +0100 Subject: [PATCH] Require a space after a cast Align with K&R2. Signed-off-by: Gilles Peskine --- .uncrustify.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.uncrustify.cfg b/.uncrustify.cfg index ac9173e18d..7ce0905334 100644 --- a/.uncrustify.cfg +++ b/.uncrustify.cfg @@ -187,8 +187,8 @@ sp_before_comma = remove # No space before the ':' in a case statement sp_before_case_colon = remove -# No space after a cast - '(char) x' -> '(char)x' -sp_after_cast = remove +# Must have space after a cast - '(char)x' -> '(char) x' +sp_after_cast = add # No space between 'sizeof' and '(' sp_sizeof_paren = remove