mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Style.
This commit is contained in:
parent
806507d5c0
commit
10fe0a2434
@ -650,7 +650,6 @@ string Why3Translator::transformVariableReferences(string const& _annotation)
|
|||||||
auto pos = _annotation.begin();
|
auto pos = _annotation.begin();
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
|
|
||||||
auto hash = find(pos, _annotation.end(), '#');
|
auto hash = find(pos, _annotation.end(), '#');
|
||||||
ret.append(pos, hash);
|
ret.append(pos, hash);
|
||||||
if (hash == _annotation.end())
|
if (hash == _annotation.end())
|
||||||
@ -658,7 +657,11 @@ string Why3Translator::transformVariableReferences(string const& _annotation)
|
|||||||
|
|
||||||
auto hashEnd = find_if(hash + 1, _annotation.end(), [](char _c)
|
auto hashEnd = find_if(hash + 1, _annotation.end(), [](char _c)
|
||||||
{
|
{
|
||||||
return _c != '_' && _c != '$' && !('a' <= _c && _c <= 'z') && !('A' <= _c && _c <= 'Z') && !('0' <= _c && _c <= '9');
|
return
|
||||||
|
(_c != '_' && _c != '$') &&
|
||||||
|
!('a' <= _c && _c <= 'z') &&
|
||||||
|
!('A' <= _c && _c <= 'Z') &&
|
||||||
|
!('0' <= _c && _c <= '9');
|
||||||
});
|
});
|
||||||
string varName(hash + 1, hashEnd);
|
string varName(hash + 1, hashEnd);
|
||||||
if (isLocalVariable(varName))
|
if (isLocalVariable(varName))
|
||||||
|
Loading…
Reference in New Issue
Block a user