mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
C++ namespace cleanup (except tests).
This commit is contained in:
committed by
Daniel Kirchner
parent
8385256bdc
commit
6b23412fae
@@ -22,8 +22,8 @@
|
||||
#include <variant>
|
||||
|
||||
using namespace std;
|
||||
using namespace dev;
|
||||
using namespace yul;
|
||||
using namespace solidity;
|
||||
using namespace solidity::yul;
|
||||
|
||||
void SSAReverser::run(OptimiserStepContext&, Block& _block)
|
||||
{
|
||||
@@ -35,7 +35,7 @@ void SSAReverser::run(OptimiserStepContext&, Block& _block)
|
||||
void SSAReverser::operator()(Block& _block)
|
||||
{
|
||||
walkVector(_block.statements);
|
||||
iterateReplacingWindow<2>(
|
||||
util::iterateReplacingWindow<2>(
|
||||
_block.statements,
|
||||
[&](Statement& _stmt1, Statement& _stmt2) -> std::optional<vector<Statement>>
|
||||
{
|
||||
@@ -61,9 +61,9 @@ void SSAReverser::operator()(Block& _block)
|
||||
{
|
||||
// in the special case a == a_1, just remove the assignment
|
||||
if (assignment->variableNames.front().name == identifier->name)
|
||||
return make_vector<Statement>(std::move(_stmt1));
|
||||
return util::make_vector<Statement>(std::move(_stmt1));
|
||||
else
|
||||
return make_vector<Statement>(
|
||||
return util::make_vector<Statement>(
|
||||
Assignment{
|
||||
std::move(assignment->location),
|
||||
assignment->variableNames,
|
||||
@@ -99,7 +99,7 @@ void SSAReverser::operator()(Block& _block)
|
||||
varDecl2->variables.front().location,
|
||||
varDecl2->variables.front().name
|
||||
});
|
||||
return make_vector<Statement>(
|
||||
return util::make_vector<Statement>(
|
||||
VariableDeclaration{
|
||||
std::move(varDecl2->location),
|
||||
std::move(varDecl2->variables),
|
||||
|
||||
Reference in New Issue
Block a user