Add a comma to *s every call but the first (*add_comma should be initialized to false).
| 494 | // Add a comma to *s every call but the first (*add_comma should be |
| 495 | // initialized to false). |
| 496 | void AddComma(string* s, bool* add_comma) { |
| 497 | if (*add_comma) { |
| 498 | strings::StrAppend(s, ", "); |
| 499 | } else { |
| 500 | *add_comma = true; |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | // Will add the `name` from arg if name is true. |
| 505 | void AddName(string* s, bool name, const OpDef::ArgDef& arg) { |
no test coverage detected