Merge pull request #4761 from ethereum/libsolc-exceptions

Mark libsolc external C functions as noexcept
This commit is contained in:
Alex Beregszaszi
2018-08-08 15:56:12 +01:00
committed by GitHub
4 changed files with 28 additions and 22 deletions
+2 -2
View File
@@ -567,7 +567,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
return output;
}
Json::Value StandardCompiler::compile(Json::Value const& _input)
Json::Value StandardCompiler::compile(Json::Value const& _input) noexcept
{
try
{
@@ -591,7 +591,7 @@ Json::Value StandardCompiler::compile(Json::Value const& _input)
}
}
string StandardCompiler::compile(string const& _input)
string StandardCompiler::compile(string const& _input) noexcept
{
Json::Value input;
string errors;
+2 -2
View File
@@ -47,10 +47,10 @@ public:
/// Sets all input parameters according to @a _input which conforms to the standardized input
/// format, performs compilation and returns a standardized output.
Json::Value compile(Json::Value const& _input);
Json::Value compile(Json::Value const& _input) noexcept;
/// Parses input as JSON and peforms the above processing steps, returning a serialized JSON
/// output. Parsing errors are returned as regular errors.
std::string compile(std::string const& _input);
std::string compile(std::string const& _input) noexcept;
private:
Json::Value compileInternal(Json::Value const& _input);