[PATCH] score: Improve formatting

Chris Johns chrisj at rtems.org
Thu Sep 8 06:56:53 UTC 2022


Hi,

Is the score going to be run through clang-format? If it is should we 
bother going this?

Chris

On 8/9/2022 4:09 pm, Sebastian Huber wrote:
> ---
>   cpukit/include/rtems/score/basedefs.h | 14 ++++++++++----
>   1 file changed, 10 insertions(+), 4 deletions(-)
> 
> diff --git a/cpukit/include/rtems/score/basedefs.h b/cpukit/include/rtems/score/basedefs.h
> index af732df3d3..c182ea02ec 100644
> --- a/cpukit/include/rtems/score/basedefs.h
> +++ b/cpukit/include/rtems/score/basedefs.h
> @@ -474,12 +474,18 @@ extern "C" {
>       ( const_cast<_type>( _var ) )
>   #elif defined(__GNUC__)
>     #define RTEMS_DEQUALIFY_DEPTHX( _ptr_level, _type, _var ) \
> -    __builtin_choose_expr( __builtin_types_compatible_p( \
> +    __builtin_choose_expr( \
> +      __builtin_types_compatible_p( \
>           RTEMS_TYPEOF_REFX( _ptr_level, _var ), \
>           RTEMS_TYPEOF_REFX( _ptr_level, _type ) \
> -      ) || __builtin_types_compatible_p( _type, void * ), \
> -    (_type) ( _var ), \
> -    RTEMS_DEQUALIFY_types_not_compatible() )
> +      ) || \
> +      __builtin_types_compatible_p( \
> +        _type, \
> +        void * \
> +      ), \
> +      (_type) ( _var ), \
> +      RTEMS_DEQUALIFY_types_not_compatible() \
> +    )
>   #else
>     #define RTEMS_DEQUALIFY_DEPTHX( _ptr_level, _type, _var ) \
>       ( (_type) (uintptr_t) (const volatile void *)( _var ) )


More information about the devel mailing list