| 30 | std::string const kSourceGroupOptionName = "<sg_name>"; |
| 31 | |
| 32 | std::set<std::string> getSourceGroupFilesPaths( |
| 33 | std::string const& root, std::vector<std::string> const& files) |
| 34 | { |
| 35 | std::set<std::string> ret; |
| 36 | std::string::size_type const rootLength = root.length(); |
| 37 | |
| 38 | for (std::string const& file : files) { |
| 39 | ret.insert(file.substr(rootLength + 1)); // +1 to also omnit last '/' |
| 40 | } |
| 41 | |
| 42 | return ret; |
| 43 | } |
| 44 | |
| 45 | bool rootIsPrefix(std::string const& root, |
| 46 | std::vector<std::string> const& files, std::string& error) |
no test coverage detected
searching dependent graphs…