mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Only use SourceReferenceFormatterHuman
This commit is contained in:
committed by
chriseth
parent
1126838a31
commit
1dedba8538
@@ -1,5 +1,8 @@
|
||||
#include <test/tools/ossfuzz/abiV2FuzzerCommon.h>
|
||||
|
||||
#include <liblangutil/Exceptions.h>
|
||||
#include <liblangutil/SourceReferenceFormatterHuman.h>
|
||||
|
||||
using namespace solidity::test::abiv2fuzzer;
|
||||
|
||||
SolidityCompilationFramework::SolidityCompilationFramework(langutil::EVMVersion _evmVersion)
|
||||
@@ -21,7 +24,7 @@ solidity::bytes SolidityCompilationFramework::compileContract(
|
||||
m_compiler.setOptimiserSettings(_optimization);
|
||||
if (!m_compiler.compile())
|
||||
{
|
||||
langutil::SourceReferenceFormatter formatter(std::cerr);
|
||||
langutil::SourceReferenceFormatterHuman formatter(std::cerr, false, false);
|
||||
|
||||
for (auto const& error: m_compiler.errors())
|
||||
formatter.printExceptionInformation(
|
||||
|
||||
@@ -4,9 +4,6 @@
|
||||
|
||||
#include <libyul/AssemblyStack.h>
|
||||
|
||||
#include <liblangutil/Exceptions.h>
|
||||
#include <liblangutil/SourceReferenceFormatter.h>
|
||||
|
||||
#include <libsolutil/Keccak256.h>
|
||||
|
||||
namespace solidity::test::abiv2fuzzer
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <liblangutil/Exceptions.h>
|
||||
#include <liblangutil/ErrorReporter.h>
|
||||
#include <liblangutil/EVMVersion.h>
|
||||
#include <liblangutil/SourceReferenceFormatter.h>
|
||||
|
||||
#include <libsolutil/CommonIO.h>
|
||||
#include <libsolutil/CommonData.h>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <libyul/Exceptions.h>
|
||||
|
||||
#include <liblangutil/EVMVersion.h>
|
||||
#include <liblangutil/SourceReferenceFormatter.h>
|
||||
#include <liblangutil/SourceReferenceFormatterHuman.h>
|
||||
|
||||
#include <test/tools/ossfuzz/yulFuzzerCommon.h>
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace
|
||||
{
|
||||
void printErrors(ostream& _stream, ErrorList const& _errors)
|
||||
{
|
||||
SourceReferenceFormatter formatter(_stream);
|
||||
SourceReferenceFormatterHuman formatter(_stream, false, false);
|
||||
|
||||
for (auto const& error: _errors)
|
||||
formatter.printExceptionInformation(
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <libyul/AsmParser.h>
|
||||
#include <libyul/AsmPrinter.h>
|
||||
#include <libyul/Object.h>
|
||||
#include <liblangutil/SourceReferenceFormatter.h>
|
||||
#include <liblangutil/SourceReferenceFormatterHuman.h>
|
||||
|
||||
#include <libyul/optimiser/Disambiguator.h>
|
||||
#include <libyul/optimiser/OptimiserStep.h>
|
||||
@@ -64,7 +64,7 @@ class YulOpti
|
||||
public:
|
||||
void printErrors()
|
||||
{
|
||||
SourceReferenceFormatter formatter(cerr);
|
||||
SourceReferenceFormatterHuman formatter(cerr, true, false);
|
||||
|
||||
for (auto const& error: m_errors)
|
||||
formatter.printErrorInformation(*error);
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include <liblangutil/Exceptions.h>
|
||||
#include <liblangutil/ErrorReporter.h>
|
||||
#include <liblangutil/EVMVersion.h>
|
||||
#include <liblangutil/SourceReferenceFormatter.h>
|
||||
#include <liblangutil/SourceReferenceFormatterHuman.h>
|
||||
|
||||
#include <libsolutil/CommonIO.h>
|
||||
#include <libsolutil/CommonData.h>
|
||||
@@ -58,7 +58,7 @@ namespace
|
||||
void printErrors(ErrorList const& _errors)
|
||||
{
|
||||
for (auto const& error: _errors)
|
||||
SourceReferenceFormatter(cout).printErrorInformation(*error);
|
||||
SourceReferenceFormatterHuman(cout, true, false).printErrorInformation(*error);
|
||||
}
|
||||
|
||||
pair<shared_ptr<Block>, shared_ptr<AsmAnalysisInfo>> parse(string const& _source)
|
||||
|
||||
Reference in New Issue
Block a user