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:
Daniel Kirchner
2022-06-15 13:53:05 +02:00
co-authored by Kamil Śliwak
parent d30b04674e
commit 16245f7b9b
9 changed files with 129 additions and 24 deletions
+1 -1
View File
@@ -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)
+2 -2
View File
@@ -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);
}