From f7a9c4203e35439de6ff4bdd94c7083c16b73e43 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 29 Jun 2018 17:41:59 +0200 Subject: Disallow packed encoding of literals. --- libsolidity/interface/ErrorReporter.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libsolidity/interface') 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, -- cgit v1.2.3