diff options
author | ubsan <npmazzuca@gmail.com> | 2016-12-24 19:07:08 -0700 |
---|---|---|
committer | ubsan <npmazzuca@gmail.com> | 2016-12-24 19:07:08 -0700 |
commit | 0c14c734fa32014fd24297ccdbed927016185ffd (patch) | |
tree | ed4bbff4be39c44c57164641f4ed32b5ad4675f0 /src/include/span.hpp | |
parent | d12a8a886caf2e0edf33c1af831b1df990d2c892 (diff) | |
download | mrust-0c14c734fa32014fd24297ccdbed927016185ffd.tar.gz |
No more tears!
No more DOS line endings or trailing whitespace either
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); }; |