2

次を使用して、コンストラクター初期化子リストを意図したいと思います。

メンバー初期化子の「:」からの仮想インデント。デフォルトは 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...
}

私は何か間違ったことをしていますか、どうすればこれを修正できますか?

アップデート

https://github.com/uncrustify/uncrustify/issues/146の github で問題が開かれています。

4

0 に答える 0