| 1117 | } |
| 1118 | |
| 1119 | static std::string conditionString(bool not1, const Token *expr1, const std::string &op, const std::string &value1) |
| 1120 | { |
| 1121 | if (expr1->astParent()->isComparisonOp()) |
| 1122 | return std::string(not1 ? "!(" : "") + expr1->expressionString() + |
| 1123 | " " + |
| 1124 | op + |
| 1125 | " " + |
| 1126 | value1 + |
| 1127 | (not1 ? ")" : ""); |
| 1128 | |
| 1129 | return std::string(not1 ? "!" : "") + expr1->expressionString(); |
| 1130 | } |
| 1131 | |
| 1132 | static std::string conditionString(const Token * tok) |
| 1133 | { |
no test coverage detected