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

Method setBasePath

libsolidity/interface/FileReader.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void FileReader::setBasePath(boost::filesystem::path const& _path)
58{
59 if (_path.empty())
60 {
61 // Empty base path is a special case that does not make sense when include paths are used.
62 solAssert(m_includePaths.empty(), "");
63 m_basePath = "";
64 }
65 else
66 m_basePath = normalizeCLIPathForVFS(_path);
67}
68
69void FileReader::addIncludePath(boost::filesystem::path const& _path)
70{

Callers 1

readInputFilesMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected