我想使用以下构造函数初始化器列表:
来自 ':' 的虚拟缩进,用于成员初始值设定项。默认为 2
indent_ctor_init_leading = 2
构造函数初始化列表的额外缩进
indent_ctor_init = 2
没有米我设置这2个选项,初始化列表保持在相同的位置。
我正在使用 Uncrustify 0.63。
这就是我得到的:
one_class::one_class(
const std::string& name,
i_event_processing_callback* const event_processing_callback ):
inherited_class( name, event_processing_callback ),
status( t_status::NEW ),
run_and_event_mutex(),
run_and_event_condition(),
worker_thread(),
m_run( false )
{
// Nothing to do...
}
这就是我想要实现的目标:
one_class::one_class(
const std::string& name,
i_event_processing_callback* const event_processing_callback ):
inherited_class( name, event_processing_callback ),
status( t_status::NEW ),
run_and_event_mutex(),
run_and_event_condition(),
worker_thread(),
m_run( false )
{
// Nothing to do...
}
我做错了什么或者我该如何解决这个问题?
更新
在 github 上打开了一个问题https://github.com/uncrustify/uncrustify/issues/146