Skip to content

Commit b7d2c8b

Browse files
committed
SourceReferenceFormatter: Line wrapping and unused includes
1 parent 3edf91a commit b7d2c8b

File tree

6 files changed

+4
-7
lines changed

6 files changed

+4
-7
lines changed

liblangutil/SourceReferenceFormatter.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ class SourceReferenceFormatter
4646
bool _colored,
4747
bool _withErrorIds
4848
):
49-
m_stream(_stream), m_charStreamProvider(_charStreamProvider), m_colored(_colored), m_withErrorIds(_withErrorIds)
49+
m_stream(_stream),
50+
m_charStreamProvider(_charStreamProvider),
51+
m_colored(_colored),
52+
m_withErrorIds(_withErrorIds)
5053
{}
5154

5255
/// Prints source location if it is given.

libsolidity/codegen/ir/IRGenerator.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
#include <libsolutil/StringUtils.h>
3939
#include <libsolutil/Whiskers.h>
4040

41-
#include <liblangutil/SourceReferenceFormatter.h>
42-
4341
#include <json/json.h>
4442

4543
#include <sstream>

test/libsolidity/GasTest.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <test/Common.h>
2121
#include <libsolutil/CommonIO.h>
2222
#include <libsolutil/JSON.h>
23-
#include <liblangutil/SourceReferenceFormatter.h>
2423
#include <boost/algorithm/string.hpp>
2524
#include <boost/algorithm/string/predicate.hpp>
2625
#include <boost/filesystem.hpp>

test/libyul/Common.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <liblangutil/DebugInfoSelection.h>
3434
#include <liblangutil/ErrorReporter.h>
3535
#include <liblangutil/Scanner.h>
36-
#include <liblangutil/SourceReferenceFormatter.h>
3736

3837
#include <boost/test/unit_test.hpp>
3938

test/libyul/ControlFlowGraphTest.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <libyul/backends/evm/ControlFlowGraphBuilder.h>
2525
#include <libyul/backends/evm/StackHelpers.h>
2626
#include <libyul/Object.h>
27-
#include <liblangutil/SourceReferenceFormatter.h>
2827

2928
#include <libsolutil/AnsiColorized.h>
3029
#include <libsolutil/Visitor.h>

tools/yulPhaser/Program.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
#include <liblangutil/CharStream.h>
2222
#include <liblangutil/ErrorReporter.h>
23-
#include <liblangutil/SourceReferenceFormatter.h>
2423

2524
#include <libyul/AsmAnalysis.h>
2625
#include <libyul/AsmAnalysisInfo.h>

0 commit comments

Comments
 (0)