diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-25 17:35:00 +1100 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-25 17:35:00 +1100 |
commit | 69537686be13f6ff84ce79e84374351e943ab21b (patch) | |
tree | de4bef9b5ace623b59751447b9131046483d2388 /src/include/span.hpp | |
parent | 27b0292ca6828eed7e782a57ad4d641f0ebf7357 (diff) | |
parent | 753a2f44cc4c00b952cddae2ceed066ebb18a470 (diff) | |
download | mrust-69537686be13f6ff84ce79e84374351e943ab21b.tar.gz |
Merge branch 'master' of https://github.com/thepowersgang/mrustc
Diffstat (limited to 'src/include/span.hpp')
-rw-r--r-- | src/include/span.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/span.hpp b/src/include/span.hpp index eafebb0a..11ffc005 100644 --- a/src/include/span.hpp +++ b/src/include/span.hpp @@ -24,19 +24,19 @@ class Position; struct ProtoSpan { RcString filename; - + unsigned int start_line; unsigned int start_ofs; }; struct Span { RcString filename; - + unsigned int start_line; unsigned int start_ofs; unsigned int end_line; unsigned int end_ofs; - + Span(RcString filename, unsigned int start_line, unsigned int start_ofs, unsigned int end_line, unsigned int end_ofs): filename( ::std::move(filename) ), start_line(start_line), @@ -47,12 +47,12 @@ struct Span Span(const Span& x); Span(const Position& position); Span(); - + void bug(::std::function<void(::std::ostream&)> msg) const; void error(ErrorType tag, ::std::function<void(::std::ostream&)> msg) const; void warning(WarningType tag, ::std::function<void(::std::ostream&)> msg) const; void note(::std::function<void(::std::ostream&)> msg) const; - + friend ::std::ostream& operator<<(::std::ostream& os, const Span& sp); }; |