| 40 | } |
| 41 | |
| 42 | void Location::Write(bool display_filename, bool display_function_name, |
| 43 | std::string* output) const { |
| 44 | butil::StringAppendF(output, "%s[%d] ", |
| 45 | display_filename ? file_name_ : "line", |
| 46 | line_number_); |
| 47 | |
| 48 | if (display_function_name) { |
| 49 | WriteFunctionName(output); |
| 50 | output->push_back(' '); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | void Location::WriteFunctionName(std::string* output) const { |
| 55 | // Translate "<" to "<" for HTML safety. |
nothing calls this directly
no test coverage detected