diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-02 19:39:12 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-07-25 22:32:37 +0800 |
commit | e0dc74b895727525f261a9abe190872a58e8999e (patch) | |
tree | 67aa8cd1623c6afef8e24c04d8b220348313454b /libsolidity/interface/ErrorReporter.cpp | |
parent | 7ad42aeeafe9f6d47ef5890add06b51d005b32ca (diff) | |
download | dexon-solidity-e0dc74b895727525f261a9abe190872a58e8999e.tar.gz dexon-solidity-e0dc74b895727525f261a9abe190872a58e8999e.tar.zst dexon-solidity-e0dc74b895727525f261a9abe190872a58e8999e.zip |
Warn about shadowing variables.
Diffstat (limited to 'libsolidity/interface/ErrorReporter.cpp')
-rw-r--r-- | libsolidity/interface/ErrorReporter.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libsolidity/interface/ErrorReporter.cpp b/libsolidity/interface/ErrorReporter.cpp index 6e2667a5..f9ef4ceb 100644 --- a/libsolidity/interface/ErrorReporter.cpp +++ b/libsolidity/interface/ErrorReporter.cpp @@ -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); |