Process and validate standard-json optimizer settings.

This commit is contained in:
chriseth
2019-03-04 11:40:28 +01:00
parent cf5c13f9c7
commit 4d10f4b4cf
10 changed files with 309 additions and 24 deletions
+6
View File
@@ -24,6 +24,8 @@
#include <libsolidity/interface/CompilerStack.h>
#include <boost/optional.hpp>
namespace dev
{
@@ -53,6 +55,10 @@ public:
std::string compile(std::string const& _input) noexcept;
private:
/// Validaes and applies the optimizer settings.
/// On error returns the json-formatted error message.
boost::optional<Json::Value> parseOptimizerSettings(Json::Value const& _settings);
Json::Value compileInternal(Json::Value const& _input);
CompilerStack m_compilerStack;