aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/ErrorReporter.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-04-05 21:34:03 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-04-06 20:44:03 +0800
commit43d2954de83af5f64f526fd36f1cd5c3b5299498 (patch)
treef4be890f379db6ef222a7ac74258b9ae82cc6f9e /libsolidity/interface/ErrorReporter.h
parent0812d1189ad3d6ba6338ef7dc39aa61005d731e4 (diff)
downloaddexon-solidity-43d2954de83af5f64f526fd36f1cd5c3b5299498.tar.gz
dexon-solidity-43d2954de83af5f64f526fd36f1cd5c3b5299498.tar.zst
dexon-solidity-43d2954de83af5f64f526fd36f1cd5c3b5299498.zip
Do not abort excessive warnings, just ignore them.
Diffstat (limited to 'libsolidity/interface/ErrorReporter.h')
-rw-r--r--libsolidity/interface/ErrorReporter.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libsolidity/interface/ErrorReporter.h b/libsolidity/interface/ErrorReporter.h
index 6b3dc221..d1a0030f 100644
--- a/libsolidity/interface/ErrorReporter.h
+++ b/libsolidity/interface/ErrorReporter.h
@@ -102,9 +102,16 @@ private:
SourceLocation const& _location = SourceLocation(),
std::string const& _description = std::string());
- void abortIfExcessive();
+ // @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;
};