C++ namespace cleanup (except tests).

This commit is contained in:
Christian Parpart
2020-01-07 15:51:50 +01:00
committed by Daniel Kirchner
parent 8385256bdc
commit 6b23412fae
403 changed files with 1656 additions and 1926 deletions
+6 -6
View File
@@ -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),