summaryrefslogtreecommitdiff
path: root/src/location.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-09-27 20:11:32 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-09-28 22:48:24 +0200
commitc1ae5d53fb0fa7ceb9d6fc7a60c87df958ce37fe (patch)
treef028a04619aa1b69f8b0aa72a5154f6ba1c09775 /src/location.cc
parent2f13baa843bd1fb5db6630a2823681ffaff9fb11 (diff)
WIPWIP
Diffstat (limited to 'src/location.cc')
-rw-r--r--src/location.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/location.cc b/src/location.cc
new file mode 100644
index 0000000..3fa1075
--- /dev/null
+++ b/src/location.cc
@@ -0,0 +1,12 @@
+#include "location.hh"
+
+#include <ostream>
+
+namespace src {
+
+std::ostream& operator<<(std::ostream& out, Location const& loc) {
+ out << loc.line << ':' << loc.column;
+ return out;
+}
+
+} // namespace src