diff options
author | chriseth <chris@ethereum.org> | 2018-04-11 22:13:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-11 22:13:41 +0800 |
commit | c9bdbcf470f4ca7f8d2d71f1be180274f534888d (patch) | |
tree | c2e87c1f85164bf7631e22c2ec53f9fd7bed681c /libsolidity/interface/ErrorReporter.h | |
parent | b7b6d0ce7c0c01a3600421ee3a402b1c913d8892 (diff) | |
parent | 43d2954de83af5f64f526fd36f1cd5c3b5299498 (diff) | |
download | dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar.gz dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar.bz2 dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar.lz dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar.xz dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.tar.zst dexon-solidity-c9bdbcf470f4ca7f8d2d71f1be180274f534888d.zip |
Merge pull request #3309 from ethereum/limit-errors
Limit the number of errors output in a single run to 256
Diffstat (limited to 'libsolidity/interface/ErrorReporter.h')
-rw-r--r-- | libsolidity/interface/ErrorReporter.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libsolidity/interface/ErrorReporter.h b/libsolidity/interface/ErrorReporter.h index a87db21d..d1a0030f 100644 --- a/libsolidity/interface/ErrorReporter.h +++ b/libsolidity/interface/ErrorReporter.h @@ -102,7 +102,16 @@ private: SourceLocation const& _location = SourceLocation(), std::string const& _description = std::string()); + // @returns true if error shouldn't be stored + bool checkForExcessiveErrors(Error::Type _type); + ErrorList& m_errorList; + + unsigned m_errorCount = 0; + unsigned m_warningCount = 0; + + const unsigned c_maxWarningsAllowed = 256; + const unsigned c_maxErrorsAllowed = 256; }; |