We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
operator << for class Location writes to the stream always only the begin_file and begin_line and not the end_file and end_line.
inline std::ostream &operator<<(std::ostream &out, Location loc) { out << loc.begin_file() << ":" << loc.begin_line() << ":" << loc.begin_column(); bool dash = true; bool eq = std::strcmp(loc.begin_file(), loc.end_file()) == 0; if (!eq) { out << (dash ? "-" : ":") << loc.begin_file(); dash = false; } eq = eq && (loc.begin_line() == loc.end_line()); if (!eq) { out << (dash ? "-" : ":") << loc.begin_line(); dash = false; } eq = eq && (loc.begin_column() == loc.end_column()); if (!eq) { out << (dash ? "-" : ":") << loc.end_column(); dash = false; } return out; }
The text was updated successfully, but these errors were encountered:
You are right. I am going to fix this.
Sorry, something went wrong.
581757a
rkaminsk
No branches or pull requests
operator << for class Location writes to the stream always only the
begin_file and begin_line and not the end_file and end_line.
The text was updated successfully, but these errors were encountered: