(core): remove space alignment after macro
Summary
If you have some variable declaration well aligned right after a macro (such as fwServicesRegisterMacro
for example), the alignment is removed on the first line.
Steps to reproduce
- Declare some variable with a beautiful alignment such as:
static const ::fwCom::Slots::SlotKeyType s_SAVE_FRAME = "saveFrame";
static const ::fwCom::Slots::SlotKeyType s_START_RECORD = "startRecord";
static const ::fwCom::Slots::SlotKeyType s_STOP_RECORD = "stopRecord";
static const ::fwCom::Slots::SlotKeyType s_WRITE = "write";
static const ::fwCom::Slots::SlotKeyType s_SET_FORMAT_PARAMETER = "setFormatParameter";
- Add a macro definition before such as:
fwServicesRegisterMacro( ::fwIO::IWriter, ::videoOpenCV::SFrameWriter, ::arData::FrameTL);
;
at the end of the line
- Sheldonize this file
Dev environment
- Commit: dev
What is the current bug behavior?
- Sheldon will remove the
;
at the end of the macro - He will remove spaces that well align variables right after
😢 - Sheldon thinks that it's one line until he found a
;
, so it's independent from the next variable declaration.
What is the expected correct behavior?
- Sheldon remove the
;
at the end of macro (or not🤷 ) - He should well align everything
Relevant logs and/or screenshots
- Before Sheldon:
fwServicesRegisterMacro( ::fwIO::IWriter, ::videoOpenCV::SFrameWriter, ::arData::FrameTL);
static const ::fwCom::Slots::SlotKeyType s_SAVE_FRAME = "saveFrame";
static const ::fwCom::Slots::SlotKeyType s_START_RECORD = "startRecord";
static const ::fwCom::Slots::SlotKeyType s_STOP_RECORD = "stopRecord";
static const ::fwCom::Slots::SlotKeyType s_WRITE = "write";
static const ::fwCom::Slots::SlotKeyType s_SET_FORMAT_PARAMETER = "setFormatParameter";
- After Sheldon:
fwServicesRegisterMacro( ::fwIO::IWriter, ::videoOpenCV::SFrameWriter, ::arData::FrameTL)
static const ::fwCom::Slots::SlotKeyType s_SAVE_FRAME = "saveFrame";
static const ::fwCom::Slots::SlotKeyType s_START_RECORD = "startRecord";
static const ::fwCom::Slots::SlotKeyType s_STOP_RECORD = "stopRecord";
static const ::fwCom::Slots::SlotKeyType s_WRITE = "write";
static const ::fwCom::Slots::SlotKeyType s_SET_FORMAT_PARAMETER = "setFormatParameter";
Possible fixes
Edited by Romain MANCIAUX