multiline guard conditions indented incorrectly
Real-Time Event Frameworks based on active objects & state machines
Brought to you by:
quantum-leaps
When a multiline guard condition is entered in the property editor, for example:
(me->foo > 1U)
&& (foo_bar_tar() != xyx_sdfadf())
|| ((foozc << 3) == 0xFF)
QM 3.2.0 will generate code like this:
if ((me->foo > 1U)
&& (foo_bar_tar() != xyx_sdfadf())
|| ((foozc << 3) == 0xFF)) {
The correct way of indenting this guard would be:
if ((me->foo > 1U)
&& (foo_bar_tar() != xyx_sdfadf())
|| ((foozc << 3) == 0xFF)) {
Anonymous
Fixed in QM 3.2.2.
--MMS