diff options
author | chriseth <c@ethdev.com> | 2017-03-11 02:11:01 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-03-11 02:23:43 +0800 |
commit | 31a5e5bfef086c1cac477661dd627fa774bc44f5 (patch) | |
tree | 9a4fb8b2a8a4b65a6c4270ce6418fef2466710a2 /solc/CommandLineInterface.h | |
parent | 864bfafbcd77846b688ece3edb945a285b74c747 (diff) | |
download | dexon-solidity-31a5e5bfef086c1cac477661dd627fa774bc44f5.tar dexon-solidity-31a5e5bfef086c1cac477661dd627fa774bc44f5.tar.gz dexon-solidity-31a5e5bfef086c1cac477661dd627fa774bc44f5.tar.bz2 dexon-solidity-31a5e5bfef086c1cac477661dd627fa774bc44f5.tar.lz dexon-solidity-31a5e5bfef086c1cac477661dd627fa774bc44f5.tar.xz dexon-solidity-31a5e5bfef086c1cac477661dd627fa774bc44f5.tar.zst dexon-solidity-31a5e5bfef086c1cac477661dd627fa774bc44f5.zip |
Do not overwrite files unless forced.
Diffstat (limited to 'solc/CommandLineInterface.h')
-rw-r--r-- | solc/CommandLineInterface.h | 5 |
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; |