MCPcopy Create free account
hub / github.com/argotorg/solidity / parseCommandLineAndReadInputFiles

Method parseCommandLineAndReadInputFiles

test/solc/Common.cpp:42–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42test::OptionsReaderAndMessages test::parseCommandLineAndReadInputFiles(
43 std::vector<std::string> const& _commandLine,
44 std::string const& _standardInputContent
45)
46{
47 std::vector<char const*> argv = makeArgv(_commandLine);
48 std::stringstream sin(_standardInputContent), sout, serr;
49 CommandLineInterface cli(sin, sout, serr);
50 bool success = cli.parseArguments(static_cast<int>(_commandLine.size()), argv.data());
51 cli.readInputFiles();
52
53 return {
54 success,
55 cli.options(),
56 cli.fileReader(),
57 cli.standardJsonInput(),
58 sout.str(),
59 stripPreReleaseWarning(serr.str()),
60 };
61}
62
63test::OptionsReaderAndMessages test::runCLI(
64 std::vector<std::string> const& _commandLine,

Callers

nothing calls this directly

Calls 6

parseArgumentsMethod · 0.80
readInputFilesMethod · 0.80
optionsMethod · 0.80
strMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected