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
@@ -34,13 +34,14 @@
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
using namespace dev;
|
||||
using namespace yul;
|
||||
using namespace solidity;
|
||||
using namespace solidity::yul;
|
||||
using namespace solidity::util;
|
||||
|
||||
using boost::split;
|
||||
using boost::is_any_of;
|
||||
|
||||
string yul::reindent(string const& _code)
|
||||
string solidity::yul::reindent(string const& _code)
|
||||
{
|
||||
int constexpr indentationWidth = 4;
|
||||
|
||||
@@ -82,7 +83,7 @@ string yul::reindent(string const& _code)
|
||||
return out.str();
|
||||
}
|
||||
|
||||
u256 yul::valueOfNumberLiteral(Literal const& _literal)
|
||||
u256 solidity::yul::valueOfNumberLiteral(Literal const& _literal)
|
||||
{
|
||||
yulAssert(_literal.kind == LiteralKind::Number, "Expected number literal!");
|
||||
|
||||
@@ -91,7 +92,7 @@ u256 yul::valueOfNumberLiteral(Literal const& _literal)
|
||||
return u256(literalString);
|
||||
}
|
||||
|
||||
u256 yul::valueOfStringLiteral(Literal const& _literal)
|
||||
u256 solidity::yul::valueOfStringLiteral(Literal const& _literal)
|
||||
{
|
||||
yulAssert(_literal.kind == LiteralKind::String, "Expected string literal!");
|
||||
yulAssert(_literal.value.str().size() <= 32, "Literal string too long!");
|
||||
@@ -111,7 +112,7 @@ u256 yul::valueOfBoolLiteral(Literal const& _literal)
|
||||
yulAssert(false, "Unexpected bool literal value!");
|
||||
}
|
||||
|
||||
u256 yul::valueOfLiteral(Literal const& _literal)
|
||||
u256 solidity::yul::valueOfLiteral(Literal const& _literal)
|
||||
{
|
||||
switch (_literal.kind)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user