aboutsummaryrefslogtreecommitdiffstats
path: root/solc/CommandLineInterface.h
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-03-13 23:37:55 +0800
committerGitHub <noreply@github.com>2017-03-13 23:37:55 +0800
commit9aab3b8639afa6e30e866e052a412b6f39c6ef6c (patch)
tree511895fefe1b4cf33df9359663b6537901c56ddf /solc/CommandLineInterface.h
parentef8b56a05823e39ffc2577af653200f22d6b15a1 (diff)
parent31a5e5bfef086c1cac477661dd627fa774bc44f5 (diff)
downloaddexon-solidity-9aab3b8639afa6e30e866e052a412b6f39c6ef6c.tar
dexon-solidity-9aab3b8639afa6e30e866e052a412b6f39c6ef6c.tar.gz
dexon-solidity-9aab3b8639afa6e30e866e052a412b6f39c6ef6c.tar.bz2
dexon-solidity-9aab3b8639afa6e30e866e052a412b6f39c6ef6c.tar.lz
dexon-solidity-9aab3b8639afa6e30e866e052a412b6f39c6ef6c.tar.xz
dexon-solidity-9aab3b8639afa6e30e866e052a412b6f39c6ef6c.tar.zst
dexon-solidity-9aab3b8639afa6e30e866e052a412b6f39c6ef6c.zip
Merge pull request #1768 from ethereum/abortiffileexists
Do not overwrite files unless forced.
Diffstat (limited to 'solc/CommandLineInterface.h')
-rw-r--r--solc/CommandLineInterface.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/solc/CommandLineInterface.h b/solc/CommandLineInterface.h
index bcfc43d7..f52a03c7 100644
--- a/solc/CommandLineInterface.h
+++ b/solc/CommandLineInterface.h
@@ -47,7 +47,8 @@ public:
/// Parse the files and create source code objects
bool processInput();
/// Perform actions on the input depending on provided compiler arguments
- void actOnInput();
+ /// @returns true on success.
+ bool actOnInput();
private:
bool link();
@@ -81,6 +82,8 @@ private:
/// @arg _data to be written
void createFile(std::string const& _fileName, std::string const& _data);
+ bool m_error = false; ///< If true, some error occurred.
+
bool m_onlyAssemble = false;
bool m_onlyLink = false;