aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/ErrorReporter.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-06-29 23:41:59 +0800
committerchriseth <chris@ethereum.org>2018-07-03 07:02:00 +0800
commitf7a9c4203e35439de6ff4bdd94c7083c16b73e43 (patch)
treeae55099d02be2a04c769cf4868f57239365d1583 /libsolidity/interface/ErrorReporter.h
parent4649f9202a93f7573d7fb425fbcbdd50e6d4407c (diff)
downloaddexon-solidity-f7a9c4203e35439de6ff4bdd94c7083c16b73e43.tar.gz
dexon-solidity-f7a9c4203e35439de6ff4bdd94c7083c16b73e43.tar.zst
dexon-solidity-f7a9c4203e35439de6ff4bdd94c7083c16b73e43.zip
Disallow packed encoding of literals.
Diffstat (limited to 'libsolidity/interface/ErrorReporter.h')
-rw-r--r--libsolidity/interface/ErrorReporter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libsolidity/interface/ErrorReporter.h b/libsolidity/interface/ErrorReporter.h
index d1a0030f..fd53587a 100644
--- a/libsolidity/interface/ErrorReporter.h
+++ b/libsolidity/interface/ErrorReporter.h
@@ -92,6 +92,12 @@ public:
void clear();
+ /// @returns true iff there is any error (ignores warnings).
+ bool hasErrors() const
+ {
+ return m_errorCount > 0;
+ }
+
private:
void error(Error::Type _type,
SourceLocation const& _location,