| 2529 | //----------------------------------------------------------------------------- |
| 2530 | |
| 2531 | void CodeGenerator::InsertIfOrSwitchInitVariables(same_as_any_of<const IfStmt, const SwitchStmt> auto* stmt) |
| 2532 | { |
| 2533 | if(const auto* conditionVar = stmt->getConditionVariable()) { |
| 2534 | InsertArg(conditionVar); |
| 2535 | } |
| 2536 | |
| 2537 | if(const auto* init = stmt->getInit()) { |
| 2538 | InsertArg(init); |
| 2539 | |
| 2540 | if(not isa<DeclStmt>(init)) { |
| 2541 | mOutputFormatHelper.AppendSemiNewLine(); |
| 2542 | } |
| 2543 | } |
| 2544 | } |
| 2545 | //----------------------------------------------------------------------------- |
| 2546 | |
| 2547 | void CodeGenerator::InsertArg(const IfStmt* stmt) |
nothing calls this directly
no test coverage detected