mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Warn about multiple assignments to storage byte pushes and fix warnings about multiple storage to storage copies.
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
This commit is contained in:
co-authored by
Kamil Śliwak
parent
d30b04674e
commit
16245f7b9b
@@ -85,7 +85,7 @@ VariableDeclaration const* rootConstVariableDeclaration(VariableDeclaration cons
|
||||
return rootDecl;
|
||||
}
|
||||
|
||||
Expression const* resolveUnaryTuples(Expression const* _expr)
|
||||
Expression const* resolveOuterUnaryTuples(Expression const* _expr)
|
||||
{
|
||||
while (auto const* tupleExpression = dynamic_cast<TupleExpression const*>(_expr))
|
||||
if (tupleExpression->components().size() == 1)
|
||||
|
||||
@@ -38,8 +38,8 @@ bool isConstantVariableRecursive(VariableDeclaration const& _varDecl);
|
||||
/// Returns the innermost AST node that covers the given location or nullptr if not found.
|
||||
ASTNode const* locateInnermostASTNode(int _offsetInFile, SourceUnit const& _sourceUnit);
|
||||
|
||||
/// @returns @a _expr itself, in case it is not an unary tuple expression. Otherwise it descends recursively
|
||||
/// @returns @a _expr itself, in case it is not a unary tuple expression. Otherwise it descends recursively
|
||||
/// into unary tuples and returns the contained expression.
|
||||
Expression const* resolveUnaryTuples(Expression const* _expr);
|
||||
Expression const* resolveOuterUnaryTuples(Expression const* _expr);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user