mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Mark StandardCompiler::compile as noexcept
It has a generic catch statement and shouldn't leak out exceptions.
This commit is contained in:
parent
4dc3335cda
commit
5b4ad10b3c
@ -567,7 +567,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
|||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
Json::Value StandardCompiler::compile(Json::Value const& _input)
|
Json::Value StandardCompiler::compile(Json::Value const& _input) noexcept
|
||||||
{
|
{
|
||||||
try
|
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;
|
Json::Value input;
|
||||||
string errors;
|
string errors;
|
||||||
|
@ -47,10 +47,10 @@ public:
|
|||||||
|
|
||||||
/// Sets all input parameters according to @a _input which conforms to the standardized input
|
/// Sets all input parameters according to @a _input which conforms to the standardized input
|
||||||
/// format, performs compilation and returns a standardized output.
|
/// 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
|
/// Parses input as JSON and peforms the above processing steps, returning a serialized JSON
|
||||||
/// output. Parsing errors are returned as regular errors.
|
/// output. Parsing errors are returned as regular errors.
|
||||||
std::string compile(std::string const& _input);
|
std::string compile(std::string const& _input) noexcept;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Json::Value compileInternal(Json::Value const& _input);
|
Json::Value compileInternal(Json::Value const& _input);
|
||||||
|
Loading…
Reference in New Issue
Block a user