aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/ErrorReporter.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-02 19:39:12 +0800
committerchriseth <chris@ethereum.org>2017-07-25 22:32:37 +0800
commite0dc74b895727525f261a9abe190872a58e8999e (patch)
tree67aa8cd1623c6afef8e24c04d8b220348313454b /libsolidity/interface/ErrorReporter.h
parent7ad42aeeafe9f6d47ef5890add06b51d005b32ca (diff)
downloaddexon-solidity-e0dc74b895727525f261a9abe190872a58e8999e.tar
dexon-solidity-e0dc74b895727525f261a9abe190872a58e8999e.tar.gz
dexon-solidity-e0dc74b895727525f261a9abe190872a58e8999e.tar.bz2
dexon-solidity-e0dc74b895727525f261a9abe190872a58e8999e.tar.lz
dexon-solidity-e0dc74b895727525f261a9abe190872a58e8999e.tar.xz
dexon-solidity-e0dc74b895727525f261a9abe190872a58e8999e.tar.zst
dexon-solidity-e0dc74b895727525f261a9abe190872a58e8999e.zip
Warn about shadowing variables.
Diffstat (limited to 'libsolidity/interface/ErrorReporter.h')
-rw-r--r--libsolidity/interface/ErrorReporter.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/libsolidity/interface/ErrorReporter.h b/libsolidity/interface/ErrorReporter.h
index e5605d24..8b066a3e 100644
--- a/libsolidity/interface/ErrorReporter.h
+++ b/libsolidity/interface/ErrorReporter.h
@@ -41,30 +41,30 @@ public:
ErrorReporter& operator=(ErrorReporter const& _errorReporter);
- void warning(std::string const& _description = std::string());
+ void warning(std::string const& _description);
+
+ void warning(SourceLocation const& _location, std::string const& _description);
void warning(
- SourceLocation const& _location = SourceLocation(),
- std::string const& _description = std::string()
+ SourceLocation const& _location,
+ std::string const& _description,
+ SecondarySourceLocation const& _secondaryLocation
);
void error(
Error::Type _type,
- SourceLocation const& _location = SourceLocation(),
- std::string const& _description = std::string()
- );
-
- void declarationError(
SourceLocation const& _location,
- SecondarySourceLocation const& _secondaryLocation = SecondarySourceLocation(),
- std::string const& _description = std::string()
+ std::string const& _description
);
void declarationError(
SourceLocation const& _location,
- std::string const& _description = std::string()
+ SecondarySourceLocation const& _secondaryLocation,
+ std::string const& _description
);
+ void declarationError(SourceLocation const& _location, std::string const& _description);
+
void fatalDeclarationError(SourceLocation const& _location, std::string const& _description);
void parserError(SourceLocation const& _location, std::string const& _description);