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,16 +22,16 @@
|
||||
#include <libdevcore/Visitor.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace dev;
|
||||
using namespace yul;
|
||||
using namespace solidity;
|
||||
using namespace solidity::yul;
|
||||
|
||||
void VarDeclInitializer::operator()(Block& _block)
|
||||
{
|
||||
ASTModifier::operator()(_block);
|
||||
|
||||
using OptionalStatements = std::optional<vector<Statement>>;
|
||||
GenericVisitor visitor{
|
||||
VisitorFallback<OptionalStatements>{},
|
||||
util::GenericVisitor visitor{
|
||||
util::VisitorFallback<OptionalStatements>{},
|
||||
[](VariableDeclaration& _varDecl) -> OptionalStatements
|
||||
{
|
||||
if (_varDecl.value)
|
||||
@@ -53,5 +53,5 @@ void VarDeclInitializer::operator()(Block& _block)
|
||||
}
|
||||
};
|
||||
|
||||
iterateReplacing(_block.statements, [&](auto&& _statement) { return std::visit(visitor, _statement); });
|
||||
util::iterateReplacing(_block.statements, [&](auto&& _statement) { return std::visit(visitor, _statement); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user