mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
analysis: fix format
This commit is contained in:
parent
8dc306d62b
commit
399b7b695a
@ -42,9 +42,10 @@ Declaration const* DeclarationContainer::conflictingDeclaration(
|
|||||||
if (m_invisibleDeclarations.count(*_name))
|
if (m_invisibleDeclarations.count(*_name))
|
||||||
declarations += m_invisibleDeclarations.at(*_name);
|
declarations += m_invisibleDeclarations.at(*_name);
|
||||||
|
|
||||||
if (dynamic_cast<FunctionDefinition const*>(&_declaration) ||
|
if (
|
||||||
|
dynamic_cast<FunctionDefinition const*>(&_declaration) ||
|
||||||
dynamic_cast<EventDefinition const*>(&_declaration)
|
dynamic_cast<EventDefinition const*>(&_declaration)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// check that all other declarations with the same name are functions or a public state variable or events.
|
// check that all other declarations with the same name are functions or a public state variable or events.
|
||||||
// And then check that the signatures are different.
|
// And then check that the signatures are different.
|
||||||
@ -56,8 +57,10 @@ Declaration const* DeclarationContainer::conflictingDeclaration(
|
|||||||
continue;
|
continue;
|
||||||
return declaration;
|
return declaration;
|
||||||
}
|
}
|
||||||
if (!dynamic_cast<FunctionDefinition const*>(declaration) &&
|
if (
|
||||||
!dynamic_cast<EventDefinition const*>(declaration))
|
!dynamic_cast<FunctionDefinition const*>(declaration) &&
|
||||||
|
!dynamic_cast<EventDefinition const*>(declaration)
|
||||||
|
)
|
||||||
return declaration;
|
return declaration;
|
||||||
// Or, continue.
|
// Or, continue.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user