mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
clean up
This commit is contained in:
parent
5cb639d3e0
commit
0d163aaff1
@ -304,8 +304,7 @@ void CommandLineInterface::createFile(string const& _fileName, string const& _da
|
|||||||
fs::path p(m_args["output-dir"].as<string>());
|
fs::path p(m_args["output-dir"].as<string>());
|
||||||
fs::create_directories(p);
|
fs::create_directories(p);
|
||||||
ofstream outFile(m_args["output-dir"].as<string>() + "/" + _fileName);
|
ofstream outFile(m_args["output-dir"].as<string>() + "/" + _fileName);
|
||||||
if (!_data.empty())
|
outFile << _data;
|
||||||
outFile << _data;
|
|
||||||
if (!outFile)
|
if (!outFile)
|
||||||
BOOST_THROW_EXCEPTION(FileError() << errinfo_comment("Could not write to file: " + _fileName));
|
BOOST_THROW_EXCEPTION(FileError() << errinfo_comment("Could not write to file: " + _fileName));
|
||||||
outFile.close();
|
outFile.close();
|
||||||
|
@ -33,12 +33,6 @@ namespace solidity
|
|||||||
//forward declaration
|
//forward declaration
|
||||||
enum class DocumentationType: uint8_t;
|
enum class DocumentationType: uint8_t;
|
||||||
|
|
||||||
enum class OutputType: uint8_t
|
|
||||||
{
|
|
||||||
STDOUT,
|
|
||||||
FILE,
|
|
||||||
};
|
|
||||||
|
|
||||||
class CommandLineInterface
|
class CommandLineInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -66,7 +60,7 @@ private:
|
|||||||
/// Create a file in the given directory
|
/// Create a file in the given directory
|
||||||
/// @arg _fileName the name of the file
|
/// @arg _fileName the name of the file
|
||||||
/// @arg _data to be written
|
/// @arg _data to be written
|
||||||
void createFile(std::string const& _fileName, std::string const& _data = "");
|
void createFile(std::string const& _fileName, std::string const& _data);
|
||||||
|
|
||||||
/// Compiler arguments variable map
|
/// Compiler arguments variable map
|
||||||
boost::program_options::variables_map m_args;
|
boost::program_options::variables_map m_args;
|
||||||
|
Loading…
Reference in New Issue
Block a user