Print argument
| 1094 | |
| 1095 | // Print argument |
| 1096 | void printArgument(std::ostream& os, |
| 1097 | const Argument& argument, |
| 1098 | bool printDefault = true) { |
| 1099 | if (!argument.empty()) { |
| 1100 | os << argument.type(); |
| 1101 | if (!argument.name().empty()) { |
| 1102 | os << " "; |
| 1103 | os << argument.name(); |
| 1104 | if (printDefault && !argument.defaultValue().empty()) |
| 1105 | os << " = " << argument.defaultValue(); // #nocov |
| 1106 | } |
| 1107 | } |
| 1108 | } |
| 1109 | |
| 1110 | // Argument operator << |
| 1111 | std::ostream& operator<<(std::ostream& os, const Argument& argument) {// #nocov start |
no test coverage detected