Eliminate some unnecessary header inclusions in headers in Scanner.h and SourceReferenceFormatter.h

This commit is contained in:
Christian Parpart
2021-08-03 15:43:17 +02:00
parent ac0c749a32
commit af18b8afc2
6 changed files with 17 additions and 10 deletions
+10
View File
@@ -21,6 +21,8 @@
#include <liblangutil/SourceReferenceFormatter.h>
#include <liblangutil/Exceptions.h>
#include <liblangutil/CharStream.h>
#include <liblangutil/CharStreamProvider.h>
#include <libsolutil/UTF8.h>
#include <iomanip>
#include <string_view>
@@ -45,6 +47,14 @@ std::string replaceNonTabs(std::string_view _utf8Input, char _filler)
}
std::string SourceReferenceFormatter::formatErrorInformation(Error const& _error, CharStream const& _charStream)
{
return formatErrorInformation(
_error,
SingletonCharStreamProvider(_charStream)
);
}
AnsiColorized SourceReferenceFormatter::normalColored() const
{
return AnsiColorized(m_stream, m_colored, {WHITE});