Replaced keys, values and reverse with ranges

This commit is contained in:
anurag4u80
2021-03-31 23:33:04 +05:30
parent 851051c64a
commit bbcdddeed9
18 changed files with 56 additions and 53 deletions
+3 -3
View File
@@ -23,7 +23,7 @@
#include <libyul/AST.h>
#include <boost/range/adaptor/reversed.hpp>
#include <range/v3/view/reverse.hpp>
using namespace std;
using namespace solidity;
@@ -33,7 +33,7 @@ using namespace solidity::util;
void ASTWalker::operator()(FunctionCall const& _funCall)
{
// Does not visit _funCall.functionName on purpose
walkVector(_funCall.arguments | boost::adaptors::reversed);
walkVector(_funCall.arguments | ranges::views::reverse);
}
void ASTWalker::operator()(ExpressionStatement const& _statement)
@@ -102,7 +102,7 @@ void ASTWalker::visit(Expression const& _e)
void ASTModifier::operator()(FunctionCall& _funCall)
{
// Does not visit _funCall.functionName on purpose
walkVector(_funCall.arguments | boost::adaptors::reversed);
walkVector(_funCall.arguments | ranges::views::reverse);
}
void ASTModifier::operator()(ExpressionStatement& _statement)