Community
Participate
Working Groups
The else if statement is a keyword and should have the rules of if/else in indentation.Make indentation rules work on if/else also. 1) Indent the following snipset => else if statement second line wrong identation : if ((currentCardPolled.temperatureCurrent > cardConfig.temperatureHigh || currentCardPolled.temperatureCurrent < cardConfig.temperatureLow) && !unitOverheatAlarmExists) { sendAlarm(Alarm_BBS10_Unit_Overheat); unitOverheatAlarmExists=true; } else if (currentCardPolled.temperatureCurrent <= cardConfig.temperatureHigh && -> currentCardPolled.temperatureCurrent >= cardConfig.temperatureLow && unitOverheatAlarmExists) { sendPotClear(Alarm_BBS10_Unit_Overheat); unitOverheatAlarmExists=false; This is a macro with double parentheses. There must be a way to indenting on different parentheses levels just like the brackets are handled. The snipset: LOG ((ERR, "BO_BMS_IBAS_i::downloadAttributes()-> OID=%s -> Send Configuration Event...", (const char*) marker()));