【问题标题】:Uncrustify to always remove space between type and * or &Uncrustify 始终删除类型和 * 或 & 之间的空格
【发布时间】:2013-06-11 12:43:29
【问题描述】:

无论如何我都希望 Uncrustify 生成这个:

TCHAR* p;

这样下面的所有(如果有的话)都转换成上面的:

TCHAR * p;
TCHAR *p;

我也想要:

TCHAR* f( TCHAR* p )

我不想:

TCHAR * f( TCHAR * p )
TCHAR *f( TCHAR *p )

& 也一样。

谢谢大家。

【问题讨论】:

    标签: uncrustify


    【解决方案1】:

    没有时间,当然,但也许有人需要。

    sp_before_ptr_star{ Ignore, Add, Remove, Force }
    

    据我所知,在你的情况下

    sp_before_ptr_star=Remove
    

    您可能还需要

    sp_after_ptr_star=Remove
    

    【讨论】:

    • 没有足够的声望来投票给你。不过谢谢。它让我更接近解决方案。这是我到目前为止所得到的: sp_before_ptr_star = remove sp_after_ptr_star = force sp_before_byref = remove sp_after_byref = force
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-02-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-14
    • 1970-01-01
    相关资源
    最近更新 更多