aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-11 20:28:20 +0800
committerGitHub <noreply@github.com>2018-07-11 20:28:20 +0800
commit238dbe1b9904cee916089ab51b81a5368b80dda3 (patch)
treeb1c42459ae4cce29241b4e2a933bd6649e0c3b7c /libsolidity/interface
parent28ac3f0a6c8c532e79aaa3bff1e1a7d8ac7d8cb0 (diff)
parentf7a9c4203e35439de6ff4bdd94c7083c16b73e43 (diff)
downloaddexon-solidity-238dbe1b9904cee916089ab51b81a5368b80dda3.tar.gz
dexon-solidity-238dbe1b9904cee916089ab51b81a5368b80dda3.tar.zst
dexon-solidity-238dbe1b9904cee916089ab51b81a5368b80dda3.zip
Merge pull request #4388 from ethereum/noPackedLiterals
Disallow packed encoding of literals.
Diffstat (limited to 'libsolidity/interface')
-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,