mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Warn about shadowing variables.
This commit is contained in:
1 parent
7ad42aeeaf
commit
e0dc74b895
7 files changed
+269
-78
No files matched your search
@@ -42,11 +42,23 @@ void ErrorReporter::warning(string const& _description)
|
||||
error(Error::Type::Warning, SourceLocation(), _description);
|
||||
}
|
||||
|
||||
void ErrorReporter::warning(SourceLocation const& _location, string const& _description)
|
||||
void ErrorReporter::warning(
|
||||
SourceLocation const& _location,
|
||||
string const& _description
|
||||
)
|
||||
{
|
||||
error(Error::Type::Warning, _location, _description);
|
||||
}
|
||||
|
||||
void ErrorReporter::warning(
|
||||
SourceLocation const& _location,
|
||||
string const& _description,
|
||||
SecondarySourceLocation const& _secondaryLocation
|
||||
)
|
||||
{
|
||||
error(Error::Type::Warning, _location, _secondaryLocation, _description);
|
||||
}
|
||||
|
||||
void ErrorReporter::error(Error::Type _type, SourceLocation const& _location, string const& _description)
|
||||
{
|
||||
auto err = make_shared<Error>(_type);
|
||||
|
||||
Reference in new issue
Block a user