location -> loc abbreviation (#3826)

This commit is contained in:
Jon Ross-Perkins
2024-03-28 18:15:18 +00:00
committed by GitHub
parent 72564a08d4
commit b5d28f2c4b
48 changed files with 341 additions and 373 deletions
+3 -3
View File
@@ -10,9 +10,9 @@ void PrintTo(const Diagnostic& diagnostic, std::ostream* os) {
*os << "Diagnostic{";
PrintTo(diagnostic.level, os);
for (const auto& message : diagnostic.messages) {
*os << ", {" << message.location.filename << ":"
<< message.location.line_number << ":" << message.location.column_number
<< ", \"" << message.format_fn(message) << "}";
*os << ", {" << message.loc.filename << ":" << message.loc.line_number
<< ":" << message.loc.column_number << ", \""
<< message.format_fn(message) << "}";
}
*os << "\"}";
}