+[AT_LOCATION_TYPE_IF([[
+ std::ostream&
+ operator<< (std::ostream& o, const Span& s)
+ {
+ o << s.begin.l << '.' << s.begin.c;
+ if (s.begin.l != s.end.l)
+ o << '-' << s.end.l << '.' << s.end.c - 1;
+ else if (s.begin.c != s.end.c - 1)
+ o << '-' << s.end.c - 1;
+ return o;
+ }
+]])
+
+/* A C++ error reporting function. */