aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-08-08 22:56:12 +0800
committerGitHub <noreply@github.com>2018-08-08 22:56:12 +0800
commitefeffa808371b64e6aa7eb5d340baf5989af2cd5 (patch)
tree8271ff11b14351a732394dd6d808e0f76c883228 /libsolidity
parent863778fe3614f8387723572693f276f66321fd74 (diff)
parent7bf9526f5edacd91602b9b9b07247e7a7b46fcc2 (diff)
downloaddexon-solidity-efeffa808371b64e6aa7eb5d340baf5989af2cd5.tar.gz
dexon-solidity-efeffa808371b64e6aa7eb5d340baf5989af2cd5.tar.zst
dexon-solidity-efeffa808371b64e6aa7eb5d340baf5989af2cd5.zip
Merge pull request #4761 from ethereum/libsolc-exceptions
Mark libsolc external C functions as noexcept
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/interface/StandardCompiler.cpp4
-rw-r--r--libsolidity/interface/StandardCompiler.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp
index 8339780f..58b84163 100644
--- a/libsolidity/interface/StandardCompiler.cpp
+++ b/libsolidity/interface/StandardCompiler.cpp
@@ -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;
diff --git a/libsolidity/interface/StandardCompiler.h b/libsolidity/interface/StandardCompiler.h
index 2772394a..fc9c3a59 100644
--- a/libsolidity/interface/StandardCompiler.h
+++ b/libsolidity/interface/StandardCompiler.h
@@ -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);