liblangutil: small refactors wrt. API cleanups

Especially also remove SourceLocation ctor's that the compiler can default-implement.
This commit is contained in:
Christian Parpart
2018-11-30 17:10:39 +01:00
parent 435f7b3b72
commit 18e3d6dbca
3 changed files with 2 additions and 16 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ public:
explicit Scanner(std::shared_ptr<CharStream> _source) { reset(std::move(_source)); }
explicit Scanner(CharStream _source = CharStream()) { reset(std::move(_source)); }
std::string source() const { return m_source->source(); }
std::string const& source() const noexcept { return m_source->source(); }
std::shared_ptr<CharStream> charStream() noexcept { return m_source; }